Title: [98744] trunk/LayoutTests
- Revision
- 98744
- Author
- [email protected]
- Date
- 2011-10-28 11:40:14 -0700 (Fri, 28 Oct 2011)
Log Message
Testing allowed identifier chars which are greater than 126
https://bugs.webkit.org/show_bug.cgi?id=71097
Reviewed by Darin Adler.
* fast/css/parsing-css-nonascii-expected.txt: Added.
* fast/css/parsing-css-nonascii.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (98743 => 98744)
--- trunk/LayoutTests/ChangeLog 2011-10-28 18:29:35 UTC (rev 98743)
+++ trunk/LayoutTests/ChangeLog 2011-10-28 18:40:14 UTC (rev 98744)
@@ -1,3 +1,13 @@
+2011-10-28 Zoltan Herczeg <[email protected]>
+
+ Testing allowed identifier chars which are greater than 126
+ https://bugs.webkit.org/show_bug.cgi?id=71097
+
+ Reviewed by Darin Adler.
+
+ * fast/css/parsing-css-nonascii-expected.txt: Added.
+ * fast/css/parsing-css-nonascii.html: Added.
+
2011-10-28 Ryosuke Niwa <[email protected]>
Unskip tables/mozilla_expected_failures/bugs/bug14007-2.html
Added: trunk/LayoutTests/fast/css/parsing-css-nonascii-expected.txt (0 => 98744)
--- trunk/LayoutTests/fast/css/parsing-css-nonascii-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/css/parsing-css-nonascii-expected.txt 2011-10-28 18:40:14 UTC (rev 98744)
@@ -0,0 +1,27 @@
+Test parsing of CSS escapes.
+
+SUCCESS
+
+Rules from the stylesheet:
+
+#a127_\ { color: red; }
+#a128_ { color: red; }
+#b128_ { color: green; }
+#a159_ { color: red; }
+#b159_ { color: green; }
+#a160_ { color: red; }
+#b160_ { color: green; }
+#a384_ƀ { color: red; }
+#b384_ƀ { color: green; }
+Expected result:
+
+#a127_\ { color: red; }
+#a128_ { color: red; }
+#b128_ { color: green; }
+#a159_ { color: red; }
+#b159_ { color: green; }
+#a160_ { color: red; }
+#b160_ { color: green; }
+#a384_ƀ { color: red; }
+#b384_ƀ { color: green; }
+
Added: trunk/LayoutTests/fast/css/parsing-css-nonascii.html (0 => 98744)
--- trunk/LayoutTests/fast/css/parsing-css-nonascii.html (rev 0)
+++ trunk/LayoutTests/fast/css/parsing-css-nonascii.html 2011-10-28 18:40:14 UTC (rev 98744)
@@ -0,0 +1,81 @@
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+<style>
+/*
+ === Warning ===
+
+ This file intentionally contains scpecial characters which
+ cannot be displayed by some text editors. Please
+ carefully edit the file.
+*/
+
+#a127_\7F { color:red; }
+#b127_ { color:green; }
+
+#a128_\80 { color:red; }
+#b128_ { color:green; }
+
+#a159_\9F { color:red; }
+#b159_ { color:green; }
+
+#a160_\A0 { color:red; }
+#b160_ { color:green; }
+
+#a384_\180 { color:red; }
+#b384_ƀ { color:green; }
+</style>
+
+<script>
+
+function runTest()
+{
+ if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+
+ var rules = document.styleSheets[0].cssRules;
+ var text = "";
+ for (var i = 0; i < rules.length; i++) {
+ text += rules.item(i).cssText;
+ text += "\n";
+ }
+
+ document.getElementById("result").appendChild(document.createTextNode(text));
+
+ if (document.getElementById("result").firstChild.data ="" document.getElementById("expected").firstChild.data)
+ document.getElementById("message").firstChild.data = ""
+ else
+ document.getElementById("message").firstChild.data = ""
+}
+
+</script>
+
+</head>
+
+<body _onload_="runTest()">
+
+<p>Test parsing of CSS escapes.</p>
+
+<p id="message">TEST DID NOT COMPLETE</p>
+
+<p>Rules from the stylesheet:</p>
+
+<pre id="result"></pre>
+
+<p>Expected result:</p>
+
+<pre id="expected">#a127_\ { color: red; }
+#a128_ { color: red; }
+#b128_ { color: green; }
+#a159_ { color: red; }
+#b159_ { color: green; }
+#a160_ { color: red; }
+#b160_ { color: green; }
+#a384_ƀ { color: red; }
+#b384_ƀ { color: green; }
+</pre>
+
+<script>
+
+</script>
+</body>
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes