| OLD | NEW |
| 1 <script> | 1 <script> |
| 2 if (window.testRunner) { | 2 if (window.testRunner) { |
| 3 testRunner.waitUntilDone(); | 3 testRunner.waitUntilDone(); |
| 4 testRunner.dumpAsText(); | 4 testRunner.dumpAsText(); |
| 5 } | 5 } |
| 6 | 6 |
| 7 addEventListener('change', function(e) { | 7 addEventListener('change', function(e) { |
| 8 document.body.appendChild(document.getElementById('frame1')); | 8 document.body.appendChild(document.getElementById('frame1')); |
| 9 }, false); | 9 }, false); |
| 10 | 10 |
| 11 var didStartTest = false; | 11 var didStartTest = false; |
| 12 function startTest() { | 12 function startTest() { |
| 13 if (didStartTest) | 13 if (didStartTest) |
| 14 return; | 14 return; |
| 15 didStartTest = true;; | 15 didStartTest = true; |
| 16 frame1.innerInput.focus(); | 16 var frameWindow = document.getElementById('frame1').contentWindow; |
| 17 frameWindow.innerInput.focus(); |
| 17 outerInput.focus(); | 18 outerInput.focus(); |
| 18 document.execCommand('inserttext', false, 'abc'); | 19 document.execCommand('inserttext', false, 'abc'); |
| 19 frame1.innerInput.focus(); | 20 frameWindow.innerInput.focus(); |
| 20 document.body.appendChild(document.createTextNode('PASS')); | 21 document.body.appendChild(document.createTextNode('PASS')); |
| 21 testRunner.notifyDone(); | 22 testRunner.notifyDone(); |
| 22 } | 23 } |
| 23 </script> | 24 </script> |
| 24 <div> | 25 <div> |
| 25 <input value="foo" id="outerInput"> | 26 <input value="foo" id="outerInput"> |
| 26 <iframe onload="startTest()" id="frame1" height="100" width="540" srcdoc="<i
nput id='innerInput'>"></iframe> | 27 <iframe onload="startTest()" id="frame1" height="100" width="540" srcdoc="<i
nput id='innerInput'>"></iframe> |
| 27 </div> | 28 </div> |
| OLD | NEW |