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

Side by Side Diff: third_party/WebKit/LayoutTests/intersection-observer/root-margin-expected.txt

Issue 2560253004: IntersectionObserver: convert tests to testharness.js (Closed)
Patch Set: Formatting tweaks and explicit resource paths Created 3 years, 12 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 unified diff | Download patch
OLDNEW
(Empty)
1 Intersection observer test with root margin and implicit root.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS new IntersectionObserver(c => {}, { rootMargin: '1.4px' }) did not throw ex ception.
7 PASS new IntersectionObserver(c => {}, { rootMargin: '1.4px 2px' }) did not thro w exception.
8 PASS new IntersectionObserver(c => {}, { rootMargin: '1.4px 2px 3%' }) did not t hrow exception.
9 PASS entries.length is 0
10 PASS entries.length is 0
11 PASS entries.length is 1
12 PASS entries.length is 1
13 PASS entries[0].boundingClientRect.left is 912
14 PASS entries[0].boundingClientRect.right is 1012
15 PASS entries[0].boundingClientRect.top is 708
16 PASS entries[0].boundingClientRect.bottom is 808
17 PASS entries[0].intersectionRect.left is 912
18 PASS entries[0].intersectionRect.right is 942
19 PASS entries[0].intersectionRect.top is 708
20 PASS entries[0].intersectionRect.bottom is 808
21 PASS entries[0].rootBounds.left is -30
22 PASS entries[0].rootBounds.right is 942
23 PASS entries[0].rootBounds.top is -10
24 PASS entries[0].rootBounds.bottom is 819
25 PASS entries[0].target is [object HTMLDivElement]
26 PASS entries.length is 1
27 PASS entries.length is 2
28 PASS entries[1].boundingClientRect.left is 912
29 PASS entries[1].boundingClientRect.right is 1012
30 PASS entries[1].boundingClientRect.top is -192
31 PASS entries[1].boundingClientRect.bottom is -92
32 PASS entries[1].intersectionRect.left is 0
33 PASS entries[1].intersectionRect.right is 0
34 PASS entries[1].intersectionRect.top is 0
35 PASS entries[1].intersectionRect.bottom is 0
36 PASS entries[1].rootBounds.left is -30
37 PASS entries[1].rootBounds.right is 942
38 PASS entries[1].rootBounds.top is -10
39 PASS entries[1].rootBounds.bottom is 819
40 PASS entries[1].target is [object HTMLDivElement]
41 PASS successfullyParsed is true
42
43 TEST COMPLETE
44
45
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698