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

Side by Side Diff: third_party/WebKit/LayoutTests/intersection-observer/multiple-thresholds.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 <div id="target" style="background-color: green; width:100px; height:100px"></di v> 5 <div id="target" style="background-color: green; width:100px; height:100px"></di v>
6 <div style="width:100%; height:700px;"></div> 6 <div style="width:100%; height:700px;"></div>
7 7
8 <script> 8 <script>
9 description("Intersection observer test with multiple thresholds."); 9 description("Intersection observer test with multiple thresholds.");
10 var target = document.getElementById("target"); 10 var target = document.getElementById("target");
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 shouldBeEqualToNumber("entries[6].boundingClientRect.bottom", -12); 170 shouldBeEqualToNumber("entries[6].boundingClientRect.bottom", -12);
171 shouldBeEqualToNumber("entries[6].intersectionRect.left", 0); 171 shouldBeEqualToNumber("entries[6].intersectionRect.left", 0);
172 shouldBeEqualToNumber("entries[6].intersectionRect.right", 0); 172 shouldBeEqualToNumber("entries[6].intersectionRect.right", 0);
173 shouldBeEqualToNumber("entries[6].intersectionRect.top", 0); 173 shouldBeEqualToNumber("entries[6].intersectionRect.top", 0);
174 shouldBeEqualToNumber("entries[6].intersectionRect.bottom", 0); 174 shouldBeEqualToNumber("entries[6].intersectionRect.bottom", 0);
175 shouldBeEqualToNumber("entries[6].rootBounds.left", 0); 175 shouldBeEqualToNumber("entries[6].rootBounds.left", 0);
176 shouldBeEqualToNumber("entries[6].rootBounds.right", 785); 176 shouldBeEqualToNumber("entries[6].rootBounds.right", 785);
177 shouldBeEqualToNumber("entries[6].rootBounds.top", 0); 177 shouldBeEqualToNumber("entries[6].rootBounds.top", 0);
178 shouldBeEqualToNumber("entries[6].rootBounds.bottom", 600); 178 shouldBeEqualToNumber("entries[6].rootBounds.bottom", 600);
179 shouldEvaluateToSameObject("entries[6].target", target); 179 shouldEvaluateToSameObject("entries[6].target", target);
180 finishTest(); 180 finishJSTest();
181 document.scrollingElement.scrollTop = 0; 181 document.scrollingElement.scrollTop = 0;
182 }); 182 });
183 } 183 }
184 184
185 step0(); 185 step0();
186 </script> 186 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698