File tree 4 files changed +10
-6
lines changed
4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
- promise_test ( ( ) => fetch ( "resources/IdnaTestV2.json" ) . then ( res => res . json ( ) ) . then ( runTests ) , "Loading data…" ) ;
1
+ // META: global=window,dedicatedworker,shadowrealm
2
+ promise_test ( ( ) => fetch_json ( "resources/IdnaTestV2.json" ) . then ( runTests ) , "Loading data…" ) ;
2
3
3
4
// Performance impact of this seems negligible (performance.now() diff in WebKit went from 48 to 52)
4
5
// and there was a preference to let more non-ASCII hit the parser.
Original file line number Diff line number Diff line change
1
+ // META: global=window,dedicatedworker,shadowrealm
1
2
// META: script=/common/subset-tests-by-key.js
2
3
// META: timeout=long
3
4
// META: variant=?include=file
@@ -51,6 +52,6 @@ function runURLTests(urlTests) {
51
52
}
52
53
53
54
promise_test ( ( ) => Promise . all ( [
54
- fetch ( "resources/urltestdata.json" ) . then ( res => res . json ( ) ) ,
55
- fetch ( "resources/urltestdata-javascript-only.json" ) . then ( res => res . json ( ) ) ,
55
+ fetch_json ( "resources/urltestdata.json" ) ,
56
+ fetch_json ( "resources/urltestdata-javascript-only.json" ) ,
56
57
] ) . then ( ( tests ) => tests . flat ( ) ) . then ( runURLTests ) , "Loading data…" ) ;
Original file line number Diff line number Diff line change
1
+ // META: global=window,dedicatedworker,shadowrealm
1
2
promise_test ( ( ) => Promise . all ( [
2
- fetch ( "resources/urltestdata.json" ) . then ( res => res . json ( ) ) ,
3
- fetch ( "resources/urltestdata-javascript-only.json" ) . then ( res => res . json ( ) ) ,
3
+ fetch_json ( "resources/urltestdata.json" ) ,
4
+ fetch_json ( "resources/urltestdata-javascript-only.json" ) ,
4
5
] ) . then ( ( tests ) => tests . flat ( ) ) . then ( runURLTests ) , "Loading data…" ) ;
5
6
6
7
function runURLTests ( urlTests ) {
Original file line number Diff line number Diff line change
1
+ // META: global=window,dedicatedworker,shadowrealm
1
2
// META: script=/common/subset-tests-by-key.js
2
3
// META: variant=?include=file
3
4
// META: variant=?include=javascript
6
7
7
8
// Keep this file in sync with url-setters-a-area.window.js.
8
9
9
- promise_test ( ( ) => fetch ( "resources/setters_tests.json" ) . then ( res => res . json ( ) ) . then ( runURLSettersTests ) , "Loading data…" ) ;
10
+ promise_test ( ( ) => fetch_json ( "resources/setters_tests.json" ) . then ( runURLSettersTests ) , "Loading data…" ) ;
10
11
11
12
function runURLSettersTests ( all_test_cases ) {
12
13
for ( var attribute_to_be_set in all_test_cases ) {
You can’t perform that action at this time.
0 commit comments