Skip to content

Commit

Permalink
Bug 1586481 [wpt PR 19534] - Miscellaneous improvements to MathML DOM…
Browse files Browse the repository at this point in the history
… tests, a=testonly

Automatic update from web-platform-tests
Miscellaneous improvements to MathML DOM tests (#19534)

* Miscellaneous improvements to MathML DOM tests

- Don't use asynchronous test to check MathMLElement onevent attributes.
  closes #19500
- Only test tab-navigation of MathML links when HTML links are tab-navigable.
  https://github.com/mathml-refresh/mathml/issues/152
  https://github.com/Igalia/chromium-dev/issues/50
  https://bugzilla.mozilla.org/show_bug.cgi?id=1571487#c30

--

wpt-commits: c0a3f7ebe674581c4f1c22fd8bbfe86a5ea98e2b
wpt-pr: 19534

UltraBlame original commit: 935413555b5d2dc01805518b67ae8a28e10c3ead
  • Loading branch information
marco-c committed Oct 19, 2019
1 parent c408f74 commit d52ed37
Show file tree
Hide file tree
Showing 3 changed files with 137 additions and 95 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -354,37 +354,17 @@
"
)
;
async_test
(
test
=
>
{
test
.
step
(
function
(
)
=
>
{
assert_true
(
MathMLElement
.
prototype
.
hasOwnProperty
(
on
{
name
}
)
)
;
}
)
let
target
=
undefined
;
mathEl
[
Expand All @@ -394,38 +374,19 @@
}
]
=
test
.
step_func_done
(
e
)
=
>
{
assert_equals
(
target
=
e
.
currentTarget
mathEl
"
The
event
must
be
fired
at
the
<
math
>
element
"
)
;
}
)
;
const
event
=
Expand All @@ -450,6 +411,25 @@
event
)
;
assert_equals
(
target
mathEl
"
The
event
must
be
fired
at
the
<
math
>
element
"
)
;
}
{
name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -947,35 +947,13 @@
attribute
)
;
async_test
(
t
=
>
{
t
.
step
test
(
function
(
)
=
>
{
assert_true
(
MathMLElement
.
prototype
.
hasOwnProperty
(
name
)
)
;
}
)
;
const
element
=
Expand Down Expand Up @@ -1005,24 +983,43 @@
"
)
;
let
target
=
undefined
;
element
[
name
]
=
t
.
step_func_done
(
e
)
=
>
{
assert_equals
(
target
=
e
.
currentTarget
;
}
element
.
dispatchEvent
(
new
Event
(
withoutOn
)
)
;
assert_equals
(
target
element
"
The
Expand All @@ -1040,20 +1037,6 @@
)
;
}
)
;
element
.
dispatchEvent
(
new
Event
(
withoutOn
)
)
;
}
{
name
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,24 @@
div
>
<
a
href
=
"
#
link
"
>
tabindex
(
html
href
)
<
/
a
>
<
math
>
<
Expand Down Expand Up @@ -457,9 +475,6 @@
"
text5
"
"
text6
"
]
results
=
Expand Down Expand Up @@ -509,6 +524,70 @@
querySelector
(
"
a
"
)
.
addEventListener
(
"
focus
"
function
(
evt
)
{
/
/
Links
are
tab
-
navigable
on
that
platform
.
expectation
.
push
(
"
text6
"
)
;
/
/
TAB
=
'
\
ue004
'
test_driver
.
send_keys
(
document
.
body
"
\
ue004
"
)
;
}
true
)
;
document
.
querySelector
(
"
math
"
)
Expand Down

0 comments on commit d52ed37

Please sign in to comment.