OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script> |
| 5 if (window.testRunner) |
| 6 testRunner.dumpAsText(); |
| 7 |
| 8 var inSurroundContents = false; |
| 9 document.addEventListener('load', function() { |
| 10 var iframe = document.querySelector('iframe'); |
| 11 if (inSurroundContents) { |
| 12 var newText = iframe.nextSibling; |
| 13 newText.parentNode.removeChild(newText); |
| 14 return; |
| 15 } |
| 16 var range = document.createRange(); |
| 17 range.setStart(document.body.firstChild, 2); |
| 18 inSurroundContents = true; |
| 19 range.surroundContents(iframe); |
| 20 inSurroundContents = false; |
| 21 document.body.textContent = 'PASS if Blink doesn\'t crash.'; |
| 22 }, true); |
| 23 </script> |
| 24 </head> |
| 25 <body>abcde<iframe></iframe></body> |
| 26 </html> |
OLD | NEW |