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

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

Issue 540823003: ServiceWorker: Implement navigator.serviceWorker.getRegistration [3/3] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/getregistration.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a1a1147813b1bf84cdfe6e0915df604750cc0549 100644
--- a/LayoutTests/http/tests/serviceworker/chromium/url-limits.html
+++ b/LayoutTests/http/tests/serviceworker/chromium/url-limits.html
@@ -36,4 +36,13 @@ async_test(function(t) {
}));
}, 'Exceedingly long scope URLs are rejected by unregister()');
+async_test(function(t) {
+ navigator.serviceWorker.getRegistration(long_url).
+ then(t.unreached_func('getRegistration with a long url should fail')).
+ catch(t.step_func(function(reason) {
+ assert_equals(reason.name, 'SecurityError');
+ t.done();
+ }));
+}, 'Exceedingly long document URLs are rejected by getRegistration()');
+
</script>
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/getregistration.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698