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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/frames/take-focus-from-iframe.html
===================================================================
--- LayoutTests/fast/frames/take-focus-from-iframe.html (revision 0)
+++ LayoutTests/fast/frames/take-focus-from-iframe.html (revision 48064)
@@ -0,0 +1,33 @@
+<body onload="test()">
+<iframe src="data:text/html,<body><input><script>document.getElementsByTagName('input')[0].focus()</script></body>" height=40 width=200></iframe>
+<p>This field should look and act focused. Try to type into it: <input></p>
+<script>
+if (window.layoutTestController)
+ layoutTestController.waitUntilDone();
+
+function test()
+{
+ document.getElementsByTagName("iframe")[0].focus();
+ frames[0].focus();
+ setTimeout('test2()', 10);
+}
+
+function test2()
+{
+ focus();
+ document.getElementsByTagName("input")[0].focus()
+
+ if (window.eventSender) {
+ eventSender.keyDown('A');
+
+ var input = document.getElementsByTagName("input")[0];
+ if (input.value == "A")
+ input.value = "PASS";
+ }
+
+ if (window.layoutTestController)
+ layoutTestController.notifyDone();
+
+}
+</script>
+</body>
« 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