Bug 637321 - Fix tests that try to use the 'telephone' input type instead of 'tel'. r=bz a=tests

This commit is contained in:
Mounir Lamouri 2011-03-01 16:04:01 +01:00
parent 1f97a78ca8
commit 7bd454cbb0
2 changed files with 4 additions and 4 deletions

View File

@ -291,7 +291,7 @@ checkPatternAttribute(input);
// |validTypes| are the types which accept @pattern
// and |invalidTypes| are the ones which do not accept it.
var validTypes = Array('text', 'password', 'search', 'telephone', 'email', 'url');
var validTypes = Array('text', 'password', 'search', 'tel', 'email', 'url');
var barredTypes = Array('hidden', 'reset', 'button', 'submit', 'image');
var invalidTypes = Array('checkbox', 'radio', 'file');
// TODO: 'datetime', 'date', 'month', 'week', 'time', 'datetime-local',

View File

@ -25,7 +25,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=549475
// And it has no sanitizing algorithm.
var inputTypes =
[
"text", "password", "search", "telephone", "hidden", "checkbox", "radio",
"text", "password", "search", "tel", "hidden", "checkbox", "radio",
"submit", "image", "reset", "button", "email", "url"
];
@ -37,7 +37,7 @@ var todoTypes =
var valueModeValue =
[
"text", "search", "url", "telephone", "email", "password", "date", "datetime",
"text", "search", "url", "tel", "email", "password", "date", "datetime",
"month", "week", "time", "datetime-local", "number", "range", "color",
];
@ -47,7 +47,7 @@ function sanitizeValue(aType, aValue)
case "text":
case "password":
case "search":
case "telephone":
case "tel":
case "email":
return aValue.replace(/[\n\r]/g, "");
case "url":