| Index: third_party/WebKit/LayoutTests/plugins/focus-change-4-change-focus-and-blur.html
|
| diff --git a/third_party/WebKit/LayoutTests/plugins/focus-change-4-change-focus-and-blur.html b/third_party/WebKit/LayoutTests/plugins/focus-change-4-change-focus-and-blur.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bb41ab98e6aee151b3d638c5aecd85e19115fd47
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/plugins/focus-change-4-change-focus-and-blur.html
|
| @@ -0,0 +1,39 @@
|
| +<script src="../resources/js-test.js"></script>
|
| +<p>Test changing focus inside plugin onfocus and onblur events</p>
|
| +<input id="input1" type="text" onfocus="i1Focus()" onblur="i1Blur()"></input>
|
| +<input id="input2" type="text" onfocus="i2Focus()" onblur="i2Blur()"></input>
|
| +<input id="input3" type="text" onfocus="i3Focus()" onblur="i3Blur()"></input>
|
| +<input id="input4" type="text" onfocus="i4Focus()" onblur="i4Blur()"></input>
|
| +<embed id="plugin" type="application/x-blink-test-plugin" onfocus="pFocus()" onblur="pBlur()"></embed>
|
| +<script>
|
| +function i1Focus() { debug('i1focus'); }
|
| +function i1Blur() { debug('i1blur'); }
|
| +function i2Focus() { debug('i2focus'); }
|
| +function i2Blur() { debug('i2blur'); }
|
| +function i3Focus() { debug('i3focus'); }
|
| +function i3Blur() { debug('i3blur'); }
|
| +function i4Focus() { debug('i4focus'); }
|
| +function i4Blur() { debug('i4blur'); }
|
| +function pFocus() {
|
| + debug('pfocus-change-2');
|
| + document.getElementById('input2').focus();
|
| +}
|
| +function pBlur() {
|
| + debug('pblur-change-4');
|
| + document.getElementById('input4').focus();
|
| +}
|
| +
|
| +if (testRunner)
|
| + testRunner.waitUntilDone();
|
| +
|
| +document.getElementById('input1').focus();
|
| +document.getElementById('plugin').focus();
|
| +document.getElementById('input3').focus();
|
| +
|
| +setTimeout(
|
| + function() {
|
| + if (testRunner)
|
| + testRunner.notifyDone();
|
| + },
|
| + 0);
|
| +</script>
|
|
|