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

Side by Side Diff: LayoutTests/fast/forms/number/number-skip-spaces-in-user-input.html

Issue 235273003: parsing input type=number should skip spaces (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporated review comments Created 6 years, 8 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/number/number-skip-spaces-in-user-input-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
(Empty)
1 <html>
2 <body>
3 <script src="../../../resources/js-test.js"></script>
4 <input type="number" id="input"></input>
5 <script>
6 description('should skip spaces from user input number');
7 var input = document.getElementById('input');
8 input.onblur = function()
9 {
10 shouldBe('input.valueAsNumber', '123456');
11 shouldBeEqualToString('input.value', '123456');
12 }
13 window.onload = function()
14 {
15 input.focus();
16 document.execCommand('InsertText', false, ' 123 456 ')
17 input.blur();
18 }
19 </script>
20 </body>
21 </html>
22
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/number/number-skip-spaces-in-user-input-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698