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: third_party/WebKit/LayoutTests/css3/escape-dom-api.html

Issue 1498473004: CSS.escape('\0') should not throw. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding idl file changes Created 5 years 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 | third_party/WebKit/LayoutTests/css3/escape-dom-api-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/css3/escape-dom-api.html
diff --git a/third_party/WebKit/LayoutTests/css3/escape-dom-api.html b/third_party/WebKit/LayoutTests/css3/escape-dom-api.html
index b1d31fb786ec3da18798e21b78837dd12e2a373c..a0d249a654fc2028f60c144ab4090e013008bf92 100644
--- a/third_party/WebKit/LayoutTests/css3/escape-dom-api.html
+++ b/third_party/WebKit/LayoutTests/css3/escape-dom-api.html
@@ -8,10 +8,15 @@
// Test from https://github.com/mathiasbynens/CSS.escape
description("Test window.CSS.escape()");
- shouldThrow("CSS.escape('\0')");
- shouldThrow("CSS.escape('a\0')");
- shouldThrow("CSS.escape('\0b')");
- shouldThrow("CSS.escape('a\0b')");
+ shouldBeEqualToString("CSS.escape('\0')", "\ufffd");
+ shouldBeEqualToString("CSS.escape('a\0')", "a\ufffd");
+ shouldBeEqualToString("CSS.escape('\0b')", "\ufffdb");
+ shouldBeEqualToString("CSS.escape('a\0b')", "a\ufffdb");
+
+ shouldBeEqualToString("CSS.escape('\ufffd')", "\ufffd");
+ shouldBeEqualToString("CSS.escape('a\ufffd')", "a\ufffd");
+ shouldBeEqualToString("CSS.escape('\ufffdb')", "\ufffdb");
+ shouldBeEqualToString("CSS.escape('a\ufffdb')", "a\ufffdb");
shouldThrow("CSS.escape()");
shouldBeEqualToString("CSS.escape(true)", "true");
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/css3/escape-dom-api-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698