| Index: third_party/WebKit/LayoutTests/intersection-observer/incomplete-document.html
|
| diff --git a/third_party/WebKit/LayoutTests/intersection-observer/incomplete-document.html b/third_party/WebKit/LayoutTests/intersection-observer/incomplete-document.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4cff00a53e016017427cc8d329c46d3a22e3ebe2
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/intersection-observer/incomplete-document.html
|
| @@ -0,0 +1,22 @@
|
| +<!DOCTYPE html>
|
| +<script>
|
| +if (window.testRunner)
|
| + testRunner.dumpAsText();
|
| +</script>
|
| +
|
| +<p>PASS if no crash.</p>
|
| +
|
| +<div id=root>
|
| + <div id=target></div>
|
| +</div>
|
| +
|
| +<script>
|
| +var root = document.getElementById("root");
|
| +var target = document.getElementById("target");
|
| +var observer = new IntersectionObserver((changes) => {}, {root: root});
|
| +onload = () => {
|
| + var newdoc = document.implementation.createDocument("http://www.w3.org/1999/xhtml", "html");
|
| + newdoc.adoptNode(root);
|
| + observer.observe(target);
|
| +}
|
| +</script>
|
|
|