| Index: third_party/WebKit/LayoutTests/fast/dom/HTMLAnchorElement/remove-href-from-focused-anchor.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLAnchorElement/remove-href-from-focused-anchor.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLAnchorElement/remove-href-from-focused-anchor.html
|
| index d39e652ea1cc1e400d6edd8301d4c6a74bc3bf9f..c2b2c9892beae1166a546f4a3b32119b1dbd5bca 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/dom/HTMLAnchorElement/remove-href-from-focused-anchor.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/dom/HTMLAnchorElement/remove-href-from-focused-anchor.html
|
| @@ -9,19 +9,10 @@ target.focus();
|
| shouldBe('document.activeElement', 'target');
|
| debug('Remove href.');
|
| window.onload = function() {
|
| - target.addEventListener('blur', function() {
|
| - testPassed('blur event was disaptched.');
|
| - target.remove();
|
| - finishJSTest();
|
| - }, false);
|
| - // Need to wait until CheckFocusedElementTask is unqueued.
|
| - setTimeout(function() {
|
| - target.removeAttribute('href');
|
| - }, 10);
|
| - setTimeout(function() {
|
| - testFailed('No blur event');
|
| - finishJSTest();
|
| - }, 2000);
|
| + target.removeAttribute('href');
|
| + shouldBe('document.activeElement', 'document.body');
|
| + target.remove();
|
| + finishJSTest();
|
| };
|
| </script>
|
| </body>
|
|
|