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

Unified Diff: third_party/WebKit/LayoutTests/intersection-observer/remove-element-expected.txt

Issue 1889053002: IntersectionObserver: notify when root or target is removed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 4 years, 8 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/remove-element-expected.txt
diff --git a/third_party/WebKit/LayoutTests/intersection-observer/same-document-root-expected.txt b/third_party/WebKit/LayoutTests/intersection-observer/remove-element-expected.txt
similarity index 51%
copy from third_party/WebKit/LayoutTests/intersection-observer/same-document-root-expected.txt
copy to third_party/WebKit/LayoutTests/intersection-observer/remove-element-expected.txt
index af7109b271800208e890378e51ed84830e97a770..0848d0a5f483434055013dabe39b33a4f7392cde 100644
--- a/third_party/WebKit/LayoutTests/intersection-observer/same-document-root-expected.txt
+++ b/third_party/WebKit/LayoutTests/intersection-observer/remove-element-expected.txt
@@ -1,53 +1,51 @@
-Simple intersection observer test with explicit root and target in the same document.
+Test that notifications are sent correctly when root and/or target are removed from the DOM tree.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS entries.length is 0
-PASS entries.length is 0
-PASS entries.length is 0
PASS entries.length is 1
PASS entries[0].boundingClientRect.left is 11
PASS entries[0].boundingClientRect.right is 111
-PASS entries[0].boundingClientRect.top is 261
-PASS entries[0].boundingClientRect.bottom is 361
+PASS entries[0].boundingClientRect.top is 161
+PASS entries[0].boundingClientRect.bottom is 261
PASS entries[0].intersectionRect.left is 11
PASS entries[0].intersectionRect.right is 111
-PASS entries[0].intersectionRect.top is 261
-PASS entries[0].intersectionRect.bottom is 311
+PASS entries[0].intersectionRect.top is 161
+PASS entries[0].intersectionRect.bottom is 211
PASS entries[0].rootBounds.left is 11
PASS entries[0].rootBounds.right is 111
-PASS entries[0].rootBounds.top is 111
-PASS entries[0].rootBounds.bottom is 311
+PASS entries[0].rootBounds.top is 11
+PASS entries[0].rootBounds.bottom is 211
PASS entries[0].target is [object HTMLDivElement]
-PASS entries.length is 1
PASS entries.length is 2
-PASS entries[1].boundingClientRect.left is 11
-PASS entries[1].boundingClientRect.right is 111
-PASS entries[1].boundingClientRect.top is 1011
-PASS entries[1].boundingClientRect.bottom is 1111
+PASS entries[1].boundingClientRect.left is 0
+PASS entries[1].boundingClientRect.right is 0
+PASS entries[1].boundingClientRect.top is 0
+PASS entries[1].boundingClientRect.bottom is 0
PASS entries[1].intersectionRect.left is 0
PASS entries[1].intersectionRect.right is 0
PASS entries[1].intersectionRect.top is 0
PASS entries[1].intersectionRect.bottom is 0
-PASS entries[1].rootBounds.left is 11
-PASS entries[1].rootBounds.right is 111
-PASS entries[1].rootBounds.top is 711
-PASS entries[1].rootBounds.bottom is 911
+PASS entries[1].rootBounds.left is 0
+PASS entries[1].rootBounds.right is 0
+PASS entries[1].rootBounds.top is 0
+PASS entries[1].rootBounds.bottom is 0
PASS entries[1].target is [object HTMLDivElement]
+PASS entries.length is 2
PASS entries.length is 3
PASS entries[2].boundingClientRect.left is 11
PASS entries[2].boundingClientRect.right is 111
-PASS entries[2].boundingClientRect.top is 861
-PASS entries[2].boundingClientRect.bottom is 961
+PASS entries[2].boundingClientRect.top is 161
+PASS entries[2].boundingClientRect.bottom is 261
PASS entries[2].intersectionRect.left is 11
PASS entries[2].intersectionRect.right is 111
-PASS entries[2].intersectionRect.top is 861
-PASS entries[2].intersectionRect.bottom is 911
+PASS entries[2].intersectionRect.top is 161
+PASS entries[2].intersectionRect.bottom is 211
PASS entries[2].rootBounds.left is 11
PASS entries[2].rootBounds.right is 111
-PASS entries[2].rootBounds.top is 711
-PASS entries[2].rootBounds.bottom is 911
+PASS entries[2].rootBounds.top is 11
+PASS entries[2].rootBounds.bottom is 211
PASS entries[2].target is [object HTMLDivElement]
PASS successfullyParsed is true

Powered by Google App Engine
This is Rietveld 408576698