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

+4-4
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

+1-1
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

+6-6
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+3-3
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

+1-1
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

+1-1
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);

test/fixtures/wpt/resource-timing/cached-image-gets-single-entry.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h1>Description</h1>
1414
<p>Test that a reused resource only appears in the buffer once.</p>
1515
<script>
1616
// Need our own image loading helper because the one in resource-loaders.js
17-
// is designed to always side-step the HTTP cache but this test relies on the
17+
// is desgined to always side-step the HTTP cache but this test relies on the
1818
// second request being resolved from the cache.
1919
const load_image = path => new Promise(resolve => {
2020
const img = document.createElement('img');

test/fixtures/wpt/resource-timing/initiator-type/link.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<script>
2323
initiator_type_test("nested.css", "link", "<link>");
2424

25-
// Verify there are entries for each of nested.css' nested resources.
25+
// Verify there are enries for each of nested.css' nested resources.
2626
initiator_type_test("resource_timing_test0.css?id=n1", "css", "css resources embedded in css");
2727
initiator_type_test("fonts/Ahem.ttf?id=n1", "css", "font resources embedded in css");
2828
initiator_type_test("blue.png?id=n1", "css", "image resources embedded in css");

test/fixtures/wpt/resource-timing/resources/connection-reuse-test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const connection_reuse_test = (path, follow_on_assertions, test_label) => {
3636
invariants.assert_connection_reused(entry);
3737
on_200(entry);
3838
},
39-
`PerformanceResourceTiming entries need to conform to the spec when a ` +
39+
`PerformanceResrouceTiming entries need to conform to the spec when a ` +
4040
`distinct resource is fetched over a persistent connection ` +
4141
`(${test_label})`);
4242

@@ -57,7 +57,7 @@ const connection_reuse_test = (path, follow_on_assertions, test_label) => {
5757
invariants.assert_connection_reused(entry);
5858
on_304(entry);
5959
},
60-
`PerformanceResourceTiming entries need to conform to the spec when the ` +
60+
`PerformanceResrouceTiming entries need to conform to the spec when the ` +
6161
`resource is cache-revalidated over a persistent connection ` +
6262
`(${test_label})`);
6363
}

test/fixtures/wpt/resources/channel.sub.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@
511511
*
512512
* @param {SendChannel|string} [dest] - Either a SendChannel
513513
* to the destination, or the UUID of the destination. If
514-
* omitted, a new UUID is generated, which can be used when
514+
* ommitted, a new UUID is generated, which can be used when
515515
* constructing the URL for the global.
516516
*
517517
*/

test/fixtures/wpt/resources/idlharness.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ IdlArray.prototype.merge_partials = function()
809809
{
810810
// Special-case "Exposed". Must be a subset of original interface's exposure.
811811
// Exposed on a partial is the equivalent of having the same Exposed on all nested members.
812-
// See https://github.com/heycam/webidl/issues/154 for discrepancy between Exposed and
812+
// See https://github.com/heycam/webidl/issues/154 for discrepency between Exposed and
813813
// other extended attributes on partial interfaces.
814814
const exposureAttr = parsed_idl.extAttrs.find(a => a.name === "Exposed");
815815
if (exposureAttr) {

test/fixtures/wpt/resources/testdriver-actions.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* await actions.send();
3333
*
3434
* @param {number} [defaultTickDuration] - The default duration of a
35-
* tick. Be default this is set to 16ms, which is one frame time
35+
* tick. Be default this is set ot 16ms, which is one frame time
3636
* based on 60Hz display.
3737
*/
3838
function Actions(defaultTickDuration=16) {
@@ -235,7 +235,7 @@
235235
} while (sourceNames.has(name))
236236
} else {
237237
if (sourceNames.has(name)) {
238-
throw new Error(`Already have a source of type ${type} named ${name}.`);
238+
throw new Error(`Alreay have a source of type ${type} named ${name}.`);
239239
}
240240
}
241241
this.sources.get(type).set(name, new (this.sourceTypes.get(type))(parameters));

test/fixtures/wpt/resources/testharness.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@
600600

601601
/**
602602
* @callback TestFunction
603-
* @param {Test} test - The test currently being run.
603+
* @param {Test} test - The test currnetly being run.
604604
* @param {Any[]} args - Additional args to pass to function.
605605
*
606606
*/
@@ -852,7 +852,7 @@
852852
promise = promiseOrConstructor;
853853
description = descriptionOrPromise;
854854
assert(maybeDescription === undefined,
855-
"Too many args passed to no-constructor version of promise_rejects_dom");
855+
"Too many args pased to no-constructor version of promise_rejects_dom");
856856
}
857857
return bring_promise_to_current_realm(promise)
858858
.then(test.unreached_func("Should have rejected: " + description))
@@ -2151,7 +2151,7 @@
21512151
func = funcOrConstructor;
21522152
description = descriptionOrFunc;
21532153
assert(maybeDescription === undefined,
2154-
"Too many args passed to no-constructor version of assert_throws_dom");
2154+
"Too many args pased to no-constructor version of assert_throws_dom");
21552155
}
21562156
assert_throws_dom_impl(type, func, description, "assert_throws_dom", constructor)
21572157
}

test/fixtures/wpt/resources/webidl2/lib/webidl2.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/fixtures/wpt/streams/transferable/transfer-with-messageport.window.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ async function transferMessagePortWith(constructor) {
105105
await transferMessagePortWithOrder3(new constructor());
106106
}
107107

108-
async function advancedTransferMessagePortWith(constructor) {
108+
async function advancedTransferMesagePortWith(constructor) {
109109
await transferMessagePortWithOrder4(new constructor());
110110
await transferMessagePortWithOrder5(new constructor());
111111
await transferMessagePortWithOrder6(new constructor());
@@ -166,7 +166,7 @@ async function mixedTransferMessagePortWithOrder3() {
166166
);
167167
}
168168

169-
async function mixedTransferMessagePortWith() {
169+
async function mixedTransferMesagePortWith() {
170170
await mixedTransferMessagePortWithOrder1();
171171
await mixedTransferMessagePortWithOrder2();
172172
await mixedTransferMessagePortWithOrder3();
@@ -197,7 +197,7 @@ promise_test(async t => {
197197
}, "Transferring a MessagePort with a TransformStream should set `.ports`, advanced");
198198

199199
promise_test(async t => {
200-
await mixedTransferMessagePortWith();
200+
await mixedTransferMesagePortWith();
201201
}, "Transferring a MessagePort with multiple streams should set `.ports`");
202202

203203
test(() => {

test/fixtures/wpt/url/a-element.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
<!-- Other dependencies: resources/urltestdata.json -->
1414

1515

16-
<a id="multiline-entity" download="multiline-entity.txt" href="data:text/plain;charset=utf-8,first%20line&#10;second%20line"> Link with embedded \n is parsed correctly </a>
16+
<a id="multline-entity" download="multline-entity.txt" href="data:text/plain;charset=utf-8,first%20line&#10;second%20line"> Link with embedded \n is parsed correctly </a>
1717

1818
<script type="text/javascript">
1919
test(function() {
20-
const link = document.getElementById("multiline-entity");
20+
const link = document.getElementById("multline-entity");
2121
assert_equals(link.href, "data:text/plain;charset=utf-8,first%20linesecond%20line");
2222
}, "Test that embedded 0x0A is stripped");
2323
</script>

test/fixtures/wpt/user-timing/measure-exceptions.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
const args = [
3737
51.15, // Verify that number is parsed as string, not number.
38-
"DoesNotExist", // Non-existent mark name should cause error.
38+
"DoesNotExist", // Non-existant mark name should cause error.
3939
];
4040
args.forEach(each => {
4141
test(()=>{

test/fixtures/wpt/user-timing/measure-l3.any.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ test(function() {
3232
const measureEntry = performance.measure("A", "mark", "mark");
3333
assert_equals(endTime(measureEntry), markEntry.startTime);
3434
assert_equals(measureEntry.startTime, markEntry.startTime);
35-
}, "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");
35+
}, "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");

test/fixtures/wpt/webmessaging/broadcastchannel/workers.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@
256256
// Since the worker has closed, it's not expected that the
257257
// BroadcastChannel will receive messages (there's a separate test for
258258
// that), so just indicate directly that it's ready to test receiving
259-
// a message from the parent despite the possibility of a race condition.
259+
// a message from the parent dispite the possibility of a race condition.
260260
postMessage('ready');
261261
}
262262
});

test/fixtures/wpt/webstorage/localstorage-about-blank-3P-iframe-opens-3P-window.partitioned.tentative.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
for (let id in ids) {
5858
assert_true(id !== undefined, "id is not undefined");
5959
}
60-
// Note: we use assert_true, rather than assert_equals because we're
60+
// Note: we use assert_true, rather than assert_equals becuase we're
6161
// setting random numbers as IDs - this would mean expectations
6262
// files wouldn't work as intended.
6363
assert_true(crossSiteIframeAboutBlankID !== crossSiteIframeID,

test/fixtures/wpt/webstorage/storage_getitem.window.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
assert_equals(storage.getItem(null), "bar", "storage.getItem(null)")
3131
assert_equals(storage.getItem(""), "baz", "storage.getItem('')")
3232
}, name + ".getItem should be correct")
33-
}, "Get value by getItem(key) and named access in " + name + ".");
33+
}, "Get value by getIten(key) and named access in " + name + ".");
3434
});

test/fixtures/wpt/webstorage/storage_length.window.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
storage.setItem("age", "20");
2020

2121
assert_equals(storage.length, 2, "storage.length")
22-
}, name + ".length (property access)");
22+
}, name + ".length (proprty access)");
2323
});

0 commit comments

Comments
 (0)