зеркало из https://github.com/mozilla/gecko-dev.git
Bug 951887 followup. Adjust tests to deal with the new reality.
This commit is contained in:
Родитель
450fef6f62
Коммит
a614bdaa4b
|
@ -185,8 +185,10 @@ function checkInputRequiredValidity(type)
|
|||
|
||||
element.required = true;
|
||||
SpecialPowers.wrap(element).value = ''; // To make :-moz-ui-valid apply.
|
||||
checkSufferingFromBeingMissing(element, true);
|
||||
document.forms[0].removeChild(element);
|
||||
checkNotSufferingFromBeingMissing(element);
|
||||
// Removing the child changes nothing about whether it's valid
|
||||
checkSufferingFromBeingMissing(element, true);
|
||||
}
|
||||
|
||||
function checkInputRequiredValidityForCheckbox()
|
||||
|
@ -221,7 +223,7 @@ function checkInputRequiredValidityForCheckbox()
|
|||
element.required = true;
|
||||
element.checked = false;
|
||||
document.forms[0].removeChild(element);
|
||||
checkNotSufferingFromBeingMissing(element);
|
||||
checkSufferingFromBeingMissing(element, true);
|
||||
}
|
||||
|
||||
function checkInputRequiredValidityForRadio()
|
||||
|
@ -297,7 +299,7 @@ function checkInputRequiredValidityForRadio()
|
|||
element2.required = true;
|
||||
element2.checked = false;
|
||||
document.forms[0].removeChild(element2);
|
||||
checkNotSufferingFromBeingMissing(element2);
|
||||
checkSufferingFromBeingMissing(element2, true);
|
||||
}
|
||||
|
||||
function checkInputRequiredValidityForFile()
|
||||
|
@ -350,7 +352,7 @@ function checkInputRequiredValidityForFile()
|
|||
SpecialPowers.wrap(element).value = '';
|
||||
file.remove(false);
|
||||
document.forms[0].removeChild(element);
|
||||
checkNotSufferingFromBeingMissing(element);
|
||||
checkSufferingFromBeingMissing(element, true);
|
||||
}
|
||||
|
||||
checkTextareaRequiredValidity();
|
||||
|
|
|
@ -129,7 +129,7 @@ function checkRadios(r1, r2, r3, form)
|
|||
var p = r2.parentNode;
|
||||
p.removeChild(r2);
|
||||
checkPseudoClasses(r1, true, true, false);
|
||||
checkPseudoClasses(r2, true, true, false);
|
||||
checkPseudoClasses(r2, false, false, true);
|
||||
|
||||
p.appendChild(r2);
|
||||
checkPseudoClasses(r1, false, false, true);
|
||||
|
|
Загрузка…
Ссылка в новой задаче