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

Unified Diff: third_party/WebKit/LayoutTests/intersection-observer/zero-area-element-hidden.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/zero-area-element-hidden.html
diff --git a/third_party/WebKit/LayoutTests/intersection-observer/zero-area-element-hidden.html b/third_party/WebKit/LayoutTests/intersection-observer/zero-area-element-hidden.html
index d1946d1ee598039b6b26df9f8819aeaec0c97c8c..03d9efba9e6ce2097f8b5167622eee381279f0c2 100644
--- a/third_party/WebKit/LayoutTests/intersection-observer/zero-area-element-hidden.html
+++ b/third_party/WebKit/LayoutTests/intersection-observer/zero-area-element-hidden.html
@@ -34,10 +34,10 @@ runTestCycle(function() {
observer.observe(target);
entries = entries.concat(observer.takeRecords());
assert_equals(entries.length, 0, "No initial notifications.");
- runTestCycle(step0, "First rAF should not generate a notification.");
-}, "No intersecting observations should be sent for a zero-area hidden target.");
+ runTestCycle(step0, "First rAF.");
+}, "A zero-area hidden target should not be intersecting.");
function step0() {
- assert_equals(entries.length, 0, "No notifications after first rAF.");
+ checkLastEntry(entries, 0, [8, 8, -1000, -1000, 0, 0, 0, 0, 0, 800, 0, 600, target]);
}
</script>

Powered by Google App Engine
This is Rietveld 408576698