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

Unified Diff: third_party/WebKit/LayoutTests/intersection-observer/resources/observer-in-iframe-subframe.html

Issue 2560253004: IntersectionObserver: convert tests to testharness.js (Closed)
Patch Set: rebase Created 4 years 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
Index: third_party/WebKit/LayoutTests/intersection-observer/resources/observer-in-iframe-subframe.html
diff --git a/third_party/WebKit/LayoutTests/resources/intersection-observer-in-iframe.html b/third_party/WebKit/LayoutTests/intersection-observer/resources/observer-in-iframe-subframe.html
similarity index 91%
rename from third_party/WebKit/LayoutTests/resources/intersection-observer-in-iframe.html
rename to third_party/WebKit/LayoutTests/intersection-observer/resources/observer-in-iframe-subframe.html
index e06b1d1c093eca7ca8d11d4fbed8c1311340c4c0..990106a0887ccb985927d764ccca61eff9929b98 100644
--- a/third_party/WebKit/LayoutTests/resources/intersection-observer-in-iframe.html
+++ b/third_party/WebKit/LayoutTests/intersection-observer/resources/observer-in-iframe-subframe.html
@@ -1,13 +1,20 @@
<!DOCTYPE html>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<script src="../resources/intersection-observer-helper-functions.js"></script>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
<div style="height: 200px; width: 100px;"></div>
<div id="target" style="background-color: green; width:100px; height:100px"></div>
<div style="height: 200px; width: 100px;"></div>
<script>
+function waitForNotification(f) {
+ requestAnimationFrame(() => {
+ setTimeout(() => {
+ setTimeout(f);
+ });
+ });
+}
+
setup({message_events: [], output_document: window.parent.document});
onload = function() {
var entries = [];

Powered by Google App Engine
This is Rietveld 408576698