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

Unified Diff: LayoutTests/http/tests/serviceworker/resources/fetch-request-redirect-iframe.html

Issue 1280733002: [3/3 blink] Support redirect option of Request and "opaqueredirect" response type. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@Redirect1
Patch Set: add comment Created 5 years, 4 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: LayoutTests/http/tests/serviceworker/resources/fetch-request-redirect-iframe.html
diff --git a/LayoutTests/http/tests/serviceworker/resources/fetch-request-fallback-iframe.html b/LayoutTests/http/tests/serviceworker/resources/fetch-request-redirect-iframe.html
similarity index 61%
copy from LayoutTests/http/tests/serviceworker/resources/fetch-request-fallback-iframe.html
copy to LayoutTests/http/tests/serviceworker/resources/fetch-request-redirect-iframe.html
index 37c7c62ffaf38b0a906da928a56c054e04d9a873..ffd76bfc49908b9b25d10d5671c9ddb7095ea752 100644
--- a/LayoutTests/http/tests/serviceworker/resources/fetch-request-fallback-iframe.html
+++ b/LayoutTests/http/tests/serviceworker/resources/fetch-request-redirect-iframe.html
@@ -13,20 +13,23 @@ function xhr(url) {
});
}
-function load_image(url, cross_origin) {
+function load_image(url) {
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.onload = resolve;
+ img.onerror = reject;
img.src = url;
});
}
+
+function load_audio(url) {
+ return new Promise(function(resolve, reject) {
+ var audio = document.createElement('audio');
+ document.body.appendChild(audio);
+ audio.oncanplay = resolve;
+ audio.onerror = reject;
+ audio.src = url;
+ });
+}
</script>

Powered by Google App Engine
This is Rietveld 408576698