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

Side by Side Diff: LayoutTests/fast/forms/label/contenteditable-label-focus.html

Issue 58533003: Move fast/js/resources files to resources. (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 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../fast/js/resources/js-test-pre.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <script> 5 <script>
6 function runTest() { 6 function runTest() {
7 var target = document.getElementById('target'); 7 var target = document.getElementById('target');
8 debug('Calling target.focus()'); 8 debug('Calling target.focus()');
9 target.addEventListener('focus', function(e) { 9 target.addEventListener('focus', function(e) {
10 debug('focus received by ' + target); 10 debug('focus received by ' + target);
11 }); 11 });
12 target.focus(); 12 target.focus();
13 shouldBe('document.activeElement', 'target'); 13 shouldBe('document.activeElement', 'target');
14 } 14 }
15 </script> 15 </script>
16 </head> 16 </head>
17 <body onload="runTest()"> 17 <body onload="runTest()">
18 <label id="target" contenteditable>I'm editable.</label> 18 <label id="target" contenteditable>I'm editable.</label>
19 <button id="button">Just a button</button> 19 <button id="button">Just a button</button>
20 </body> 20 </body>
21 </html> 21 </html>
22 22
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/isindex-name.html ('k') | LayoutTests/fast/forms/label/contenteditable-label-focus-tab.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698