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

Side by Side Diff: LayoutTests/fast/forms/number/number-blur-twice.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 </head> 5 </head>
6 <body> 6 <body>
7 <p id="description">There was a bug that moving focus with TAB from a number inp ut with an invalid string dispatched an extra focus event and an extra blur even t.</p> 7 <p id="description">There was a bug that moving focus with TAB from a number inp ut with an invalid string dispatched an extra focus event and an extra blur even t.</p>
8 <div id="console"></div> 8 <div id="console"></div>
9 9
10 <input type=number id=number> 10 <input type=number id=number>
11 <input type=text> 11 <input type=text>
12 12
13 <script> 13 <script>
14 function handleFocus() { 14 function handleFocus() {
(...skipping 14 matching lines...) Expand all
29 document.execCommand('InsertText', false, 'a'); 29 document.execCommand('InsertText', false, 'a');
30 var tabEvent = document.createEvent('KeyboardEvent'); 30 var tabEvent = document.createEvent('KeyboardEvent');
31 tabEvent.initKeyboardEvent('keydown', true, true, document.defaultView, 'U+0009' ); 31 tabEvent.initKeyboardEvent('keydown', true, true, document.defaultView, 'U+0009' );
32 num.dispatchEvent(tabEvent); 32 num.dispatchEvent(tabEvent);
33 33
34 shouldBe('numOfFocus', '1'); 34 shouldBe('numOfFocus', '1');
35 shouldBe('numOfBlur', '1'); 35 shouldBe('numOfBlur', '1');
36 </script> 36 </script>
37 </body> 37 </body>
38 </html> 38 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/novalidate-attribute.html ('k') | LayoutTests/fast/forms/number/number-input-changeevent.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698