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

Side by Side Diff: LayoutTests/fast/dom/HTMLAnchorElement/remove-href-from-focused-anchor.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <body> 2 <body>
3 <a href="javascript:" id="target">link</a> 3 <a href="javascript:" id="target">link</a>
4 <script src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../js/resources/js-test-pre.js"></script>
5 <script> 5 <script>
6 jsTestIsAsync = true; 6 jsTestIsAsync = true;
7 var target = document.getElementById('target'); 7 var target = document.getElementById('target');
8 target.focus(); 8 target.focus();
9 shouldBe('document.activeElement', 'target'); 9 shouldBe('document.activeElement', 'target');
10 debug('Remove href.'); 10 debug('Remove href.');
11 window.onload = function() { 11 window.onload = function() {
12 target.addEventListener('blur', function() { 12 target.addEventListener('blur', function() {
13 testPassed('blur event was disaptched.'); 13 testPassed('blur event was disaptched.');
14 target.remove(); 14 target.remove();
15 finishJSTest(); 15 finishJSTest();
16 }, false); 16 }, false);
17 // Need to wait until CheckFocusedElementTask is unqueued. 17 // Need to wait until CheckFocusedElementTask is unqueued.
18 setTimeout(function() { 18 setTimeout(function() {
19 target.removeAttribute('href'); 19 target.removeAttribute('href');
20 }, 10); 20 }, 10);
21 setTimeout(function() { 21 setTimeout(function() {
22 testFailed('No blur event'); 22 testFailed('No blur event');
23 finishJSTest(); 23 finishJSTest();
24 }, 2000); 24 }, 2000);
25 }; 25 };
26 </script> 26 </script>
27 <script src="../../js/resources/js-test-post.js"></script>
28 </body> 27 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698