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

Unified Diff: LayoutTests/fast/css/pseudo-escaped-parenthesis.html

Issue 23710067: :-webkit-any pseudo with escaped '(' should not crash. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed workaround code for :not() Created 7 years, 3 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/pseudo-escaped-parenthesis.html
diff --git a/LayoutTests/fast/css/pseudo-escaped-parenthesis.html b/LayoutTests/fast/css/pseudo-escaped-parenthesis.html
new file mode 100644
index 0000000000000000000000000000000000000000..40ca7e16a10bd34e3fa79b433bf9ef29f22c9a41
--- /dev/null
+++ b/LayoutTests/fast/css/pseudo-escaped-parenthesis.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Pseudo classes with escaped start parenthesis</title>
+ <script src="../../resources/testharness.js"></script>
+ <script src="../../resources/testharnessreport.js"></script>
+ <style>:-webkit-any\( {}</style>
+ <style>:nth-child\( {}</style>
+ <style>:nth-of-type\( {}</style>
+ <style>:nth-last-child\( {}</style>
+ <style>:nth-last-of-type\( {}</style>
+ <style>:lang\( {}</style>
+ <style>:not\( {}</style>
+ <style>:cue\( {}</style>
+ <style>:-webkit-distributed\( {}</style>
+ <style>:part\( {}</style>
+ <style>:host\( {}</style>
+</head>
+<body>
+ <p id="log"></p>
+ <script>
+ var sheets = document.styleSheets;
+
+ test(function(){
+ assert_equals(sheets.length, 11, "StyleSheets.length");
+ }, "All stylesheets present")
+
+ for (var i=0; i<sheets.length; i++) {
+ test(function(){
+ assert_equals(sheets[i].cssRules.length, 0, "cssRules.length");
+ }, "Drop \"" + sheets[i].ownerNode.firstChild.data + "\"");
+ }
+ </script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698