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

Unified Diff: LayoutTests/fast/css/script-tests/string-quote-binary.js

Issue 1015303002: Promote new CSS parser to experimental (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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/fast/css/script-tests/string-quote-binary.js
diff --git a/LayoutTests/fast/css/script-tests/string-quote-binary.js b/LayoutTests/fast/css/script-tests/string-quote-binary.js
index f6525f7163ebe5ff9dfd47029f859bec435d170a..870b2bd130b78b2d53fb79522372a0d322bec6b7 100644
--- a/LayoutTests/fast/css/script-tests/string-quote-binary.js
+++ b/LayoutTests/fast/css/script-tests/string-quote-binary.js
@@ -5,23 +5,24 @@ description(
var inputs = ["'\\0\\1\\2\\3\\4\\5\\6\\7\\8\\9\\a\\b\\c\\d\\e\\f'",
"'\\10\\11\\12\\13\\14\\15\\16\\17\\18\\19\\1a\\1b\\1c\\1d\\1e\\1f\\7f'",
"'\\A\\B\\C\\D\\E\\F\\1A\\1B\\1C\\1D\\1E\\1F\\7F'",
- "'\\0 \\1 \\2 '",
- "'\\0 \\1 \\2 '",
- "'\\0 \\1 \\2 '",
+ "'\\3 \\1 \\2 '",
+ "'\\3 \\1 \\2 '",
+ "'\\3 \\1 \\2 '",
"'\\00000f\\00000g'",
- "'\\0 0\\0 1\\0 2\\0 3\\0 4\\0 5\\0 6\\0 7\\0 8\\0 9'",
- "'\\0 A\\0 B\\0 C\\0 D\\0 E\\0 F\\0 G'",
- "'\\0 a\\0 b\\0 c\\0 d\\0 e\\0 f\\0 g'"];
-var expected = ["'\\0\\1\\2\\3\\4\\5\\6\\7\\8\\9\\a\\b\\c\\d\\e\\f'",
+ "'\\1 0\\1 1\\1 2\\1 3\\1 4\\1 5\\1 6\\1 7\\1 8\\1 9'",
+ "'\\1 A\\1 B\\1 C\\1 D\\1 E\\1 F\\1 G'",
+ "'\\1 a\\1 b\\1 c\\1 d\\1 e\\1 f\\1 g'"];
+// Null is replaced with U+FFFD as per css-syntax
+var expected = ["'\uFFFD\\1\\2\\3\\4\\5\\6\\7\\8\\9\\a\\b\\c\\d\\e\\f'",
"'\\10\\11\\12\\13\\14\\15\\16\\17\\18\\19\\1a\\1b\\1c\\1d\\1e\\1f\\7f'",
"'\\a\\b\\c\\d\\e\\f\\1a\\1b\\1c\\1d\\1e\\1f\\7f'",
- "'\\0\\1\\2'", // No space after each control character.
- "'\\0 \\1 \\2 '", // One space delimiter (that will be ignored by the CSS parser), plus one actual space.
- "'\\0 \\1 \\2 '", // One space delimiter, plus two actual spaces.
- "'\\f\\0g'",
- "'\\0 0\\0 1\\0 2\\0 3\\0 4\\0 5\\0 6\\0 7\\0 8\\0 9'", // Need a space before [0-9A-Fa-f], but not before [Gg].
- "'\\0 A\\0 B\\0 C\\0 D\\0 E\\0 F\\0G'",
- "'\\0 a\\0 b\\0 c\\0 d\\0 e\\0 f\\0g'"];
+ "'\\3\\1\\2'", // No space after each control character.
+ "'\\3 \\1 \\2 '", // One space delimiter (that will be ignored by the CSS parser), plus one actual space.
+ "'\\3 \\1 \\2 '", // One space delimiter, plus two actual spaces.
+ "'\\f\uFFFDg'",
+ "'\\1 0\\1 1\\1 2\\1 3\\1 4\\1 5\\1 6\\1 7\\1 8\\1 9'", // Need a space before [0-9A-Fa-f], but not before [Gg].
+ "'\\1 A\\1 B\\1 C\\1 D\\1 E\\1 F\\1G'",
+ "'\\1 a\\1 b\\1 c\\1 d\\1 e\\1 f\\1g'"];
var testElement = document.createElement('div');
for (var i = 0; i < inputs.length; ++i) {
« no previous file with comments | « LayoutTests/fast/css/parsing-css-wrap-expected.txt ('k') | LayoutTests/fast/css/string-quote-binary-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698