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

Side by Side Diff: third_party/WebKit/LayoutTests/intersection-observer/iframe-no-root.html

Issue 1648123004: Fix lazy test result printing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 4 years, 10 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../resources/js-test.js"></script> 2 <script src="../resources/js-test.js"></script>
3 <script src="helper-functions.js"></script> 3 <script src="helper-functions.js"></script>
4 <div style="width:100%; height:700px;"></div> 4 <div style="width:100%; height:700px;"></div>
5 <iframe id="target-iframe" src="../resources/intersection-observer-subframe.html " style="height: 100px; overflow-y: scroll"></iframe> 5 <iframe id="target-iframe" src="../resources/intersection-observer-subframe.html " style="height: 100px; overflow-y: scroll"></iframe>
6 <div style="width:100%; height:700px;"></div> 6 <div style="width:100%; height:700px;"></div>
7 7
8 <script> 8 <script>
9 description("Simple intersection observer test with no explicit root and target in an iframe."); 9 description("Simple intersection observer test with no explicit root and target in an iframe.");
10 var entries = []; 10 var entries = [];
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 shouldBeEqualToNumber("entries[1].boundingClientRect.bottom", 668); 67 shouldBeEqualToNumber("entries[1].boundingClientRect.bottom", 668);
68 shouldBeEqualToNumber("entries[1].intersectionRect.left", 0); 68 shouldBeEqualToNumber("entries[1].intersectionRect.left", 0);
69 shouldBeEqualToNumber("entries[1].intersectionRect.right", 0); 69 shouldBeEqualToNumber("entries[1].intersectionRect.right", 0);
70 shouldBeEqualToNumber("entries[1].intersectionRect.top", 0); 70 shouldBeEqualToNumber("entries[1].intersectionRect.top", 0);
71 shouldBeEqualToNumber("entries[1].intersectionRect.bottom", 0); 71 shouldBeEqualToNumber("entries[1].intersectionRect.bottom", 0);
72 shouldBeEqualToNumber("entries[1].rootBounds.left", 0); 72 shouldBeEqualToNumber("entries[1].rootBounds.left", 0);
73 shouldBeEqualToNumber("entries[1].rootBounds.right", 785); 73 shouldBeEqualToNumber("entries[1].rootBounds.right", 785);
74 shouldBeEqualToNumber("entries[1].rootBounds.top", 0); 74 shouldBeEqualToNumber("entries[1].rootBounds.top", 0);
75 shouldBeEqualToNumber("entries[1].rootBounds.bottom", 600); 75 shouldBeEqualToNumber("entries[1].rootBounds.bottom", 600);
76 shouldEvaluateToSameObject("entries[1].target", target); 76 shouldEvaluateToSameObject("entries[1].target", target);
77 finishTest(); 77 finishJSTest();
78 document.scrollingElement.scrollTop = 0; 78 document.scrollingElement.scrollTop = 0;
79 }); 79 });
80 } 80 }
81 81
82 step0(); 82 step0();
83 } 83 }
84 </script> 84 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698