Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Unified Diff: third_party/WebKit/LayoutTests/intersection-observer/incomplete-document.html

Issue 1985173002: [MERGE 2704] IntersectionObserver: check for constructed Frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@2704
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/intersection-observer/incomplete-document-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/intersection-observer/incomplete-document-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698