Chromium Code Reviews| 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..1709540b1110e33c8ede949e4a0c01d2bc0cd68a |
| --- /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> |
|
rune
2014/04/02 11:11:09
Indentation looks funny. Use 4 space indentation c
|
| + 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> |