| OLD | NEW |
| 1 <head> | 1 <head> |
| 2 <script> | 2 <script> |
| 3 function test() | 3 function test() |
| 4 { | 4 { |
| 5 if (window.testRunner) | 5 if (window.testRunner) |
| 6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
| 7 var testString = ""; | 7 var testString = ""; |
| 8 for (var i = 0; i < 32; ++i) // > | |
| 9 if (i != 9 && i != 10 && i != 13) // ; | |
| 10 testString += String.fromCharCode(i); | |
| 11 testString += String.fromCharCode(0x200B); | 8 testString += String.fromCharCode(0x200B); |
| 12 testString += String.fromCharCode(0x200C); | 9 testString += String.fromCharCode(0x200C); |
| 13 testString += String.fromCharCode(0x200D); | 10 testString += String.fromCharCode(0x200D); |
| 14 testString += String.fromCharCode(0x200E); | 11 testString += String.fromCharCode(0x200E); |
| 15 testString += String.fromCharCode(0x200F); | 12 testString += String.fromCharCode(0x200F); |
| 16 testString += String.fromCharCode(0xFEFF); | 13 testString += String.fromCharCode(0xFEFF); |
| 17 testString += String.fromCharCode(0xFFFC); | 14 testString += String.fromCharCode(0xFFFC); |
| 18 var span = document.getElementById("characters"); | 15 var span = document.getElementById("characters"); |
| 19 var abWidth = span.offsetWidth; | 16 var abWidth = span.offsetWidth; |
| 20 span.firstChild.data = "a"; | 17 span.firstChild.data = "a"; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 35 document.getElementById("result").firstChild.data = result; | 32 document.getElementById("result").firstChild.data = result; |
| 36 } | 33 } |
| 37 </script> | 34 </script> |
| 38 </head> | 35 </head> |
| 39 <body onload="test()"> | 36 <body onload="test()"> |
| 40 <p>This test checks various characters that should always be zero width to ensur
e that they are. | 37 <p>This test checks various characters that should always be zero width to ensur
e that they are. |
| 41 The WebKit text system ensures this in a way that's independent of the fonts ins
talled on the system.</p> | 38 The WebKit text system ensures this in a way that's independent of the fonts ins
talled on the system.</p> |
| 42 <p id="result">FAIL: Script did not run to completion.</p> | 39 <p id="result">FAIL: Script did not run to completion.</p> |
| 43 <p id="testArea"><span id="characters">ab</span></p> | 40 <p id="testArea"><span id="characters">ab</span></p> |
| 44 </body> | 41 </body> |
| OLD | NEW |