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

Unified Diff: LayoutTests/http/tests/serviceworker/chromium/url-limits.html

Issue 546353003: ServiceWorker: Change worker script fetch error code(1/3). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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/chromium/url-limits.html
diff --git a/LayoutTests/http/tests/serviceworker/chromium/url-limits.html b/LayoutTests/http/tests/serviceworker/chromium/url-limits.html
index a487b6be19b83f4097e5699abe414fce1739d7ac..1bb04f3a77fc9836ab238d9023cfd3d864517c14 100644
--- a/LayoutTests/http/tests/serviceworker/chromium/url-limits.html
+++ b/LayoutTests/http/tests/serviceworker/chromium/url-limits.html
@@ -13,7 +13,7 @@ async_test(function(t) {
navigator.serviceWorker.register(long_url).
then(t.unreached_func('registering a long script url should fail')).
catch(t.step_func(function(reason) {
- assert_equals(reason.name, 'SecurityError');
+ assert_equals(reason.name, 'AbortError');
t.done();
}));
}, 'Exceedingly long script URLs are rejected by register()');
@@ -22,7 +22,7 @@ async_test(function(t) {
navigator.serviceWorker.register('empty-worker.js', {scope:long_url}).
then(t.unreached_func('registering a long scope url should fail')).
catch(t.step_func(function(reason) {
- assert_equals(reason.name, 'SecurityError');
+ assert_equals(reason.name, 'AbortError');
t.done();
}));
}, 'Exceedingly long scope URLs are rejected by register()');
@@ -31,7 +31,7 @@ async_test(function(t) {
navigator.serviceWorker.unregister(long_url).
then(t.unreached_func('unregistering a long scope url should fail')).
catch(t.step_func(function(reason) {
- assert_equals(reason.name, 'SecurityError');
+ assert_equals(reason.name, 'AbortError');
t.done();
}));
}, 'Exceedingly long scope URLs are rejected by unregister()');

Powered by Google App Engine
This is Rietveld 408576698