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

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: 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 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 Unicode characters that changes the string length when l ower cased still works.");
14
15 // U+0130 = LATIN CAPITAL LETTER I WITH DOT ABOVE
16 // U+0069 LATIN SMALL LETTER I
17 // U+0307 COMBINING DOT ABOVE
18 // \u0130 gets lowered to \u0069\u0307.
19
20 var w = window.open("resources/window-property-invalid-characters-ignored.html", "blank", "\u0130\u0130=\u0130\u0130,width=123,height=123");
21
22 function finishTest()
23 {
24 shouldBe("w.innerWidth", "123");
25 shouldBe("w.innerHeight", "123");
26 shouldBeTrue("w !== window");
27 w.close();
28
29 finishJSTest();
30 }
31
32 </script>
33 </head>
34 <body>
35 <pre id="console"></pre>
36 </body>
37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698