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

Unified Diff: third_party/WebKit/LayoutTests/cssom/serialize-namespaced-type-selectors.html

Issue 2645563002: Serialize type and attribute selectors as identifiers (Closed)
Patch Set: weird -> escaped; add "serialize character as code point" test Created 3 years, 11 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: third_party/WebKit/LayoutTests/cssom/serialize-namespaced-type-selectors.html
diff --git a/third_party/WebKit/LayoutTests/cssom/serialize-namespaced-type-selectors.html b/third_party/WebKit/LayoutTests/cssom/serialize-namespaced-type-selectors.html
index 84e828285bf60f7e878ef128d4ee363c1941444a..eb509d657f1c1bb1c560a5002caf838227b9c775 100644
--- a/third_party/WebKit/LayoutTests/cssom/serialize-namespaced-type-selectors.html
+++ b/third_party/WebKit/LayoutTests/cssom/serialize-namespaced-type-selectors.html
@@ -6,6 +6,7 @@
<script>
var ns_rule = "@namespace ns url(ns);";
var default_ns_rules = "@namespace url(default_ns); @namespace nsdefault url(default_ns);" + ns_rule;
+ var escaped_ns_rule = "@namespace ns\\:odd url(ns);";
function assert_selector_serializes_to(source, expected_result) {
var style_element = document.getElementById("teststyles");
@@ -89,4 +90,10 @@
test(function() {
assert_selector_serializes_to(default_ns_rules + "nsdefault|*.c", ".c");
}, "Universal selector with namespace equal to default namespace followed by class");
+ test(function() {
+ assert_selector_serializes_to(escaped_ns_rule + "ns\\:odd|e", "ns\\:odd|e");
+ }, "Type selector with namespace with escaped character");
+ test(function() {
+ assert_selector_serializes_to(escaped_ns_rule + "ns\\:odd|odd\\:e", "ns\\:odd|odd\\:e");
+ }, "Type selector with escaped character and namespace with escaped character");
</script>

Powered by Google App Engine
This is Rietveld 408576698