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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 <script>
6 jsTestIsAsync = true;
7
8 if (window.testRunner) {
9 testRunner.waitUntilDone();
10 testRunner.setCanOpenWindows();
11 }
12
13 description("Tests that invalid characters are ignored after a window property v alue.");
14
15 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,
16
17 function finishTest()
18 {
19 shouldBe("w.innerWidth", "123");
20 shouldBe("w.innerHeight", "123");
21 shouldBeTrue("w !== window");
22 w.close();
23
24 finishJSTest();
25 }
26
27 </script>
28 </head>
29 <body>
30 <pre id="console"></pre>
31 </body>
32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698