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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/events/focus-change-crash-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <div>Type something into the first input and press tab. The browser should not crash.</div>
2 <div id="parent">
3 <input id="a" />
4 <input id="b" />
5 </div>
6 <div id="results"></div>
7 <script>
8 document.getElementById("a").addEventListener("change", function(e) {
9 var parent = document.getElementById("parent");
10 parent.innerHTML = "<input id='c' />";
11 document.getElementById("c").select();
12 }, false);
13
14 function runTest()
15 {
16 document.getElementById("a").focus();
17 if (!window.layoutTestController)
18 return;
19 layoutTestController.dumpAsText();
20 eventSender.keyDown("x")
21 eventSender.keyDown("\t");
22 document.getElementById("results").innerText = "PASSED";
23 }
24
25 runTest();
26
27 </script>
OLDNEW
« 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