From b7b3e459babfe40a29fa98f431c4f46f5dc56602 Mon Sep 17 00:00:00 2001 From: Nathan Baulch Date: Thu, 10 Oct 2024 10:45:48 +1100 Subject: [PATCH] test: restore wpt typos --- test/fixtures/guess-hash-seed.js | 8 ++++---- test/fixtures/wpt/FileAPI/BlobURL/test2-manual.html | 2 +- .../reading-data-section/Determining-Encoding.any.js | 12 ++++++------ .../wpt/FileAPI/support/send-file-form-helper.js | 2 +- .../wpt/FileAPI/support/send-file-formdata-helper.js | 2 +- .../sign_verify/eddsa_small_order_points.js | 2 +- test/fixtures/wpt/common/security-features/README.md | 2 +- .../decompression-split-chunk.tentative.any.js | 6 +++--- .../scrolling/overscroll-event-fired-to-window.html | 2 +- .../wpt/dom/events/scrolling/scroll_support.js | 2 +- .../cached-image-gets-single-entry.html | 2 +- .../wpt/resource-timing/initiator-type/link.html | 2 +- .../resources/connection-reuse-test.js | 4 ++-- test/fixtures/wpt/resources/channel.sub.js | 2 +- test/fixtures/wpt/resources/idlharness.js | 2 +- test/fixtures/wpt/resources/testdriver-actions.js | 4 ++-- test/fixtures/wpt/resources/testharness.js | 6 +++--- test/fixtures/wpt/resources/webidl2/lib/webidl2.js | 4 ++-- .../transferable/transfer-with-messageport.window.js | 6 +++--- test/fixtures/wpt/url/a-element.html | 4 ++-- .../fixtures/wpt/user-timing/measure-exceptions.html | 2 +- test/fixtures/wpt/user-timing/measure-l3.any.js | 2 +- .../wpt/webmessaging/broadcastchannel/workers.html | 2 +- ...iframe-opens-3P-window.partitioned.tentative.html | 2 +- .../wpt/webstorage/storage_getitem.window.js | 2 +- .../fixtures/wpt/webstorage/storage_length.window.js | 2 +- 26 files changed, 44 insertions(+), 44 deletions(-) diff --git a/test/fixtures/guess-hash-seed.js b/test/fixtures/guess-hash-seed.js index 13399ef5318239c..c6166450b4fbb50 100644 --- a/test/fixtures/guess-hash-seed.js +++ b/test/fixtures/guess-hash-seed.js @@ -81,7 +81,7 @@ function time_set_lookup(set, value) { // Set with 256 buckets; bucket 0 full, others empty const tester_set_buckets = 256; const tester_set = new Set(); -let tester_set_threshold; +let tester_set_treshold; (function() { // fill bucket 0 and find extra numbers mapping to bucket 0 and a different // bucket `capacity == numBuckets * 2` @@ -114,9 +114,9 @@ let tester_set_threshold; const neg_time = Math.min(...run_repeated(10000, time_set_lookup.bind(null, tester_set, negative_test_value))); - tester_set_threshold = (pos_time + neg_time) / 2; + tester_set_treshold = (pos_time + neg_time) / 2; // console.log(`pos_time: ${pos_time}, neg_time: ${neg_time},`, - // `threshold: ${tester_set_threshold}`); + // `threshold: ${tester_set_treshold}`); })(); // determine hash seed @@ -126,7 +126,7 @@ const slow_str_gen = (function*() { while (1) { const str = `#${strgen_i++}`; for (let i = 0; i < 1000; i++) { - if (time_set_lookup(tester_set, str) < tester_set_threshold) + if (time_set_lookup(tester_set, str) < tester_set_treshold) continue outer; } yield str; diff --git a/test/fixtures/wpt/FileAPI/BlobURL/test2-manual.html b/test/fixtures/wpt/FileAPI/BlobURL/test2-manual.html index f2a5a33d1d5ee90..07fb27ef8af10b1 100644 --- a/test/fixtures/wpt/FileAPI/BlobURL/test2-manual.html +++ b/test/fixtures/wpt/FileAPI/BlobURL/test2-manual.html @@ -51,7 +51,7 @@ xhr.send(); - }, 'Check whether the browser response 500 in XHR if the selected file which File/Blob URL referred is not found'); + }, 'Check whether the browser response 500 in XHR if the selected file which File/Blob URL refered is not found'); done(); diff --git a/test/fixtures/wpt/FileAPI/reading-data-section/Determining-Encoding.any.js b/test/fixtures/wpt/FileAPI/reading-data-section/Determining-Encoding.any.js index 059222636361d90..5b69f7ed9821ace 100644 --- a/test/fixtures/wpt/FileAPI/reading-data-section/Determining-Encoding.any.js +++ b/test/fixtures/wpt/FileAPI/reading-data-section/Determining-Encoding.any.js @@ -1,6 +1,6 @@ // META: title=FileAPI Test: Blob Determining Encoding -var t = async_test("Blob Determining Encoding with encoding argument"); +var t = async_test("Blob Determing Encoding with encoding argument"); t.step(function() { // string 'hello' var data = [0xFE,0xFF,0x00,0x68,0x00,0x65,0x00,0x6C,0x00,0x6C,0x00,0x6F]; @@ -14,7 +14,7 @@ t.step(function() { reader.readAsText(blob, "UTF-16BE"); }); -var t = async_test("Blob Determining Encoding with type attribute"); +var t = async_test("Blob Determing Encoding with type attribute"); t.step(function() { var data = [0xFE,0xFF,0x00,0x68,0x00,0x65,0x00,0x6C,0x00,0x6C,0x00,0x6F]; var blob = new Blob([new Uint8Array(data)], {type:"text/plain;charset=UTF-16BE"}); @@ -28,7 +28,7 @@ t.step(function() { }); -var t = async_test("Blob Determining Encoding with UTF-8 BOM"); +var t = async_test("Blob Determing Encoding with UTF-8 BOM"); t.step(function() { var data = [0xEF,0xBB,0xBF,0x68,0x65,0x6C,0x6C,0xC3,0xB6]; var blob = new Blob([new Uint8Array(data)]); @@ -41,7 +41,7 @@ t.step(function() { reader.readAsText(blob); }); -var t = async_test("Blob Determining Encoding without anything implying charset."); +var t = async_test("Blob Determing Encoding without anything implying charset."); t.step(function() { var data = [0x68,0x65,0x6C,0x6C,0xC3,0xB6]; var blob = new Blob([new Uint8Array(data)]); @@ -54,7 +54,7 @@ t.step(function() { reader.readAsText(blob); }); -var t = async_test("Blob Determining Encoding with UTF-16BE BOM"); +var t = async_test("Blob Determing Encoding with UTF-16BE BOM"); t.step(function() { var data = [0xFE,0xFF,0x00,0x68,0x00,0x65,0x00,0x6C,0x00,0x6C,0x00,0x6F]; var blob = new Blob([new Uint8Array(data)]); @@ -67,7 +67,7 @@ t.step(function() { reader.readAsText(blob); }); -var t = async_test("Blob Determining Encoding with UTF-16LE BOM"); +var t = async_test("Blob Determing Encoding with UTF-16LE BOM"); t.step(function() { var data = [0xFF,0xFE,0x68,0x00,0x65,0x00,0x6C,0x00,0x6C,0x00,0x6F,0x00]; var blob = new Blob([new Uint8Array(data)]); diff --git a/test/fixtures/wpt/FileAPI/support/send-file-form-helper.js b/test/fixtures/wpt/FileAPI/support/send-file-form-helper.js index 39c73c41b422077..d6adf21ec337957 100644 --- a/test/fixtures/wpt/FileAPI/support/send-file-form-helper.js +++ b/test/fixtures/wpt/FileAPI/support/send-file-form-helper.js @@ -180,7 +180,7 @@ const formPostFileUploadTest = ({ // Used to verify that the browser agrees with the test about // field value replacement and encoding independently of file system - // idiosyncrasies. + // idiosyncracies. form.append(Object.assign(document.createElement('input'), { type: 'hidden', name: 'filename', diff --git a/test/fixtures/wpt/FileAPI/support/send-file-formdata-helper.js b/test/fixtures/wpt/FileAPI/support/send-file-formdata-helper.js index dd62a0e98e92c86..53c8cca7e09b8e8 100644 --- a/test/fixtures/wpt/FileAPI/support/send-file-formdata-helper.js +++ b/test/fixtures/wpt/FileAPI/support/send-file-formdata-helper.js @@ -34,7 +34,7 @@ const formDataPostFileUploadTest = ({ // Used to verify that the browser agrees with the test about // field value replacement and encoding independently of file system - // idiosyncrasies. + // idiosyncracies. formData.append("filename", fileBaseName); // Same, but with name and value reversed to ensure field names diff --git a/test/fixtures/wpt/WebCryptoAPI/sign_verify/eddsa_small_order_points.js b/test/fixtures/wpt/WebCryptoAPI/sign_verify/eddsa_small_order_points.js index 883c3021926fef5..ae973155992c87a 100644 --- a/test/fixtures/wpt/WebCryptoAPI/sign_verify/eddsa_small_order_points.js +++ b/test/fixtures/wpt/WebCryptoAPI/sign_verify/eddsa_small_order_points.js @@ -15,7 +15,7 @@ function run_test() { isVerified = await subtle.verify(algorithm, publicKey, test.signature, test.message); } catch (err) { assert_true(publicKey !== undefined, "Public key should be valid."); - assert_unreached("The operation shouldn't fail, but it threw this error: " + err.name + ": " + err.message + "."); + assert_unreached("The operation shouldn't fail, but it thown this error: " + err.name + ": " + err.message + "."); } assert_equals(isVerified, test.verified, "Signature verification result."); }, algorithmName + " Verification checks with small-order key of order - Test " + test.id); diff --git a/test/fixtures/wpt/common/security-features/README.md b/test/fixtures/wpt/common/security-features/README.md index a5bd45fe4571f36..f957541f75ecc37 100644 --- a/test/fixtures/wpt/common/security-features/README.md +++ b/test/fixtures/wpt/common/security-features/README.md @@ -280,7 +280,7 @@ Taking the spec JSON, the generator follows this algorithm: * Expand all ```excluded_tests``` to create a denylist of selections -* For each `specification` entries: Expand the ```test_expansion``` pattern into selections and check each against the denylist, if not marked as suppressed, generate the test resources for the selection +* For each `specification` entries: Expand the ```test_expansion``` pattern into selections and check each against the denylist, if not marked as suppresed, generate the test resources for the selection ### SourceContext Resolution diff --git a/test/fixtures/wpt/compression/decompression-split-chunk.tentative.any.js b/test/fixtures/wpt/compression/decompression-split-chunk.tentative.any.js index 604092035e7d551..eb12c2a2360cd92 100644 --- a/test/fixtures/wpt/compression/decompression-split-chunk.tentative.any.js +++ b/test/fixtures/wpt/compression/decompression-split-chunk.tentative.any.js @@ -39,15 +39,15 @@ for (let chunkSize = 1; chunkSize < 16; ++chunkSize) { promise_test(async t => { const decompressedData = await decompressArrayBuffer(compressedBytesWithDeflate, 'deflate', chunkSize); assert_array_equals(decompressedData, expectedChunkValue, "value should match"); - }, `decompressing split chunk into pieces of size ${chunkSize} should work in deflate`); + }, `decompressing splitted chunk into pieces of size ${chunkSize} should work in deflate`); promise_test(async t => { const decompressedData = await decompressArrayBuffer(compressedBytesWithGzip, 'gzip', chunkSize); assert_array_equals(decompressedData, expectedChunkValue, "value should match"); - }, `decompressing split chunk into pieces of size ${chunkSize} should work in gzip`); + }, `decompressing splitted chunk into pieces of size ${chunkSize} should work in gzip`); promise_test(async t => { const decompressedData = await decompressArrayBuffer(compressedBytesWithDeflateRaw, 'deflate-raw', chunkSize); assert_array_equals(decompressedData, expectedChunkValue, "value should match"); - }, `decompressing split chunk into pieces of size ${chunkSize} should work in deflate-raw`); + }, `decompressing splitted chunk into pieces of size ${chunkSize} should work in deflate-raw`); } diff --git a/test/fixtures/wpt/dom/events/scrolling/overscroll-event-fired-to-window.html b/test/fixtures/wpt/dom/events/scrolling/overscroll-event-fired-to-window.html index 348dadcb4c50b7d..ef5ae3daef8158c 100644 --- a/test/fixtures/wpt/dom/events/scrolling/overscroll-event-fired-to-window.html +++ b/test/fixtures/wpt/dom/events/scrolling/overscroll-event-fired-to-window.html @@ -31,7 +31,7 @@ function onOverscroll(event) { assert_false(event.cancelable); - // overscroll events targeting document are bubbled to the window. + // overscroll events targetting document are bubbled to the window. assert_true(event.bubbles); window_received_overscroll = true; } diff --git a/test/fixtures/wpt/dom/events/scrolling/scroll_support.js b/test/fixtures/wpt/dom/events/scrolling/scroll_support.js index 3d7709772baafbb..a708364df07cada 100644 --- a/test/fixtures/wpt/dom/events/scrolling/scroll_support.js +++ b/test/fixtures/wpt/dom/events/scrolling/scroll_support.js @@ -88,7 +88,7 @@ const MAX_UNCHANGED_FRAMES = 20; function waitFor(condition, error_message = 'Reaches the maximum frames.') { return new Promise((resolve, reject) => { function tick(frames) { - // We requestAnimationFrame either for MAX_FRAME frames or until condition + // We requestAnimationFrame either for MAX_FRAM frames or until condition // is met. if (frames >= MAX_FRAME) reject(error_message); diff --git a/test/fixtures/wpt/resource-timing/cached-image-gets-single-entry.html b/test/fixtures/wpt/resource-timing/cached-image-gets-single-entry.html index bf71615f7b15c57..2d8c4e2e83944dc 100644 --- a/test/fixtures/wpt/resource-timing/cached-image-gets-single-entry.html +++ b/test/fixtures/wpt/resource-timing/cached-image-gets-single-entry.html @@ -14,7 +14,7 @@

Description

Test that a reused resource only appears in the buffer once.

diff --git a/test/fixtures/wpt/user-timing/measure-exceptions.html b/test/fixtures/wpt/user-timing/measure-exceptions.html index e89d26858918350..2836eaee2a86c10 100644 --- a/test/fixtures/wpt/user-timing/measure-exceptions.html +++ b/test/fixtures/wpt/user-timing/measure-exceptions.html @@ -35,7 +35,7 @@ const args = [ 51.15, // Verify that number is parsed as string, not number. - "DoesNotExist", // Non-existent mark name should cause error. + "DoesNotExist", // Non-existant mark name should cause error. ]; args.forEach(each => { test(()=>{ diff --git a/test/fixtures/wpt/user-timing/measure-l3.any.js b/test/fixtures/wpt/user-timing/measure-l3.any.js index de27af071981701..642b55ab635e2c0 100644 --- a/test/fixtures/wpt/user-timing/measure-l3.any.js +++ b/test/fixtures/wpt/user-timing/measure-l3.any.js @@ -32,4 +32,4 @@ test(function() { const measureEntry = performance.measure("A", "mark", "mark"); assert_equals(endTime(measureEntry), markEntry.startTime); assert_equals(measureEntry.startTime, markEntry.startTime); -}, "When start and end mark are both given, the start time and end time of the measure entry should be the the marks' time, respectively"); +}, "When start and end mark are both given, the start time and end time of the measure entry should be the the marks' time, repectively"); diff --git a/test/fixtures/wpt/webmessaging/broadcastchannel/workers.html b/test/fixtures/wpt/webmessaging/broadcastchannel/workers.html index 62fa31f623c4b87..8b55492f3cffb35 100644 --- a/test/fixtures/wpt/webmessaging/broadcastchannel/workers.html +++ b/test/fixtures/wpt/webmessaging/broadcastchannel/workers.html @@ -256,7 +256,7 @@ // Since the worker has closed, it's not expected that the // BroadcastChannel will receive messages (there's a separate test for // that), so just indicate directly that it's ready to test receiving - // a message from the parent despite the possibility of a race condition. + // a message from the parent dispite the possibility of a race condition. postMessage('ready'); } }); diff --git a/test/fixtures/wpt/webstorage/localstorage-about-blank-3P-iframe-opens-3P-window.partitioned.tentative.html b/test/fixtures/wpt/webstorage/localstorage-about-blank-3P-iframe-opens-3P-window.partitioned.tentative.html index a474a8c0de3746c..de94fb2cf435de1 100644 --- a/test/fixtures/wpt/webstorage/localstorage-about-blank-3P-iframe-opens-3P-window.partitioned.tentative.html +++ b/test/fixtures/wpt/webstorage/localstorage-about-blank-3P-iframe-opens-3P-window.partitioned.tentative.html @@ -57,7 +57,7 @@ for (let id in ids) { assert_true(id !== undefined, "id is not undefined"); } - // Note: we use assert_true, rather than assert_equals because we're + // Note: we use assert_true, rather than assert_equals becuase we're // setting random numbers as IDs - this would mean expectations // files wouldn't work as intended. assert_true(crossSiteIframeAboutBlankID !== crossSiteIframeID, diff --git a/test/fixtures/wpt/webstorage/storage_getitem.window.js b/test/fixtures/wpt/webstorage/storage_getitem.window.js index bd804946223e6a5..8a5896836d2aeb5 100644 --- a/test/fixtures/wpt/webstorage/storage_getitem.window.js +++ b/test/fixtures/wpt/webstorage/storage_getitem.window.js @@ -30,5 +30,5 @@ assert_equals(storage.getItem(null), "bar", "storage.getItem(null)") assert_equals(storage.getItem(""), "baz", "storage.getItem('')") }, name + ".getItem should be correct") - }, "Get value by getItem(key) and named access in " + name + "."); + }, "Get value by getIten(key) and named access in " + name + "."); }); diff --git a/test/fixtures/wpt/webstorage/storage_length.window.js b/test/fixtures/wpt/webstorage/storage_length.window.js index 98566ec79ac6281..9648e48c8d881b4 100644 --- a/test/fixtures/wpt/webstorage/storage_length.window.js +++ b/test/fixtures/wpt/webstorage/storage_length.window.js @@ -19,5 +19,5 @@ storage.setItem("age", "20"); assert_equals(storage.length, 2, "storage.length") - }, name + ".length (property access)"); + }, name + ".length (proprty access)"); });