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

Side by Side Diff: LayoutTests/fast/forms/input-type-change-focusout.html

Issue 264973003: Remove layout tests for the legacy x-webkit-speech API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 months 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
« no previous file with comments | « no previous file | LayoutTests/fast/forms/input-type-change-focusout-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 </head> 4 </head>
5 <body> 5 <body>
6 <input id="input" type='date' /> 6 <input id="input" type='date' />
7 <script> 7 <script>
8 description("This tests that changing an input element's type or speech attribut e does not cause focusout event."); 8 description("This tests that changing an input element's type or speech attribut e does not cause focusout event.");
9 9
10 focusoutCalled = false; 10 focusoutCalled = false;
11 11
12 input.addEventListener('focusout', function() { 12 input.addEventListener('focusout', function() {
13 focusoutCalled = true; 13 focusoutCalled = true;
14 }); 14 });
15 input.focus(); 15 input.focus();
16 input.setAttribute('x-webkit-speech', '');
17 shouldBeFalse('focusoutCalled');
18 input.type = 'month'; 16 input.type = 'month';
19 shouldBeFalse('focusoutCalled'); 17 shouldBeFalse('focusoutCalled');
20 input.type = 'week'; 18 input.type = 'week';
21 shouldBeFalse('focusoutCalled'); 19 shouldBeFalse('focusoutCalled');
22 input.type = 'time'; 20 input.type = 'time';
23 shouldBeFalse('focusoutCalled'); 21 shouldBeFalse('focusoutCalled');
24 input.type = 'datetime-local'; 22 input.type = 'datetime-local';
25 shouldBeFalse('focusoutCalled'); 23 shouldBeFalse('focusoutCalled');
26 input.type = 'text'; 24 input.type = 'text';
27 shouldBeFalse('focusoutCalled'); 25 shouldBeFalse('focusoutCalled');
28 26
29 </script> 27 </script>
30 </body> 28 </body>
31 </html> 29 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/input-type-change-focusout-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698