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

Unified Diff: LayoutTests/fast/dom/Window/window-property-invalid-characters-ignored.html

Issue 333643008: WindowFeatures arguments shoud ignore invalid characters in values (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Maybe update the expected.txt next time Created 6 years, 6 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/dom/Window/window-property-invalid-characters-ignored.html
diff --git a/LayoutTests/fast/dom/Window/window-property-invalid-characters-ignored.html b/LayoutTests/fast/dom/Window/window-property-invalid-characters-ignored.html
new file mode 100644
index 0000000000000000000000000000000000000000..9fdd32c62122ae2f5f9f7d35bc59bb2eb3bb49a9
--- /dev/null
+++ b/LayoutTests/fast/dom/Window/window-property-invalid-characters-ignored.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../../resources/js-test.js"></script>
+<script>
+jsTestIsAsync = true;
+
+if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.setCanOpenWindows();
+}
+
+description("Tests that Unicode characters that changes the string length when lower cased still works.");
+
+// U+0130 = LATIN CAPITAL LETTER I WITH DOT ABOVE
+// U+0069 LATIN SMALL LETTER I
+// U+0307 COMBINING DOT ABOVE
+// \u0130 gets lowered to \u0069\u0307.
+
+var w = window.open("resources/window-property-invalid-characters-ignored.html", "blank", "\u0130\u0130=\u0130\u0130,width=123,height=123");
+
+function finishTest()
+{
+ shouldBe("w.innerWidth", "123");
+ shouldBe("w.innerHeight", "123");
+ shouldBeTrue("w !== window");
+ w.close();
+
+ finishJSTest();
+}
+
+</script>
+</head>
+<body>
+<pre id="console"></pre>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698