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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/text/input-live-pseudo-selectors.html

Issue 2100243002: Remove non-standardize key code names from event_sender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix inspector tests that were missed by sed Created 4 years, 5 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
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <link rel="stylesheet" href="../resources/live-pseudo-selectors.css"> 4 <link rel="stylesheet" href="../resources/live-pseudo-selectors.css">
5 <script src="../../../resources/js-test.js"></script> 5 <script src="../../../resources/js-test.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <p id="description"></p> 8 <p id="description"></p>
9 <div id="console"></div> 9 <div id="console"></div>
10 <script> 10 <script>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 el = makeInvalid(); 85 el = makeInvalid();
86 el.focus(); 86 el.focus();
87 el.value = 'abc'; 87 el.value = 'abc';
88 shouldBe(elBackground, 'validColor'); 88 shouldBe(elBackground, 'validColor');
89 89
90 debug('Change the value by key input:'); 90 debug('Change the value by key input:');
91 el = makeInvalid(); 91 el = makeInvalid();
92 el.focus(); 92 el.focus();
93 eventSender.keyDown('a'); 93 eventSender.keyDown('a');
94 shouldBe(elBackground, 'validColor'); 94 shouldBe(elBackground, 'validColor');
95 eventSender.keyDown('backspace', []); 95 eventSender.keyDown('Backspace', []);
96 shouldBe(elBackground, 'invalidColor'); 96 shouldBe(elBackground, 'invalidColor');
97 97
98 // -------------------------------- 98 // --------------------------------
99 // Constraints change 99 // Constraints change
100 // -------------------------------- 100 // --------------------------------
101 debug('Change required:'); 101 debug('Change required:');
102 el = makeInvalid(); 102 el = makeInvalid();
103 el.required = false; 103 el.required = false;
104 shouldBe(elBackground, 'validColor'); 104 shouldBe(elBackground, 'validColor');
105 el.required = true; 105 el.required = true;
(...skipping 13 matching lines...) Expand all
119 el.value = '1'; 119 el.value = '1';
120 el.type = 'number'; 120 el.type = 'number';
121 shouldBe(elBackground, 'validColor'); 121 shouldBe(elBackground, 'validColor');
122 el.step = '2'; 122 el.step = '2';
123 shouldBe(elBackground, 'invalidColor'); 123 shouldBe(elBackground, 'invalidColor');
124 el.step = '0.5'; 124 el.step = '0.5';
125 shouldBe(elBackground, 'validColor'); 125 shouldBe(elBackground, 'validColor');
126 </script> 126 </script>
127 </body> 127 </body>
128 </html> 128 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698