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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLAnchorElement/remove-href-from-focused-anchor.html

Issue 2586143004: Blur immediately if an attribute change made an element unfocasable. (Closed)
Patch Set: Update comments and a function name Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/HTMLAnchorElement/remove-href-from-focused-anchor-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/HTMLAnchorElement/remove-href-from-focused-anchor-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698