OLD | NEW |
(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> |
OLD | NEW |