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

Unified Diff: LayoutTests/http/tests/serviceworker/resources/request-worker.js

Issue 340943002: ServiceWorker: Update IDLs to use ScalarValueString (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add URLs and one real test case Created 6 years, 6 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 | Source/bindings/scripts/v8_interface.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/serviceworker/resources/request-worker.js
diff --git a/LayoutTests/http/tests/serviceworker/resources/request-worker.js b/LayoutTests/http/tests/serviceworker/resources/request-worker.js
index ef41a3a327d090748a1012b8968e16d26c826e8e..34629f9ecfebf2d884901bc20cad299bf7dfdc1b 100644
--- a/LayoutTests/http/tests/serviceworker/resources/request-worker.js
+++ b/LayoutTests/http/tests/serviceworker/resources/request-worker.js
@@ -22,6 +22,10 @@ test(function() {
request.url = 'http://localhost/';
assert_equals(request.url, 'http://localhost/', 'Request.url should be writable');
+ request.url = 'http://localhost/\uD800'; // Unmatched lead surrogate.
+ assert_equals(request.url,
+ 'http://localhost/' + encodeURIComponent('\uFFFD'),
+ 'Request.url should have unmatched surrogates replaced.');
request.method = 'POST';
assert_equals(request.method, 'POST', 'Request.method should be writable');
assert_throws({name: 'TypeError'}, function() { request.method = 'invalid \u0100'; },
« no previous file with comments | « no previous file | Source/bindings/scripts/v8_interface.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698