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

Side by Side Diff: LayoutTests/fast/forms/number/number-blur-twice.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 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../fast/js/resources/js-test-pre.js"></script> 4 <script src="../../../fast/js/resources/js-test-pre.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>
(...skipping 16 matching lines...) Expand all
27 num.focus(); 27 num.focus();
28 document.execCommand('InsertText', false, '123'); 28 document.execCommand('InsertText', false, '123');
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 <script src="../../../fast/js/resources/js-test-post.js"></script>
38 </body> 37 </body>
39 </html> 38 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/novalidate-attribute.html ('k') | LayoutTests/fast/forms/number/number-change-type-on-focus.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698