OLD | NEW |
---|---|
(Empty) | |
1 <html> | |
yosin_UTC9
2014/08/12 01:00:43
For this test, we should have <!DOCTYPE html>.
I t
yosin_UTC9
2014/08/12 01:00:44
nit: We don't need to have html, head, and body ma
kangil_
2014/08/12 01:08:28
I will check and get back to you with result.
kangil_
2014/08/12 02:41:34
Done.
kangil_
2014/08/12 02:41:34
Done.
| |
2 <head> | |
3 </head> | |
4 <body> | |
5 <div id='test'> | |
yosin_UTC9
2014/08/12 01:00:43
This test doesn't use these id's and this test doe
kangil_
2014/08/12 02:41:34
Done.
| |
6 <p id='start'>start</p> | |
7 <p id='end'>end</p> | |
8 </div> | |
9 <script> | |
10 if (window.testRunner) | |
11 testRunner.dumpAsText(); | |
12 | |
13 function generatePassMessage() { | |
14 var html = document.createElement('html'); | |
yosin_UTC9
2014/08/12 01:00:43
document.write('PASS') is shortest.
kangil_
2014/08/12 02:41:34
Done.
| |
15 var body = document.createElement('body'); | |
16 body.innerHTML = '<p>PASS</p>'; | |
17 html.appendChild(body); | |
18 document.appendChild(html); | |
19 } | |
20 | |
21 var range = document.createRange(); | |
22 range.setStart(document, 0); | |
23 range.setEnd(document, 1); | |
24 | |
25 try { | |
yosin_UTC9
2014/08/12 01:00:43
We don't need to have try block. Since, range.dele
kangil_
2014/08/12 02:41:34
Done.
| |
26 range.deleteContents(); | |
27 generatePassMessage(); | |
28 } catch (e) { | |
29 } | |
30 </script> | |
31 </body> | |
32 </html> | |
OLD | NEW |