Skip to content

Commit

Permalink
Enable URLPattern tests in ShadowRealm
Browse files Browse the repository at this point in the history
Requires using fetch_json to download the test data.
  • Loading branch information
ptomato committed Nov 27, 2024
1 parent e3a2f45 commit 92bf5d0
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 9 deletions.
3 changes: 1 addition & 2 deletions urlpattern/resources/urlpattern-compare-tests.tentative.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ function runTests(data) {
}

promise_test(async function() {
const response = await fetch('resources/urlpattern-compare-test-data.json');
const data = await response.json();
const data = await fetch_json('resources/urlpattern-compare-test-data.json');
runTests(data);
}, 'Loading data...');
3 changes: 1 addition & 2 deletions urlpattern/resources/urlpatterntests.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ function runTests(data) {
}

promise_test(async function() {
const response = await fetch('resources/urlpatterntestdata.json');
const data = await response.json();
const data = await fetch_json('resources/urlpatterntestdata.json');
runTests(data);
}, 'Loading data...');
2 changes: 1 addition & 1 deletion urlpattern/urlpattern-compare.tentative.any.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// META: global=window,worker
// META: global=window,worker,shadowrealm
// META: script=resources/urlpattern-compare-tests.tentative.js
2 changes: 1 addition & 1 deletion urlpattern/urlpattern-compare.tentative.https.any.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// META: global=window,worker
// META: global=window,worker,shadowrealm
// META: script=resources/urlpattern-compare-tests.tentative.js
2 changes: 1 addition & 1 deletion urlpattern/urlpattern-hasregexpgroups.any.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// META: global=window,worker
// META: global=window,worker,shadowrealm
// META: script=resources/urlpattern-hasregexpgroups-tests.js
2 changes: 1 addition & 1 deletion urlpattern/urlpattern.any.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// META: global=window,worker
// META: global=window,worker,shadowrealm-in-window,shadowrealm-in-shadowrealm,shadowrealm-in-dedicatedworker,shadowrealm-in-sharedworker
// META: script=resources/urlpatterntests.js
2 changes: 1 addition & 1 deletion urlpattern/urlpattern.https.any.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// META: global=window,worker
// META: global=window,worker,shadowrealm
// META: script=resources/urlpatterntests.js

0 comments on commit 92bf5d0

Please sign in to comment.