Skip to content

Commit b162849

Browse files
committed
test: restore wpt typos
1 parent bc4cd41 commit b162849

File tree

13 files changed

+24
-24
lines changed

13 files changed

+24
-24
lines changed

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/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/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/testdriver-actions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -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

+2-2
Original file line numberDiff line numberDiff line change
@@ -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/url/a-element.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
-->
1818

1919

20-
<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>
20+
<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>
2121

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

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/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)