Skip to content

Commit

Permalink
Bug 1940054 [wpt PR 49918] - Add cloning coverage for <input type=che…
Browse files Browse the repository at this point in the history
…ckbox switch>, a=testonly

Automatic update from web-platform-tests
Add cloning coverage for <input type=checkbox switch>

--

wpt-commits: 3ed9cf984e31c97367933dd517bd1f78a14fc864
wpt-pr: 49918

UltraBlame original commit: a1fafb282b690203327db47f7877eb0216830d08
  • Loading branch information
marco-c committed Jan 16, 2025
1 parent ab52c61 commit e25da0b
Showing 1 changed file with 136 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,139 @@ getter
"
)
;
test
(
t
=
>
{
const
input
=
document
.
createElement
(
"
input
"
)
;
input
.
type
=
"
checkbox
"
;
input
.
switch
=
true
;
const
clone
=
input
.
cloneNode
(
)
;
assert_equals
(
clone
.
getAttribute
(
"
switch
"
)
"
"
)
;
assert_equals
(
clone
.
type
"
checkbox
"
)
;
assert_true
(
clone
.
switch
)
;
t
.
add_cleanup
(
(
)
=
>
clone
.
remove
(
)
)
;
document
.
body
.
appendChild
(
clone
)
;
assert_equals
(
clone
.
getAttribute
(
"
switch
"
)
"
"
)
;
assert_equals
(
clone
.
type
"
checkbox
"
)
;
assert_true
(
clone
.
switch
)
;
}
"
Cloning
a
switch
control
"
)
;

0 comments on commit e25da0b

Please sign in to comment.