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

Side by Side 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: Created 6 years, 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <!-- The testcase input -->
4 <style>
5 d\eeeex {}
6 D\eeeeX {}
7 </style>
8
9 <script src="../../resources/testharness.js"></script>
10 <script src="../../resources/testharnessreport.js"></script>
11
12 <script>
rune 2014/04/02 11:11:09 Indentation looks funny. Use 4 space indentation c
13 test(function() {
14 var styleElm = document.getElementsByTagName("style")[0];
15 assert_not_equals(styleElm, null, "Style element exists");
16 var stylesheet = styleElm.sheet;
17 assert_not_equals(stylesheet, undefined, "style.sheet exists");
18 rules = stylesheet.cssRules;
19 assert_equals(rules.length, 2, "cssRules.length == 2");
20 assert_equals(rules[0].selectorText, "d\ueeeex", "Lowercase identifi er with escapes");
21 assert_equals(rules[1].selectorText, "d\ueeeex", "Uppercase identifi er with escapes");
22 }, "Correctly parsed identifier with escapes")
23 </script>
24 </head>
25 <body><!-- Intentionally left empty --></body>
26 </html>
OLDNEW
« 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