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

Unified Diff: LayoutTests/fast/css/content-language-dynamically-changed.html

Issue 973623002: Fix serialization of content property to always quote (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add another method Created 5 years, 10 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/content-language-dynamically-changed.html
diff --git a/LayoutTests/fast/css/content-language-dynamically-changed.html b/LayoutTests/fast/css/content-language-dynamically-changed.html
index 2841a6b348624ff06a1045d484e7f1900a6672ff..acd5f617054db340b164506fba1badfa6003b3bf 100644
--- a/LayoutTests/fast/css/content-language-dynamically-changed.html
+++ b/LayoutTests/fast/css/content-language-dynamically-changed.html
@@ -23,21 +23,21 @@ function languageOfNode(id) {
var element = document.getElementById(id);
return window.getComputedStyle(element).webkitLocale;
}
-shouldBeEqualToString("languageOfNode('x')", "zh");
-shouldBeEqualToString("languageOfNode('y')", "ar");
+shouldBeEqualToString("languageOfNode('x')", "'zh'");
+shouldBeEqualToString("languageOfNode('y')", "'ar'");
var meta = document.getElementById("target");
meta.content = "ja";
-shouldBeEqualToString("languageOfNode('x')", "zh");
-shouldBeEqualToString("languageOfNode('y')", "ar");
+shouldBeEqualToString("languageOfNode('x')", "'zh'");
+shouldBeEqualToString("languageOfNode('y')", "'ar'");
meta.httpEquiv = "foobar";
-shouldBeEqualToString("languageOfNode('x')", "zh");
-shouldBeEqualToString("languageOfNode('y')", "ar");
+shouldBeEqualToString("languageOfNode('x')", "'zh'");
+shouldBeEqualToString("languageOfNode('y')", "'ar'");
meta.httpEquiv = "content-language";
-shouldBeEqualToString("languageOfNode('x')", "zh");
-shouldBeEqualToString("languageOfNode('y')", "ar");
+shouldBeEqualToString("languageOfNode('x')", "'zh'");
+shouldBeEqualToString("languageOfNode('y')", "'ar'");
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698