OLD | NEW |
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 Loading... |
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> |
OLD | NEW |