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

Unified 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 side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698