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

Side by Side Diff: third_party/WebKit/LayoutTests/intersection-observer/same-document-root.html

Issue 1545813002: Remove unnecessary RAF from tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@intersection-observer-document-root
Patch Set: rebaseline Created 4 years, 11 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="root" style="display: inline-block; overflow-y: scroll; height: 200px;" > 5 <div id="root" style="display: inline-block; overflow-y: scroll; height: 200px;" >
6 <div style="width:100px; height: 300px;"></div> 6 <div style="width:100px; height: 300px;"></div>
7 <div id="target" style="background-color: green; width:100px; height:100px"></ div> 7 <div id="target" style="background-color: green; width:100px; height:100px"></ div>
8 </div> 8 </div>
9 <div style="width:100%;height:700px;"></div> 9 <div style="width:100%;height:700px;"></div>
10 10
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 shouldBeEqualToNumber("entries[2].intersectionRect.bottom", 908); 102 shouldBeEqualToNumber("entries[2].intersectionRect.bottom", 908);
103 shouldBeEqualToNumber("entries[2].rootBounds.left", 8); 103 shouldBeEqualToNumber("entries[2].rootBounds.left", 8);
104 shouldBeEqualToNumber("entries[2].rootBounds.right", 108); 104 shouldBeEqualToNumber("entries[2].rootBounds.right", 108);
105 shouldBeEqualToNumber("entries[2].rootBounds.top", 708); 105 shouldBeEqualToNumber("entries[2].rootBounds.top", 708);
106 shouldBeEqualToNumber("entries[2].rootBounds.bottom", 908); 106 shouldBeEqualToNumber("entries[2].rootBounds.bottom", 908);
107 shouldEvaluateToSameObject("entries[2].target", target); 107 shouldEvaluateToSameObject("entries[2].target", target);
108 finishTest(); 108 finishTest();
109 }); 109 });
110 } 110 }
111 111
112 requestAnimationFrame(step0); 112 step0();
113 </script> 113 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698