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

Unified Diff: LayoutTests/fast/forms/number/number-reject-invalid-expected.txt

Issue 1100273002: input[type=number] UI should reject invalid characters. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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-reject-invalid-expected.txt
diff --git a/LayoutTests/fast/forms/number/number-reject-invalid-expected.txt b/LayoutTests/fast/forms/number/number-reject-invalid-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..59acc59305215e36fb40a804f6403c3433a5b619
--- /dev/null
+++ b/LayoutTests/fast/forms/number/number-reject-invalid-expected.txt
@@ -0,0 +1,19 @@
+Arabic number input should accept ASCII digits and Arabic digits, and reject others.
+PASS displayValueForKeyInput(arabicInput, "123.4") is "123.4"
+PASS displayValueForKeyInput(arabicInput, "1.23E+19") is "1.23E+19"
+PASS displayValueForKeyInput(arabicInput, "1.23e-1") is "1.23e-1"
+PASS displayValueForKeyInput(arabicInput, "١٩٠") is "١٩٠"
+PASS displayValueForKeyInput(arabicInput, "acdef") is "e"
+
+French number input should accept ASCII digits, comma, and full stop.
+PASS displayValueForKeyInput(frenchInput, "1234.56") is "1234.56"
+FAIL displayValueForKeyInput(frenchInput, "1234,56") should be 1234.56. Was 1234,56.
+
+English number input should accept ASCII digits and full stop, and no comma.
+PASS displayValueForKeyInput(englishInput, "1234.56") is "1234.56"
+PASS displayValueForKeyInput(englishInput, "-1234,56") is "-123456"
+PASS displayValueForKeyInput(englishInput, " abcdef ") is "e"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/fast/forms/number/number-reject-invalid.html ('k') | LayoutTests/fast/forms/number/number-validity-badinput.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698