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

Unified Diff: LayoutTests/fast/css/css-escaped-identifier.html

Issue 213743018: Fix for CSS identifier related assert (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added explanation in a comment. Created 6 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/css-escaped-identifier.html
diff --git a/LayoutTests/fast/css/css-escaped-identifier.html b/LayoutTests/fast/css/css-escaped-identifier.html
new file mode 100644
index 0000000000000000000000000000000000000000..87bf7548d1f18193624116584f9aaf5c64523641
--- /dev/null
+++ b/LayoutTests/fast/css/css-escaped-identifier.html
@@ -0,0 +1,26 @@
+<html>
+<head>
+ <!-- The testcase input -->
+ <style>
+ d\eeeex {}
+ D\eeeeX {}
+ </style>
+
+ <script src="../../resources/testharness.js"></script>
+ <script src="../../resources/testharnessreport.js"></script>
+
+ <script>
+ test(function() {
+ var styleElm = document.getElementsByTagName("style")[0];
+ assert_not_equals(styleElm, null, "Style element exists");
+ var stylesheet = styleElm.sheet;
+ assert_not_equals(stylesheet, undefined, "style.sheet exists");
+ rules = stylesheet.cssRules;
+ assert_equals(rules.length, 2, "cssRules.length == 2");
+ assert_equals(rules[0].selectorText, "d\ueeeex", "Lowercase identifier with escapes");
+ assert_equals(rules[1].selectorText, "d\ueeeex", "Uppercase identifier with escapes");
+ }, "Correctly parsed identifier with escapes");
+ </script>
+</head>
+<body><!-- Intentionally left empty --></body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/css/css-escaped-identifier-expected.txt » ('j') | Source/core/css/parser/BisonCSSParser-in.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698