Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!doctype html> | |
|
Yuta Kitamura
2014/08/13 03:02:40
super-nit/optional: it is recommended to spell DOC
kangil_
2014/08/13 04:49:28
Done.
| |
| 2 <script src="../../../resources/js-test.js"></script> | |
| 3 <div id="container"> | |
| 4 <p>This test verifies if Range.deleteContents can handle doctype.</p> | |
|
Yuta Kitamura
2014/08/13 03:02:40
With js-test, the test description should be emitt
kangil_
2014/08/13 04:49:28
Done.
| |
| 5 </div> | |
| 6 <script> | |
| 7 if (window.testRunner) | |
| 8 testRunner.dumpAsText(); | |
|
Yuta Kitamura
2014/08/13 03:02:40
js-test calls dumpAsText() on your behalf, so you
kangil_
2014/08/13 04:49:28
Done.
| |
| 9 | |
| 10 var range = document.createRange(); | |
| 11 range.setStart(document, 0); | |
| 12 range.setEnd(document, 1); | |
| 13 | |
| 14 shouldNotThrow("range.deleteContents()"); | |
| 15 | |
| 16 if (window.testRunner) | |
| 17 document.getElementById('container').outerHTML = ''; | |
|
Yuta Kitamura
2014/08/13 03:02:40
Please don't remove the test description; just lea
kangil_
2014/08/13 04:49:28
Done.
| |
| 18 </script> | |
| OLD | NEW |