Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/fetch-request-resources-iframe.https.html

Issue 2415873002: Import w3c tests for the service workers (Closed)
Patch Set: Rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <script src="../../resources/testharness.js"></script> 1 <script src="test-helpers.sub.js?pipe=sub"></script>
2 <script src="test-helpers.js"></script>
3 <body> 2 <body>
4 <script> 3 <script>
5 4
6 function load_image(url, cross_origin) { 5 function load_image(url, cross_origin) {
7 var img = document.createElement('img'); 6 var img = document.createElement('img');
8 if (cross_origin != '') { 7 if (cross_origin != '') {
9 img.crossOrigin = cross_origin; 8 img.crossOrigin = cross_origin;
10 } 9 }
11 img.src = url; 10 img.src = url;
12 } 11 }
(...skipping 12 matching lines...) Expand all
25 link.rel = 'stylesheet' 24 link.rel = 'stylesheet'
26 link.href = url; 25 link.href = url;
27 link.type = 'text/css'; 26 link.type = 'text/css';
28 if (cross_origin != '') { 27 if (cross_origin != '') {
29 link.crossOrigin = cross_origin; 28 link.crossOrigin = cross_origin;
30 } 29 }
31 document.body.appendChild(link); 30 document.body.appendChild(link);
32 } 31 }
33 32
34 function load_font(url) { 33 function load_font(url) {
35 var fontFace = new FontFace(url, 'url(' + url + ')'); 34 var fontFace = new FontFace('test', 'url(' + url + ')');
36 fontFace.load(); 35 fontFace.load();
37 } 36 }
38 37
39 function load_css_image(url, type) { 38 function load_css_image(url, type) {
40 var div = document.createElement('div'); 39 var div = document.createElement('div');
41 document.body.appendChild(div); 40 document.body.appendChild(div);
42 div.style[type] = 'url(' + url + ')'; 41 div.style[type] = 'url(' + url + ')';
43 } 42 }
44 43
45 function load_css_image_set(url, type) { 44 function load_css_image_set(url, type) {
46 var div = document.createElement('div'); 45 var div = document.createElement('div');
47 document.body.appendChild(div); 46 document.body.appendChild(div);
48 div.style[type] = '-webkit-image-set(url(' + url + ') 1x)'; 47 div.style[type] = '-webkit-image-set(url(' + url + ') 1x)';
49 } 48 }
50 49
51 function load_audio(url, cross_origin) { 50 function load_script_with_integrity(url, integrity) {
52 var audio = document.createElement('audio'); 51 var script = document.createElement('script');
53 if (cross_origin != '') { 52 script.src = url;
54 audio.crossOrigin = cross_origin; 53 script.integrity = integrity;
55 } 54 document.body.appendChild(script);
56 audio.src = url;
57 document.body.appendChild(audio);
58 } 55 }
56
57 function load_css_with_integrity(url, integrity) {
58 var link = document.createElement('link');
59 link.rel = 'stylesheet'
60 link.href = url;
61 link.type = 'text/css';
62 link.integrity = integrity;
63 document.body.appendChild(link);
64 }
65
59 </script> 66 </script>
60 </body> 67 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698