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

Side by Side Diff: third_party/WebKit/LayoutTests/plugins/focus-change-1-no-change.html

Issue 2797943002: Set plugin focus via element dispatch (Closed)
Patch Set: Set plugin focus after dispatching DOM events and making sure focus has not changed. Created 3 years, 8 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/plugins/focus-change-1-no-change-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 <script src="../resources/js-test.js"></script>
2 <p>Test no change of focus inside plugin onfocus and onblur events</p>
3 <input id="input1" type="text" onfocus="i1Focus()" onblur="i1Blur()"></input>
4 <input id="input2" type="text" onfocus="i2Focus()" onblur="i2Blur()"></input>
5 <embed id="plugin" type="application/x-blink-test-plugin" onfocus="pFocus()" onb lur="pBlur()"></embed>
6 <script>
7 function i1Focus() { debug('i1focus'); }
8 function i1Blur() { debug('i1blur'); }
9 function i2Focus() { debug('i2focus'); }
10 function i2Blur() { debug('i2blur'); }
11 function pFocus() { debug('pfocus'); }
12 function pBlur() { debug('pblur'); }
13
14 if (testRunner)
15 testRunner.waitUntilDone();
16
17 document.getElementById('input1').focus();
18 document.getElementById('plugin').focus();
19 document.getElementById('input2').focus();
20
21 setTimeout(
22 function() {
23 if (testRunner)
24 testRunner.notifyDone();
25 },
26 0);
27 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/plugins/focus-change-1-no-change-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698