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

Side by Side Diff: LayoutTests/fast/forms/select-popup-close-no-crash.html

Issue 920433002: Gracefully handle a disconnected popup menu client on disposing open popup. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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 | LayoutTests/fast/forms/select-popup-close-no-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 <!DOCTYPE html>
2 <html>
3 <body>
4 <select id="menu">
5 <option>foo</option>
6 <option>bar</option>
7 </select>
8 <form action="data:text/html,&lt;script&gt;console.log('Check that first disconn ecting then closing a page popup does not crash.'); console.log('PASS: no crash' );testRunner.notifyDone();&lt;/script&gt;" id="form1">
9 </form>
10 <script>
11 if (window.testRunner) {
12 testRunner.waitUntilDone();
13 testRunner.dumpAsText();
14 }
15 function sendKey(input, keyName, ctrlKey, altKey) {
16 var event = document.createEvent('KeyboardEvent');
17 event.initKeyboardEvent('keydown', true, true, document.defaultView, keyName , 0, ctrlKey, altKey);
18 input.dispatchEvent(event);
19 }
20 function openPicker(menu) {
keishi 2015/02/11 11:44:08 We have this function in fast/forms/resources/pick
21 window.moveTo();
22 menu.offsetTop;
23 sendKey(menu, "Down", false, true);
24 }
25
26 function runTest() {
27 openPicker(document.getElementById('menu'));
28 setTimeout(function() {document.getElementById('form1').submit();}, 0);
29 }
30 window.onload = runTest;
31 </script>
32 </body>
33 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/select-popup-close-no-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698