Index: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/fetch-request-resources-iframe.https.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-resources-iframe.html b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/fetch-request-resources-iframe.https.html |
similarity index 66% |
copy from third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-resources-iframe.html |
copy to third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/fetch-request-resources-iframe.https.html |
index f13129c5f9182d1d6526e3315c230f65a94670ef..93b038dd67c590b5011e0bded4ce5dab338f25fa 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-resources-iframe.html |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/fetch-request-resources-iframe.https.html |
@@ -1,5 +1,4 @@ |
-<script src="../../resources/testharness.js"></script> |
-<script src="test-helpers.js"></script> |
+<script src="test-helpers.sub.js?pipe=sub"></script> |
<body> |
<script> |
@@ -32,7 +31,7 @@ function load_css(url, cross_origin) { |
} |
function load_font(url) { |
- var fontFace = new FontFace(url, 'url(' + url + ')'); |
+ var fontFace = new FontFace('test', 'url(' + url + ')'); |
fontFace.load(); |
} |
@@ -48,13 +47,21 @@ function load_css_image_set(url, type) { |
div.style[type] = '-webkit-image-set(url(' + url + ') 1x)'; |
} |
-function load_audio(url, cross_origin) { |
- var audio = document.createElement('audio'); |
- if (cross_origin != '') { |
- audio.crossOrigin = cross_origin; |
- } |
- audio.src = url; |
- document.body.appendChild(audio); |
+function load_script_with_integrity(url, integrity) { |
+ var script = document.createElement('script'); |
+ script.src = url; |
+ script.integrity = integrity; |
+ document.body.appendChild(script); |
} |
+ |
+function load_css_with_integrity(url, integrity) { |
+ var link = document.createElement('link'); |
+ link.rel = 'stylesheet' |
+ link.href = url; |
+ link.type = 'text/css'; |
+ link.integrity = integrity; |
+ document.body.appendChild(link); |
+} |
+ |
</script> |
</body> |