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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-fallback-iframe.html

Issue 2858933003: Upstream service worker `fetch` test to WPT (Closed)
Patch Set: Resolve conflict in `enable-blink-features=LayoutNG` Created 3 years, 7 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/http/tests/serviceworker/resources/fetch-request-fallback-iframe.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-fallback-iframe.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-fallback-iframe.html
deleted file mode 100644
index 37c7c62ffaf38b0a906da928a56c054e04d9a873..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-fallback-iframe.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<script>
-function xhr(url) {
- return new Promise(function(resolve, reject) {
- var request = new XMLHttpRequest();
- request.addEventListener(
- 'error',
- function(event) { reject(event); });
- request.addEventListener(
- 'load',
- function(event) { resolve(request.response); });
- request.open('GET', url);
- request.send();
- });
-}
-
-function load_image(url, cross_origin) {
- return new Promise(function(resolve, reject) {
- var img = document.createElement('img');
- document.body.appendChild(img);
- img.onload = function() {
- resolve();
- };
- img.onerror = function() {
- reject();
- };
- if (cross_origin != '') {
- img.crossOrigin = cross_origin;
- }
- img.src = url;
- });
-}
-</script>

Powered by Google App Engine
This is Rietveld 408576698