зеркало из https://github.com/mozilla/pjs.git
Follow-up for bug 600813 : cleaning tests. r=sicking a=tests
This commit is contained in:
Родитель
4d25a7ddd3
Коммит
855be3c9dd
|
@ -33,8 +33,6 @@ var methodTestData = [
|
|||
[ "get", "post" ],
|
||||
// Invalid values.
|
||||
[ "", " ", "foo" ],
|
||||
// TODO values, see bug 583289 and bug 583288.
|
||||
[ "delete", "put" ],
|
||||
];
|
||||
|
||||
function checkAttribute(form, attrName, idlName, data)
|
||||
|
@ -62,15 +60,6 @@ function checkAttribute(form, attrName, idlName, data)
|
|||
is(form[idlName], data[0][0], "When getting, " + idlName + " IDL attribute " +
|
||||
"should return the default value if the content attribute value isn't known");
|
||||
}
|
||||
|
||||
// TODO values.
|
||||
for (i in data[3]) {
|
||||
form.setAttribute(attrName, data[3][i]);
|
||||
is(form.getAttribute(attrName), data[3][i],
|
||||
"getAttribute should return the content attribute");
|
||||
todo_is(form[idlName], data[3][i], "When getting, " + idlName + " IDL attribute " +
|
||||
"should be equal to the content attribute if the value is known");
|
||||
}
|
||||
}
|
||||
|
||||
var form = document.createElement('form');
|
||||
|
|
Загрузка…
Ссылка в новой задаче