Skip to content

Commit 1ce439f

Browse files
Uzlopakgithub-actions[bot]
authored andcommitted
chore: update WPT
1 parent 436e749 commit 1ce439f

9 files changed

Lines changed: 19 additions & 10 deletions

File tree

test/fixtures/wpt/fetch/api/body/mime-type.any.js

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

8888
[
8989
() => new Request("about:blank", { method: "POST", body: new Blob([""], { type: "Text/Plain" }), headers: [["Content-Type", "Text/Html"]] }),
90-
() => new Response(new Blob([""], { type: "Text/Plain" }, { headers: [["Content-Type", "Text/Html"]] }))
90+
() => new Response(new Blob([""], { type: "Text/Plain" }), { headers: [["Content-Type", "Text/Html"]] })
9191
].forEach(bodyContainerCreator => {
9292
const bodyContainer = bodyContainerCreator();
9393
const cloned = bodyContainer.clone();

test/fixtures/wpt/fetch/api/resources/keepalive-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function assertStashedTokenAsync(
117117
*
118118
* `unloadIframe` to unload the iframe before verifying stashed token to
119119
* simulate the situation that unloads after fetching. Note that this test is
120-
* different from `keepaliveRedirectInUnloadTest()` in that the the latter
120+
* different from `keepaliveRedirectInUnloadTest()` in that the latter
121121
* performs fetch() call directly in `unload` event handler, while this test
122122
* does it in `load`.
123123
*/

test/fixtures/wpt/resources/chromium/webxr-test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,6 +1207,11 @@ class MockRuntime {
12071207

12081208
this.enabledFeatures_ = enabled_features;
12091209

1210+
let selectedDepthType;
1211+
if (sessionOptions.depthOptions && sessionOptions.depthOptions.depthTypeRequest.length != 0) {
1212+
selectedDepthType = sessionOptions.depthOptions.depthTypeRequest[0];
1213+
}
1214+
12101215
return Promise.resolve({
12111216
session: {
12121217
submitFrameSink: submit_frame_sink,
@@ -1219,9 +1224,12 @@ class MockRuntime {
12191224
depthConfiguration: enabled_features.includes(
12201225
xrSessionMojom.XRSessionFeature.DEPTH) ?
12211226
{
1227+
// TODO(https://crbug.com/409806803): Update support via
1228+
// a webxr-test-api method.
12221229
depthUsage: xrSessionMojom.XRDepthUsage.kCPUOptimized,
12231230
depthDataFormat:
12241231
xrSessionMojom.XRDepthDataFormat.kLuminanceAlpha,
1232+
depthType: selectedDepthType,
12251233
} :
12261234
null,
12271235
views: this._getDefaultViews(),
@@ -1251,6 +1259,7 @@ class MockRuntime {
12511259
switch (feature) {
12521260
case xrSessionMojom.XRSessionFeature.DEPTH:
12531261
// This matches what Chrome can currently support.
1262+
// TODO(https://crbug.com/409806803): Add a webxr-test-api for this.
12541263
return options.depthOptions &&
12551264
(options.depthOptions.usagePreferences.length == 0 ||
12561265
options.depthOptions.usagePreferences.includes(

test/fixtures/wpt/resources/testdriver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@
629629
/**
630630
* Minimizes the browser window.
631631
*
632-
* Matches the the behaviour of the `Minimize
632+
* Matches the behaviour of the `Minimize
633633
* <https://www.w3.org/TR/webdriver/#minimize-window>`_
634634
* WebDriver command
635635
*

test/fixtures/wpt/resources/testharness.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,13 +1011,13 @@
10111011
/**
10121012
* Stop listening for events
10131013
*/
1014-
function stop_watching() {
1014+
this.stop_watching = function() {
10151015
for (var i = 0; i < eventTypes.length; i++) {
10161016
watchedNode.removeEventListener(eventTypes[i], eventHandler, false);
10171017
}
10181018
};
10191019

1020-
test._add_cleanup(stop_watching);
1020+
test._add_cleanup(this.stop_watching);
10211021

10221022
return this;
10231023
}

test/fixtures/wpt/service-workers/service-worker/claim-using-registration.https.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
.then(function() {
9898
frame.remove();
9999
});
100-
}, 'Test for the waiting worker claims a client which is using the the ' +
100+
}, 'Test for the waiting worker claims a client which is using the ' +
101101
'same registration');
102102

103103
</script>

test/fixtures/wpt/service-workers/service-worker/resources/testharness-helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// 2.1 |a.p| is weakly equal to |b.p| for all own properties |p| of |a|.
1515
// 2.2 Every own property of |b| is an own property of |a|.
1616
//
17-
// This is a replacement for the the version of assert_object_equals() in
17+
// This is a replacement for the version of assert_object_equals() in
1818
// testharness.js. The latter doesn't handle own properties correctly. I.e. if
1919
// |a.p| is not an own property, it still requires that |b.p| be an own
2020
// property.

test/fixtures/wpt/service-workers/service-worker/unregister-immediately-before-installed.https.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// worker's state to 'redundant'.
1717

1818
promise_test(async test => {
19-
// This test keeps the the service worker in the 'parsed' state by using a
19+
// This test keeps the service worker in the 'parsed' state by using a
2020
// script with an infinite loop.
2121
const script_url = 'resources/onparse-infiniteloop-worker.js';
2222
const scope_url =
@@ -34,7 +34,7 @@
3434
}, 'Clear-Site-Data must abort service worker registration.');
3535

3636
promise_test(async test => {
37-
// This test keeps the the service worker in the 'installing' state by using a
37+
// This test keeps the service worker in the 'installing' state by using a
3838
// script with an install event waitUntil() promise that never resolves.
3939
const script_url = 'resources/oninstall-waituntil-forever.js';
4040
const scope_url =

test/fixtures/wpt/service-workers/service-worker/unregister-immediately.https.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// active worker's controlled clients to unload.
1717

1818
promise_test(async test => {
19-
// This test keeps the the service worker in the 'activating' state by using a
19+
// This test keeps the service worker in the 'activating' state by using a
2020
// script with an activate event waitUntil() promise that never resolves.
2121
const script_url = 'resources/onactivate-waituntil-forever.js';
2222
const scope_url =

0 commit comments

Comments
 (0)