Skip to content

Commit

Permalink
Bug 1938060 [wpt PR 49758] - DOM: Move moveBefore() returns undefined…
Browse files Browse the repository at this point in the history
…, a=testonly

Automatic update from web-platform-tests
DOM: Move moveBefore() returns undefined

See discussion in whatwg/dom#1335.

R=nrosenthalchromium.org

Bug: 40150299
Change-Id: I50aeafb913abb4b63480be4532254f367abf37b7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6097561
Reviewed-by: Noam Rosenthal <nrosenthalchromium.org>
Commit-Queue: Dominic Farolino <domchromium.org>
Cr-Commit-Position: refs/heads/main{#1397950}

--

wpt-commits: 37cad0c49e62655850799c6f6ee165b3ceacebdd
wpt-pr: 49758

UltraBlame original commit: 7345177f4c7b0628e97d6fb86c41df63b081bb4a
  • Loading branch information
marco-c committed Jan 1, 2025
1 parent 6a1c65d commit 7c8c141
Showing 1 changed file with 111 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2175,12 +2175,104 @@
.
moveBefore
(
c
b
)
undefined
"
moveBefore
(
)
returns
undefined
"
)
;
assert_array_equals
(
a
.
childNodes
[
c
b
]
)
;
}
"
moveBefore
(
)
returns
undefined
"
)
;
test
(
(
)
=
>
{
const
a
=
document
.
body
.
appendChild
(
document
.
createElement
(
"
div
"
)
)
;
const
b
=
document
.
createElement
(
"
div
"
)
;
const
c
=
document
.
createElement
(
"
div
"
)
;
a
.
append
(
b
)
;
a
.
append
(
c
)
;
assert_array_equals
(
a
Expand All @@ -2192,15 +2284,30 @@
]
)
;
assert_equals
(
a
.
moveBefore
(
b
b
)
;
assert_array_equals
(
a
.
childNodes
[
b
c
c
]
)
;
a
.
moveBefore
(
c
c
)
;
Expand All @@ -2217,7 +2324,7 @@
;
}
"
Inserting
Moving
a
node
before
Expand Down

0 comments on commit 7c8c141

Please sign in to comment.