Chromium Code Reviews| 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> |