| 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 var frameWindow = document.getElementById('frame1').contentWindow; | 16 frame1.innerInput.focus(); |
| 17 frameWindow.innerInput.focus(); | |
| 18 outerInput.focus(); | 17 outerInput.focus(); |
| 19 document.execCommand('inserttext', false, 'abc'); | 18 document.execCommand('inserttext', false, 'abc'); |
| 20 frameWindow.innerInput.focus(); | 19 frame1.innerInput.focus(); |
| 21 document.body.appendChild(document.createTextNode('PASS')); | 20 document.body.appendChild(document.createTextNode('PASS')); |
| 22 testRunner.notifyDone(); | 21 testRunner.notifyDone(); |
| 23 } | 22 } |
| 24 </script> | 23 </script> |
| 25 <div> | 24 <div> |
| 26 <input value="foo" id="outerInput"> | 25 <input value="foo" id="outerInput"> |
| 27 <iframe onload="startTest()" id="frame1" height="100" width="540" srcdoc="<i
nput id='innerInput'>"></iframe> | 26 <iframe onload="startTest()" id="frame1" height="100" width="540" srcdoc="<i
nput id='innerInput'>"></iframe> |
| 28 </div> | 27 </div> |
| OLD | NEW |