mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
We can simplify the checks given that there's fewer node types now. This does make the error messages from Range a little worse, but it's weird that Range is doing its own error checking anyway. I also took this as an opportunity to add a bunch of DOM tests. R=ojan@chromium.org Review URL: https://codereview.chromium.org/732203004
11 lines
345 B
Plaintext
11 lines
345 B
Plaintext
Running 6 tests
|
|
ok 1 replaceChild should throw with invalid arguments
|
|
ok 2 replaceChild should replace elements
|
|
ok 3 replaceChild should replace text
|
|
ok 4 replaceChild should replace children with a fragment
|
|
ok 5 replaceChild should throw when inserting a tree scope
|
|
ok 6 replaceChild should throw when appending to a text
|
|
6 tests
|
|
6 pass
|
|
0 fail
|