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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-request-redirect.html

Issue 1920873002: Enable error pages for layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TEST. Created 4 years, 8 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/fetch-request-redirect.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-request-redirect.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-request-redirect.html
index 1d8e7e7f2dfb5cdafdb677cf1540bde44cd54652..de3affe221f9f9aa8f9c1ef7ab80f2682392628c 100644
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-request-redirect.html
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-request-redirect.html
@@ -33,10 +33,14 @@ function iframe_test(url, timeout_enabled) {
frame.onload = function() {
if (timeout_enabled)
clearTimeout(timer);
- if (frame.contentDocument.body.textContent == 'Hello world\n')
- resolve();
- else
- reject(new Error('content mismatch'));
+ try {
+ if (frame.contentDocument.body.textContent == 'Hello world\n')
+ resolve();
+ else
+ reject(new Error('content mismatch'));
+ } catch (e) {
+ reject(new Error(e));
+ }
frame.remove();
};
document.body.appendChild(frame);

Powered by Google App Engine
This is Rietveld 408576698