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

Unified Diff: LayoutTests/fast/events/focus-change-crash.html

Issue 2881019: Merge 60984 - 2010-06-10 Tony Chang <tony@chromium.org>... (Closed) Base URL: svn://chrome-svn/chrome/branches/WebKit/375/
Patch Set: Created 10 years, 5 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
« no previous file with comments | « no previous file | LayoutTests/fast/events/focus-change-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/events/focus-change-crash.html
===================================================================
--- LayoutTests/fast/events/focus-change-crash.html (revision 0)
+++ LayoutTests/fast/events/focus-change-crash.html (revision 52676)
@@ -0,0 +1,27 @@
+<div>Type something into the first input and press tab. The browser should not crash.</div>
+<div id="parent">
+<input id="a" />
+<input id="b" />
+</div>
+<div id="results"></div>
+<script>
+document.getElementById("a").addEventListener("change", function(e) {
+ var parent = document.getElementById("parent");
+ parent.innerHTML = "<input id='c' />";
+ document.getElementById("c").select();
+}, false);
+
+function runTest()
+{
+ document.getElementById("a").focus();
+ if (!window.layoutTestController)
+ return;
+ layoutTestController.dumpAsText();
+ eventSender.keyDown("x")
+ eventSender.keyDown("\t");
+ document.getElementById("results").innerText = "PASSED";
+}
+
+runTest();
+
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/events/focus-change-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698