| Index: third_party/WebKit/LayoutTests/intersection-observer/same-document-no-root.html
|
| diff --git a/third_party/WebKit/LayoutTests/intersection-observer/same-document-no-root.html b/third_party/WebKit/LayoutTests/intersection-observer/same-document-no-root.html
|
| index 5d8a01b82285952ccb694fcc3a6312d4aff068d8..4ef109b9f5f99d1fb1b65a37920b27fabb47d722 100644
|
| --- a/third_party/WebKit/LayoutTests/intersection-observer/same-document-no-root.html
|
| +++ b/third_party/WebKit/LayoutTests/intersection-observer/same-document-no-root.html
|
| @@ -16,12 +16,10 @@ onload = function() {
|
| entries = entries.concat(observer.takeRecords());
|
| shouldBeEqualToNumber("entries.length", 0);
|
| document.scrollingElement.scrollTop = 300;
|
| - // See README for explanation of double RAF.
|
| - requestAnimationFrame(() => { requestAnimationFrame(step1) });
|
| + waitForNotification(step1);
|
| };
|
|
|
| function step1() {
|
| - entries = entries.concat(observer.takeRecords());
|
| shouldBeEqualToNumber("entries.length", 1);
|
| if (entries.length > 0) {
|
| shouldBeEqualToNumber("entries[0].boundingClientRect.left", 8);
|
| @@ -44,11 +42,10 @@ function step1() {
|
| shouldEvaluateToSameObject("entries[0].rootBounds", entries[0].rootBounds);
|
| }
|
| document.scrollingElement.scrollTop = 100;
|
| - requestAnimationFrame(step2);
|
| + waitForNotification(step2);
|
| }
|
|
|
| function step2() {
|
| - entries = entries.concat(observer.takeRecords());
|
| shouldBeEqualToNumber("entries.length", 2);
|
| if (entries.length > 1) {
|
| shouldBeEqualToNumber("entries[1].boundingClientRect.left", 8);
|
|
|