OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <body> | |
4 <p>This test checks to make sure that deleteData does not overflow with a large 'count' parameter</p> | |
5 <div id="result1">FAIL</div> | |
6 <div id="result2">FAIL</div> | |
7 <script type="text/javascript"> | |
8 var a = new Text("aaaaaaaaaa"); | |
9 document.body.appendChild(a); | |
10 | |
11 document.getSelection().extend(a, 10); | |
12 range = document.getSelection().getRangeAt(0); | |
13 | |
14 try { | |
15 a.deleteData(9, 0xfffffff7); | |
16 } catch(ex) { | |
17 document.getElementById("result1").innerText = "deleteData - PASS"; | |
18 } | |
19 | |
20 window.getSelection().removeAllRanges(); | |
21 | |
22 var b = new Text("bbbbbbbbbb"); | |
23 document.body.appendChild(b); | |
24 | |
25 document.getSelection().extend(b, 10); | |
26 range = document.getSelection().getRangeAt(0); | |
27 | |
28 try { | |
Inactive
2014/03/17 00:04:33
It would also be nice if this test used js-test.js
| |
29 b.replaceData(9, 0xfffffff7); | |
30 } catch(ex) { | |
31 document.getElementById("result2").innerText = "replaceData - PASS"; | |
32 } | |
33 | |
34 if (window.testRunner) { | |
35 window.testRunner.dumpAsText(); | |
36 } | |
37 </script> | |
38 </body> | |
39 </html> | |
OLD | NEW |