mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
Update web-platform-tests to revision 4a5223502fa660ce03e470af6a61c8bc26c5a8ee
This commit is contained in:
parent
c5f7c9ccf3
commit
e891345f26
1328 changed files with 36632 additions and 20588 deletions
|
@ -94,9 +94,11 @@ async_test(function(t) {
|
|||
var clickEvent = new MouseEvent("click")
|
||||
input.onchange = t.step_func_done(function() {
|
||||
assert_false(clickEvent.defaultPrevented)
|
||||
assert_true(clickEvent.returnValue)
|
||||
assert_equals(clickEvent.eventPhase, 0)
|
||||
assert_equals(clickEvent.currentTarget, null)
|
||||
assert_equals(clickEvent.target, input)
|
||||
assert_equals(clickEvent.srcElement, input)
|
||||
assert_equals(clickEvent.composedPath().length, 0)
|
||||
})
|
||||
input.dispatchEvent(clickEvent)
|
||||
|
@ -110,6 +112,7 @@ async_test(function(t) {
|
|||
var finalTarget = document.createElement("doesnotmatter")
|
||||
finalTarget.onclick = t.step_func_done(function() {
|
||||
assert_equals(clickEvent.target, finalTarget)
|
||||
assert_equals(clickEvent.srcElement, finalTarget)
|
||||
})
|
||||
input.onchange = t.step_func(function() {
|
||||
finalTarget.dispatchEvent(clickEvent)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue