Skip to content

Commit 97742e8

Browse files
committed
test: restore wpt typos
1 parent efb7d4a commit 97742e8

26 files changed

+44
-44
lines changed

test/fixtures/guess-hash-seed.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function time_set_lookup(set, value) {
8181
// Set with 256 buckets; bucket 0 full, others empty
8282
const tester_set_buckets = 256;
8383
const tester_set = new Set();
84-
let tester_set_threshold;
84+
let tester_set_treshold;
8585
(function() {
8686
// fill bucket 0 and find extra numbers mapping to bucket 0 and a different
8787
// bucket `capacity == numBuckets * 2`
@@ -114,9 +114,9 @@ let tester_set_threshold;
114114
const neg_time =
115115
Math.min(...run_repeated(10000, time_set_lookup.bind(null, tester_set,
116116
negative_test_value)));
117-
tester_set_threshold = (pos_time + neg_time) / 2;
117+
tester_set_treshold = (pos_time + neg_time) / 2;
118118
// console.log(`pos_time: ${pos_time}, neg_time: ${neg_time},`,
119-
// `threshold: ${tester_set_threshold}`);
119+
// `threshold: ${tester_set_treshold}`);
120120
})();
121121

122122
// determine hash seed
@@ -126,7 +126,7 @@ const slow_str_gen = (function*() {
126126
while (1) {
127127
const str = `#${strgen_i++}`;
128128
for (let i = 0; i < 1000; i++) {
129-
if (time_set_lookup(tester_set, str) < tester_set_threshold)
129+
if (time_set_lookup(tester_set, str) < tester_set_treshold)
130130
continue outer;
131131
}
132132
yield str;

test/fixtures/wpt/FileAPI/BlobURL/test2-manual.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
xhr.send();
5353

54-
}, 'Check whether the browser response 500 in XHR if the selected file which File/Blob URL referred is not found');
54+
}, 'Check whether the browser response 500 in XHR if the selected file which File/Blob URL refered is not found');
5555

5656
done();
5757

test/fixtures/wpt/FileAPI/reading-data-section/Determining-Encoding.any.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// META: title=FileAPI Test: Blob Determining Encoding
22

3-
var t = async_test("Blob Determining Encoding with encoding argument");
3+
var t = async_test("Blob Determing Encoding with encoding argument");
44
t.step(function() {
55
// string 'hello'
66
var data = [0xFE,0xFF,0x00,0x68,0x00,0x65,0x00,0x6C,0x00,0x6C,0x00,0x6F];
@@ -14,7 +14,7 @@ t.step(function() {
1414
reader.readAsText(blob, "UTF-16BE");
1515
});
1616

17-
var t = async_test("Blob Determining Encoding with type attribute");
17+
var t = async_test("Blob Determing Encoding with type attribute");
1818
t.step(function() {
1919
var data = [0xFE,0xFF,0x00,0x68,0x00,0x65,0x00,0x6C,0x00,0x6C,0x00,0x6F];
2020
var blob = new Blob([new Uint8Array(data)], {type:"text/plain;charset=UTF-16BE"});
@@ -28,7 +28,7 @@ t.step(function() {
2828
});
2929

3030

31-
var t = async_test("Blob Determining Encoding with UTF-8 BOM");
31+
var t = async_test("Blob Determing Encoding with UTF-8 BOM");
3232
t.step(function() {
3333
var data = [0xEF,0xBB,0xBF,0x68,0x65,0x6C,0x6C,0xC3,0xB6];
3434
var blob = new Blob([new Uint8Array(data)]);
@@ -41,7 +41,7 @@ t.step(function() {
4141
reader.readAsText(blob);
4242
});
4343

44-
var t = async_test("Blob Determining Encoding without anything implying charset.");
44+
var t = async_test("Blob Determing Encoding without anything implying charset.");
4545
t.step(function() {
4646
var data = [0x68,0x65,0x6C,0x6C,0xC3,0xB6];
4747
var blob = new Blob([new Uint8Array(data)]);
@@ -54,7 +54,7 @@ t.step(function() {
5454
reader.readAsText(blob);
5555
});
5656

57-
var t = async_test("Blob Determining Encoding with UTF-16BE BOM");
57+
var t = async_test("Blob Determing Encoding with UTF-16BE BOM");
5858
t.step(function() {
5959
var data = [0xFE,0xFF,0x00,0x68,0x00,0x65,0x00,0x6C,0x00,0x6C,0x00,0x6F];
6060
var blob = new Blob([new Uint8Array(data)]);
@@ -67,7 +67,7 @@ t.step(function() {
6767
reader.readAsText(blob);
6868
});
6969

70-
var t = async_test("Blob Determining Encoding with UTF-16LE BOM");
70+
var t = async_test("Blob Determing Encoding with UTF-16LE BOM");
7171
t.step(function() {
7272
var data = [0xFF,0xFE,0x68,0x00,0x65,0x00,0x6C,0x00,0x6C,0x00,0x6F,0x00];
7373
var blob = new Blob([new Uint8Array(data)]);

test/fixtures/wpt/FileAPI/support/send-file-form-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ const formPostFileUploadTest = ({
180180

181181
// Used to verify that the browser agrees with the test about
182182
// field value replacement and encoding independently of file system
183-
// idiosyncrasies.
183+
// idiosyncracies.
184184
form.append(Object.assign(document.createElement('input'), {
185185
type: 'hidden',
186186
name: 'filename',

test/fixtures/wpt/FileAPI/support/send-file-formdata-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const formDataPostFileUploadTest = ({
3434

3535
// Used to verify that the browser agrees with the test about
3636
// field value replacement and encoding independently of file system
37-
// idiosyncrasies.
37+
// idiosyncracies.
3838
formData.append("filename", fileBaseName);
3939

4040
// Same, but with name and value reversed to ensure field names

test/fixtures/wpt/WebCryptoAPI/sign_verify/eddsa_small_order_points.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function run_test() {
1515
isVerified = await subtle.verify(algorithm, publicKey, test.signature, test.message);
1616
} catch (err) {
1717
assert_true(publicKey !== undefined, "Public key should be valid.");
18-
assert_unreached("The operation shouldn't fail, but it threw this error: " + err.name + ": " + err.message + ".");
18+
assert_unreached("The operation shouldn't fail, but it thown this error: " + err.name + ": " + err.message + ".");
1919
}
2020
assert_equals(isVerified, test.verified, "Signature verification result.");
2121
}, algorithmName + " Verification checks with small-order key of order - Test " + test.id);

test/fixtures/wpt/common/security-features/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ Taking the spec JSON, the generator follows this algorithm:
280280

281281
* Expand all ```excluded_tests``` to create a denylist of selections
282282

283-
* 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
283+
* 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
284284

285285
### SourceContext Resolution
286286

test/fixtures/wpt/compression/decompression-split-chunk.tentative.any.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ for (let chunkSize = 1; chunkSize < 16; ++chunkSize) {
3939
promise_test(async t => {
4040
const decompressedData = await decompressArrayBuffer(compressedBytesWithDeflate, 'deflate', chunkSize);
4141
assert_array_equals(decompressedData, expectedChunkValue, "value should match");
42-
}, `decompressing split chunk into pieces of size ${chunkSize} should work in deflate`);
42+
}, `decompressing splitted chunk into pieces of size ${chunkSize} should work in deflate`);
4343

4444
promise_test(async t => {
4545
const decompressedData = await decompressArrayBuffer(compressedBytesWithGzip, 'gzip', chunkSize);
4646
assert_array_equals(decompressedData, expectedChunkValue, "value should match");
47-
}, `decompressing split chunk into pieces of size ${chunkSize} should work in gzip`);
47+
}, `decompressing splitted chunk into pieces of size ${chunkSize} should work in gzip`);
4848

4949
promise_test(async t => {
5050
const decompressedData = await decompressArrayBuffer(compressedBytesWithDeflateRaw, 'deflate-raw', chunkSize);
5151
assert_array_equals(decompressedData, expectedChunkValue, "value should match");
52-
}, `decompressing split chunk into pieces of size ${chunkSize} should work in deflate-raw`);
52+
}, `decompressing splitted chunk into pieces of size ${chunkSize} should work in deflate-raw`);
5353
}

test/fixtures/wpt/dom/events/scrolling/overscroll-event-fired-to-window.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
function onOverscroll(event) {
3333
assert_false(event.cancelable);
34-
// overscroll events targeting document are bubbled to the window.
34+
// overscroll events targetting document are bubbled to the window.
3535
assert_true(event.bubbles);
3636
window_received_overscroll = true;
3737
}

test/fixtures/wpt/dom/events/scrolling/scroll_support.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const MAX_UNCHANGED_FRAMES = 20;
8888
function waitFor(condition, error_message = 'Reaches the maximum frames.') {
8989
return new Promise((resolve, reject) => {
9090
function tick(frames) {
91-
// We requestAnimationFrame either for MAX_FRAME frames or until condition
91+
// We requestAnimationFrame either for MAX_FRAM frames or until condition
9292
// is met.
9393
if (frames >= MAX_FRAME)
9494
reject(error_message);

0 commit comments

Comments
 (0)