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

Unified Diff: third_party/WebKit/LayoutTests/intersection-observer/resources/cross-origin-subframe.html

Issue 2645283008: IntersectionObserver: Always send an initial notification. (Closed)
Patch Set: Fix unit test Created 3 years, 11 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
Index: third_party/WebKit/LayoutTests/intersection-observer/resources/cross-origin-subframe.html
diff --git a/third_party/WebKit/LayoutTests/intersection-observer/resources/cross-origin-subframe.html b/third_party/WebKit/LayoutTests/intersection-observer/resources/cross-origin-subframe.html
index 74168340d4b9624c9bfceaa07c87482b2347a1dc..0cc117cb3a69d0f2ed19505f7d14f824cbad6d71 100644
--- a/third_party/WebKit/LayoutTests/intersection-observer/resources/cross-origin-subframe.html
+++ b/third_party/WebKit/LayoutTests/intersection-observer/resources/cross-origin-subframe.html
@@ -52,9 +52,15 @@ observer.observe(target);
function step0() {
entries = entries.concat(observer.takeRecords());
nextStep = step1;
+ var expected = [{
+ boundingClientRect: coordinatesToClientRectJson(8, 208, 108, 308),
+ intersectionRect: coordinatesToClientRectJson(0, 0, 0, 0),
+ rootBounds: "null",
+ target: target.id
+ }];
port.postMessage({
actual: entries.map(entryToJson),
- expected: [],
+ expected: expected,
description: "First rAF"
}, "*");
entries = [];

Powered by Google App Engine
This is Rietveld 408576698