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

Unified Diff: LayoutTests/fast/forms/number/number-validity-typemismatch.html

Issue 235273003: parsing input type=number should skip spaces (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/forms/number/number-validity-typemismatch.html
diff --git a/LayoutTests/fast/forms/number/number-validity-typemismatch.html b/LayoutTests/fast/forms/number/number-validity-typemismatch.html
index ef354536dba880a6795b33e82110594df327cc47..9b257c4e4fda30c6e318b70488100d703c69fe5c 100644
--- a/LayoutTests/fast/forms/number/number-validity-typemismatch.html
+++ b/LayoutTests/fast/forms/number/number-validity-typemismatch.html
@@ -37,6 +37,8 @@ function checkSanitization(value, expectedValue)
// Valid values
check('0');
check('10');
+check(' 10');
tkent 2014/04/14 00:47:37 This test should not be updated. The behavior of
+check('10 ');
check('01');
check('0.2');
check('.2');
@@ -51,10 +53,7 @@ check('0.12345678901234567890123456789012345678901234567890');
// Invalid values
checkSanitization('abc', '');
checkSanitization('0xff', '');
-
checkSanitization('+1', '');
-checkSanitization(' 10', '');
-checkSanitization('10 ', '');
checkSanitization('1,2', '');
checkSanitization('1E', '');
checkSanitization('NaN', '');

Powered by Google App Engine
This is Rietveld 408576698