Skip to content

Commit 7c8c141

Browse files
committed
Bug 1938060 [wpt PR 49758] - DOM: Move moveBefore() returns undefined, 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
1 parent 6a1c65d commit 7c8c141

File tree

1 file changed

+111
-4
lines changed

1 file changed

+111
-4
lines changed

testing/web-platform/tests/dom/nodes/moveBefore/tentative/Node-moveBefore.html

+111-4
Original file line numberDiff line numberDiff line change
@@ -2175,12 +2175,104 @@
21752175
.
21762176
moveBefore
21772177
(
2178+
c
2179+
b
2180+
)
2181+
undefined
2182+
"
2183+
moveBefore
2184+
(
2185+
)
2186+
returns
2187+
undefined
2188+
"
2189+
)
2190+
;
2191+
assert_array_equals
2192+
(
2193+
a
2194+
.
2195+
childNodes
2196+
[
2197+
c
21782198
b
2199+
]
2200+
)
2201+
;
2202+
}
2203+
"
2204+
moveBefore
2205+
(
2206+
)
2207+
returns
2208+
undefined
2209+
"
2210+
)
2211+
;
2212+
test
2213+
(
2214+
(
2215+
)
2216+
=
2217+
>
2218+
{
2219+
const
2220+
a
2221+
=
2222+
document
2223+
.
2224+
body
2225+
.
2226+
appendChild
2227+
(
2228+
document
2229+
.
2230+
createElement
2231+
(
2232+
"
2233+
div
2234+
"
2235+
)
2236+
)
2237+
;
2238+
const
21792239
b
2240+
=
2241+
document
2242+
.
2243+
createElement
2244+
(
2245+
"
2246+
div
2247+
"
2248+
)
2249+
;
2250+
const
2251+
c
2252+
=
2253+
document
2254+
.
2255+
createElement
2256+
(
2257+
"
2258+
div
2259+
"
21802260
)
2261+
;
2262+
a
2263+
.
2264+
append
2265+
(
21812266
b
21822267
)
21832268
;
2269+
a
2270+
.
2271+
append
2272+
(
2273+
c
2274+
)
2275+
;
21842276
assert_array_equals
21852277
(
21862278
a
@@ -2192,15 +2284,30 @@
21922284
]
21932285
)
21942286
;
2195-
assert_equals
2196-
(
21972287
a
21982288
.
21992289
moveBefore
22002290
(
2291+
b
2292+
b
2293+
)
2294+
;
2295+
assert_array_equals
2296+
(
2297+
a
2298+
.
2299+
childNodes
2300+
[
2301+
b
22012302
c
2202-
c
2303+
]
22032304
)
2305+
;
2306+
a
2307+
.
2308+
moveBefore
2309+
(
2310+
c
22042311
c
22052312
)
22062313
;
@@ -2217,7 +2324,7 @@
22172324
;
22182325
}
22192326
"
2220-
Inserting
2327+
Moving
22212328
a
22222329
node
22232330
before

0 commit comments

Comments
 (0)