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 style="white-space: nowrap;"> | 5 <div style="white-space: nowrap;"> |
6 <div style="display: inline-block; width: 1000px; height: 100px"></div> | 6 <div style="display: inline-block; width: 1000px; height: 100px"></div> |
7 <div id="target" style="display: inline-block; background-color: green; width:
100px; height:100px"></div> | 7 <div id="target" style="display: inline-block; background-color: green; width:
100px; height:100px"></div> |
8 <div style="display: inline-block; width: 1000px; height: 100px"></div> | 8 <div style="display: inline-block; width: 1000px; height: 100px"></div> |
9 </div> | 9 </div> |
10 <div style="width:100%; height:700px;"></div> | 10 <div style="width:100%; height:700px;"></div> |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 shouldBeEqualToNumber("entries[1].intersectionRect.left", 0); | 78 shouldBeEqualToNumber("entries[1].intersectionRect.left", 0); |
79 shouldBeEqualToNumber("entries[1].intersectionRect.right", 0); | 79 shouldBeEqualToNumber("entries[1].intersectionRect.right", 0); |
80 shouldBeEqualToNumber("entries[1].intersectionRect.top", 0); | 80 shouldBeEqualToNumber("entries[1].intersectionRect.top", 0); |
81 shouldBeEqualToNumber("entries[1].intersectionRect.bottom", 0); | 81 shouldBeEqualToNumber("entries[1].intersectionRect.bottom", 0); |
82 shouldBeEqualToNumber("entries[1].rootBounds.left", -30); | 82 shouldBeEqualToNumber("entries[1].rootBounds.left", -30); |
83 shouldBeEqualToNumber("entries[1].rootBounds.right", 942); | 83 shouldBeEqualToNumber("entries[1].rootBounds.right", 942); |
84 shouldBeEqualToNumber("entries[1].rootBounds.top", -10); | 84 shouldBeEqualToNumber("entries[1].rootBounds.top", -10); |
85 shouldBeEqualToNumber("entries[1].rootBounds.bottom", 819); | 85 shouldBeEqualToNumber("entries[1].rootBounds.bottom", 819); |
86 shouldEvaluateToSameObject("entries[1].target", target); | 86 shouldEvaluateToSameObject("entries[1].target", target); |
87 | 87 |
88 finishTest(); | 88 finishJSTest(); |
89 document.scrollingElement.scrollLeft = 0; | 89 document.scrollingElement.scrollLeft = 0; |
90 document.scrollingElement.scrollTop = 0; | 90 document.scrollingElement.scrollTop = 0; |
91 }); | 91 }); |
92 } | 92 } |
93 | 93 |
94 step0(); | 94 step0(); |
95 </script> | 95 </script> |
OLD | NEW |