mirror of
https://github.com/servo/servo.git
synced 2025-10-01 09:09:15 +01:00
Don't return early from report_pending_exception() if the value is an unexpected object.
We will now dispatch the error event in this case as well.
This commit is contained in:
parent
c4f87f451f
commit
154b16a25d
13 changed files with 31 additions and 19 deletions
|
@ -8,3 +8,4 @@
|
|||
|
||||
[Resize iframe from 200x100 to 200x50, then to 100x50]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -2,3 +2,4 @@
|
|||
type: testharness
|
||||
[disconnect() called during startNotifications. Reject with NetworkError.]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -2,3 +2,4 @@
|
|||
type: testharness
|
||||
[disconnect() called during stopNotifications. Reject with NetworkError.]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
[htmllabel-activation.html]
|
||||
type: testharness
|
||||
|
||||
[If label's 1st child (submit) is disabled, click should have no impact]
|
||||
expected: FAIL
|
||||
|
|
@ -37,7 +37,7 @@
|
|||
label.click();
|
||||
assert_false(disabledcb.checked, "checkbox should not be checked")
|
||||
assert_false(checkbox.checked, "checkbox should not be checked")
|
||||
}, "If label's 1st child is disabled, click should have no impact");
|
||||
}, "If label's 1st child (checkbox) is disabled, click should have no impact");
|
||||
|
||||
test(function() {
|
||||
document.querySelector("#test").innerHTML = '<label id="label">hi \
|
||||
|
@ -81,7 +81,7 @@
|
|||
label.click();
|
||||
assert_false(disabledRadio.checked, "disabled radio should not be checked")
|
||||
assert_false(checkbox.checked, "checkbox should not be checked")
|
||||
}, "If label's 1st child is disabled, click should have no impact");
|
||||
}, "If label's 1st child (radio) is disabled, click should have no impact");
|
||||
|
||||
|
||||
test(function() {
|
||||
|
@ -110,13 +110,13 @@
|
|||
disabledSubmit = document.getElementById('disabledSubmit'),
|
||||
checkbox = document.getElementById('checkbox');
|
||||
|
||||
disabledSubmit.onclick = function() {
|
||||
disabledSubmit.onclick = this.step_func(function() {
|
||||
assert_unreached("disabled submit should not have been activated")
|
||||
};
|
||||
});
|
||||
|
||||
label.click();
|
||||
assert_false(checkbox.checked, "checkbox should not be checked")
|
||||
}, "If label's 1st child is disabled, click should have no impact");
|
||||
}, "If label's 1st child (submit) is disabled, click should have no impact");
|
||||
|
||||
test(function() {
|
||||
document.querySelector("#test").innerHTML = '<label id="label" for="checkbox2">hi \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue