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

Side by Side Diff: LayoutTests/fast/frames/take-focus-from-iframe.html

Issue 2177001: Merge 58961 - Reviewed by Adele Peterson.... (Closed) Base URL: svn://chrome-svn/chrome/branches/WebKit/375/
Patch Set: Created 10 years, 7 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
(Empty)
1 <body onload="test()">
2 <iframe src="data:text/html,<body><input><script>document.getElementsByTagName(' input')[0].focus()</script></body>" height=40 width=200></iframe>
3 <p>This field should look and act focused. Try to type into it: <input></p>
4 <script>
5 if (window.layoutTestController)
6 layoutTestController.waitUntilDone();
7
8 function test()
9 {
10 document.getElementsByTagName("iframe")[0].focus();
11 frames[0].focus();
12 setTimeout('test2()', 10);
13 }
14
15 function test2()
16 {
17 focus();
18 document.getElementsByTagName("input")[0].focus()
19
20 if (window.eventSender) {
21 eventSender.keyDown('A');
22
23 var input = document.getElementsByTagName("input")[0];
24 if (input.value == "A")
25 input.value = "PASS";
26 }
27
28 if (window.layoutTestController)
29 layoutTestController.notifyDone();
30
31 }
32 </script>
33 </body>
OLDNEW
« no previous file with comments | « LayoutTests/ChangeLog ('k') | LayoutTests/platform/mac/fast/frames/take-focus-from-iframe-expected.checksum » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698