OLD | NEW |
1 <div id="container"> | 1 <div id="container"> |
2 <p id="description"></p> | 2 <p id="description"></p> |
3 <div id="sample"></div> | 3 <div id="sample"></div> |
4 </div> | 4 </div> |
5 <script src="../../fast/js/resources/js-test-pre.js"></script> | 5 <script src="../../resources/js-test.js"></script> |
6 <script> | 6 <script> |
7 description('Check selection updated after normalize.'); | 7 description('Check selection updated after normalize.'); |
8 function $(id) { return document.getElementById(id); } | 8 function $(id) { return document.getElementById(id); } |
9 | 9 |
10 var selection = window.getSelection(); | 10 var selection = window.getSelection(); |
11 var newText; | 11 var newText; |
12 function testIt(source, expectedText) | 12 function testIt(source, expectedText) |
13 { | 13 { |
14 var sample = $('sample'); | 14 var sample = $('sample'); |
15 sample.innerHTML = ''; | 15 sample.innerHTML = ''; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 testIt('foo b[ar ba]z'); | 74 testIt('foo b[ar ba]z'); |
75 testIt('f[oo ba]z'); | 75 testIt('f[oo ba]z'); |
76 testIt('[foo ] baz'); | 76 testIt('[foo ] baz'); |
77 testIt('[foo baz]'); | 77 testIt('[foo baz]'); |
78 testIt('foo [ baz]'); | 78 testIt('foo [ baz]'); |
79 testIt('foo [bar ]'); | 79 testIt('foo [bar ]'); |
80 | 80 |
81 if (window.testRunner) | 81 if (window.testRunner) |
82 $('container').outerHTML = ''; | 82 $('container').outerHTML = ''; |
83 </script> | 83 </script> |
OLD | NEW |