Skip to content

Commit c52ce2d

Browse files
committed
Add baseline for preload WPT tests
Part of servo#35035 Signed-off-by: Tim van der Lippe <[email protected]>
1 parent 33a68eb commit c52ce2d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1754
-0
lines changed

tests/wpt/include.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ skip: true
204204
skip: false
205205
[pointerevents]
206206
skip: false
207+
[preload]
208+
skip: false
207209
[quirks]
208210
skip: false
209211
[referrer-policy]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[download-resources.html]
2+
[Makes sure that preloaded resources are downloaded]
3+
expected: FAIL
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[dynamic-adding-preload-imagesrcset.html]
2+
expected: TIMEOUT
3+
[Makes sure that a dynamically added preload with imagesrcset works]
4+
expected: TIMEOUT
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[dynamic-adding-preload-nonce.html]
2+
expected: TIMEOUT
3+
[link preload with nonce attribute]
4+
expected: TIMEOUT
5+
6+
[link preload without nonce attribute]
7+
expected: NOTRUN
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[dynamic-adding-preload.html]
2+
expected: TIMEOUT
3+
[Makes sure that a dynamically added preloaded resource is downloaded]
4+
expected: TIMEOUT
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[link-header-modulepreload.html]
2+
expected: TIMEOUT
3+
[test that a header-preloaded module is loaded and consumed]
4+
expected: TIMEOUT
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[link-header-on-subresource.html]
2+
[Makes sure that Link headers on subresources preload resources]
3+
expected: FAIL
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[link-header-preload-delay-onload.html]
2+
[Makes sure that Link headers preload resources and block window.onload after resource discovery]
3+
expected: FAIL
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[link-header-preload-imagesrcset.html]
2+
[Makes sure that Link headers preload images with imagesrcset/imagesizes attributes.]
3+
expected: FAIL
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[link-header-preload-non-html.html]
2+
[XHTML documents should respect preload Link headers]
3+
expected: FAIL
4+
5+
[plain text documents should respect preload Link headers]
6+
expected: FAIL
7+
8+
[image documents should respect preload Link headers]
9+
expected: FAIL
10+
11+
[media documents should respect preload Link headers]
12+
expected: FAIL
13+
14+
[invalid image documents should respect preload Link headers]
15+
expected: FAIL
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[link-header-preload-nonce.html]
2+
[with nonce]
3+
expected: FAIL
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[link-header-preload.html]
2+
[Makes sure that Link headers preload resources]
3+
expected: FAIL
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
[modulepreload-as.html]
2+
expected: TIMEOUT
3+
[Modulepreload with as=""]
4+
expected: TIMEOUT
5+
6+
[Modulepreload with as="audio"]
7+
expected: NOTRUN
8+
9+
[Modulepreload with as="audioworklet"]
10+
expected: NOTRUN
11+
12+
[Modulepreload with as="document"]
13+
expected: NOTRUN
14+
15+
[Modulepreload with as="embed"]
16+
expected: NOTRUN
17+
18+
[Modulepreload with as="font"]
19+
expected: NOTRUN
20+
21+
[Modulepreload with as="frame"]
22+
expected: NOTRUN
23+
24+
[Modulepreload with as="iframe"]
25+
expected: NOTRUN
26+
27+
[Modulepreload with as="image"]
28+
expected: NOTRUN
29+
30+
[Modulepreload with as="json"]
31+
expected: NOTRUN
32+
33+
[Modulepreload with as="manifest"]
34+
expected: NOTRUN
35+
36+
[Modulepreload with as="object"]
37+
expected: NOTRUN
38+
39+
[Modulepreload with as="paintworklet"]
40+
expected: NOTRUN
41+
42+
[Modulepreload with as="report"]
43+
expected: NOTRUN
44+
45+
[Modulepreload with as="script"]
46+
expected: NOTRUN
47+
48+
[Modulepreload with as="serviceworker"]
49+
expected: NOTRUN
50+
51+
[Modulepreload with as="sharedworker"]
52+
expected: NOTRUN
53+
54+
[Modulepreload with as="style"]
55+
expected: NOTRUN
56+
57+
[Modulepreload with as="track"]
58+
expected: NOTRUN
59+
60+
[Modulepreload with as="video"]
61+
expected: NOTRUN
62+
63+
[Modulepreload with as="webidentity"]
64+
expected: NOTRUN
65+
66+
[Modulepreload with as="worker"]
67+
expected: NOTRUN
68+
69+
[Modulepreload with as="xslt"]
70+
expected: NOTRUN
71+
72+
[Modulepreload with as="fetch"]
73+
expected: NOTRUN
74+
75+
[Modulepreload with as="invalid-dest"]
76+
expected: NOTRUN
77+
78+
[Modulepreload with as="iMaGe"]
79+
expected: NOTRUN
80+
81+
[Modulepreload with as="sCrIpT"]
82+
expected: NOTRUN
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[modulepreload-sri-importmap.html]
2+
[Script should not be loaded if modulepreload's integrity is invalid]
3+
expected: FAIL
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[modulepreload-sri.html]
2+
[Script should not be loaded if modulepreload's integrity is invalid]
3+
expected: FAIL
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
[modulepreload.html]
2+
expected: TIMEOUT
3+
[link rel=modulepreload]
4+
expected: TIMEOUT
5+
6+
[same-origin link rel=modulepreload crossorigin=anonymous]
7+
expected: NOTRUN
8+
9+
[same-origin link rel=modulepreload crossorigin=use-credentials]
10+
expected: NOTRUN
11+
12+
[cross-origin link rel=modulepreload]
13+
expected: NOTRUN
14+
15+
[cross-origin link rel=modulepreload crossorigin=anonymous]
16+
expected: NOTRUN
17+
18+
[cross-origin link rel=modulepreload crossorigin=use-credentials]
19+
expected: NOTRUN
20+
21+
[link rel=modulepreload with submodules]
22+
expected: NOTRUN
23+
24+
[link rel=modulepreload for a module with syntax error]
25+
expected: NOTRUN
26+
27+
[link rel=modulepreload for a module with network error]
28+
expected: NOTRUN
29+
30+
[link rel=modulepreload with bad href attribute]
31+
expected: NOTRUN
32+
33+
[link rel=modulepreload as=script]
34+
expected: NOTRUN
35+
36+
[link rel=modulepreload with non-script-like as= value (image)]
37+
expected: NOTRUN
38+
39+
[link rel=modulepreload with non-script-like as= value (xslt)]
40+
expected: NOTRUN
41+
42+
[link rel=modulepreload with integrity match]
43+
expected: NOTRUN
44+
45+
[link rel=modulepreload with integrity match2]
46+
expected: NOTRUN
47+
48+
[link rel=modulepreload with integrity mismatch]
49+
expected: NOTRUN
50+
51+
[link rel=modulepreload with integrity mismatch2]
52+
expected: NOTRUN
53+
54+
[link rel=modulepreload with integrity mismatch3]
55+
expected: NOTRUN
56+
57+
[multiple link rel=modulepreload with same href]
58+
expected: NOTRUN
59+
60+
[multiple link rel=modulepreload with child module before parent]
61+
expected: NOTRUN
62+
63+
[link rel=modulepreload with matching media]
64+
expected: NOTRUN
65+
66+
[link rel=modulepreload with non-matching media]
67+
expected: NOTRUN
68+
69+
[link rel=modulepreload with empty media]
70+
expected: NOTRUN
71+
72+
[link rel=modulepreload with empty href]
73+
expected: NOTRUN
74+
75+
[link rel=modulepreload with empty href and invalid as= value]
76+
expected: NOTRUN
77+
78+
[link rel=modulepreload and script with non-matching crossorigin values]
79+
expected: NOTRUN
80+
81+
[link rel=modulepreload and script with non-matching crossorigin values2]
82+
expected: NOTRUN
83+
84+
[link rel=modulepreload and non-module script]
85+
expected: NOTRUN
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[onerror-event.html]
2+
[Makes sure that preloaded resources trigger the onerror event]
3+
expected: FAIL
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[onload-event.html]
2+
[Makes sure that preloaded resources trigger the onload event]
3+
expected: FAIL
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[preconnect-onerror-event.html]
2+
expected: TIMEOUT
3+
[Preconnect should not fire load (or error) events]
4+
expected: TIMEOUT
5+
6+
[Preconnect should not fire error (or load) events for non-existent origins]
7+
expected: NOTRUN
8+
9+
[Preconnect should not fire error (or load) events for non-http(s) scheme]
10+
expected: NOTRUN
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[preconnect.html]
2+
expected: TIMEOUT
3+
[Test that preconnect reduces connection time to zero]
4+
expected: TIMEOUT
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[prefetch-document.html]
2+
[same-site different-origin document prefetch without 'as' should not be consumed]
3+
expected: FAIL
4+
5+
[different-site document prefetch without 'as' should not be consumed]
6+
expected: FAIL
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[prefetch-headers.https.html]
2+
[Prefetch should respect CORS mode]
3+
expected: FAIL
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[preload-connect-to-doc.html]
2+
[preload link should be fetched when attached a shadow DOM]
3+
expected: FAIL
4+
5+
[preload links from DocumentFragment only work when attached]
6+
expected: FAIL
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[preload-dynamic-csp.html]
2+
expected: TIMEOUT
3+
[Makes sure that preload requests respect CSP directives that are added after the preload]
4+
expected: NOTRUN

0 commit comments

Comments
 (0)