mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Enhance wpt for number input
Add cases for all leading ASCII whitespace characters.
This commit is contained in:
parent
576f51f598
commit
b8a8c2b9bf
2 changed files with 6 additions and 2 deletions
|
@ -657659,7 +657659,7 @@
|
|||
"testharness"
|
||||
],
|
||||
"html/semantics/forms/the-input-element/number.html": [
|
||||
"64868f02efca707cfe88a51e9bd91574dfbcaad9",
|
||||
"7d93f208985d305d46324d0ecf34e8c4ff2ad361",
|
||||
"testharness"
|
||||
],
|
||||
"html/semantics/forms/the-input-element/password.html": [
|
||||
|
|
|
@ -35,7 +35,11 @@
|
|||
{value: "+1", expected: "", testname: "value = +1"},
|
||||
{value: "+", expected: "", testname: "value = '+'"},
|
||||
{value: "-", expected: "", testname: "value = '-'"},
|
||||
{value: " 1", expected: "", testname: "value with a leading whitespace"},
|
||||
{value: "\t1", expected: "", testname: "value with a leading tab"},
|
||||
{value: "\n1", expected: "", testname: "value with a leading newline"},
|
||||
{value: "\f1", expected: "", testname: "value with a leading form feed"},
|
||||
{value: "\r1", expected: "", testname: "value with a leading carriage return"},
|
||||
{value: " 1", expected: "", testname: "value with a leading space"},
|
||||
{value: "1trailing junk", expected: "", testname: "value = 1trailing junk"}
|
||||
];
|
||||
for (var i = 0; i < numbers.length; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue