Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: LayoutTests/fast/frames/detach-frame-during-focus.html

Issue 196523007: Revert of id of iframe incorrectly sets window name (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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="&lt;i nput id='innerInput'>"></iframe> 26 <iframe onload="startTest()" id="frame1" height="100" width="540" srcdoc="&lt;i nput id='innerInput'>"></iframe>
28 </div> 27 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698