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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/onsearch-enter.html

Issue 1537313002: Fix a crash by search event handler for <input type=search incremental>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2564
Patch Set: Created 4 years, 12 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/search/search-change-type-onsearch.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 function test() 4 function test()
5 { 5 {
6 var sf = document.getElementById('sf'); 6 var sf = document.getElementById('sf');
7 sf.focus(); 7 sf.focus();
8 if (window.testRunner) { 8 if (window.testRunner) {
9 testRunner.dumpAsText(); 9 testRunner.dumpAsText();
10 testRunner.waitUntilDone();
10 eventSender.keyDown("\r", []); 11 eventSender.keyDown("\r", []);
11 } 12 }
12 } 13 }
13 function log(msg) 14 function log(msg)
14 { 15 {
15 var res = document.getElementById('res'); 16 var res = document.getElementById('res');
16 res.innerHTML = res.innerHTML + msg + "<br>"; 17 res.innerHTML = res.innerHTML + msg + "<br>";
17 } 18 }
18 </script> 19 </script>
19 </head> 20 </head>
20 <body onload="test()"> 21 <body onload="test()">
21 This tests that onSearch fires correctly.<br> 22 This tests that onSearch fires correctly.<br>
22 <input type="search" id="sf" onSearch="log('Test Passed');"></input> 23 <input type="search" id="sf" onSearch="log('Test Passed'); testRunner.no tifyDone();"></input>
23 <div id="res"></div> 24 <div id="res"></div>
24 </body> 25 </body>
25 </html> 26 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/search/search-change-type-onsearch.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698