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

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: Update test further since our tests are different from webkits 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..cd25218293fb1e08a373a7a812359943668daed1
--- /dev/null
+++ b/LayoutTests/fast/dom/Window/window-property-invalid-characters-ignored.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../../resources/js-test.js"></script>
+<script>
+jsTestIsAsync = true;
+
+if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.setCanOpenWindows();
+}
+
+description("Tests that invalid characters are ignored after a window property value.");
+
+var w = window.open("resources/window-property-invalid-characters-ignored.html", "blank", "width=123\u0130,height=123\u0130");
cbiesinger 2014/06/12 23:49:39 This test doesn't test what the code is changing,
+
+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