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

Unified Diff: third_party/WebKit/LayoutTests/intersection-observer/observer-without-js-reference.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/observer-without-js-reference.html
diff --git a/third_party/WebKit/LayoutTests/intersection-observer/observer-without-js-reference.html b/third_party/WebKit/LayoutTests/intersection-observer/observer-without-js-reference.html
index 1cdc0841165b875597b2f7277c4c0fe3e3ebd1e8..6525b1114653443c2b89614385e0febc1492b830 100644
--- a/third_party/WebKit/LayoutTests/intersection-observer/observer-without-js-reference.html
+++ b/third_party/WebKit/LayoutTests/intersection-observer/observer-without-js-reference.html
@@ -43,11 +43,11 @@ runTestCycle(function() {
function step0() {
document.scrollingElement.scrollTop = 300;
runTestCycle(step1, "document.scrollingElement.scrollTop = 300");
- assert_equals(entries.length, 0, "No notifications after first rAF.");
+ assert_equals(entries.length, 1, "One notification.");
}
function step1() {
document.scrollingElement.scrollTop = 0;
- assert_equals(entries.length, 1, "One notification.");
+ assert_equals(entries.length, 2, "Two notifications.");
}
</script>

Powered by Google App Engine
This is Rietveld 408576698