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

Side by Side Diff: LayoutTests/fast/regions/cssom/flowed-content-bounding-client-rect.html

Issue 159933010: Remove everything region-specific from LayoutTests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
(Empty)
1 <!DOCTYPE html>
2
3 <link rel="stylesheet" href="../resources/region-style.css"></link>
4 <script type="text/javascript" charset="utf-8" src="../resources/helper.js"></sc ript>
5
6 <style>
7 body { margin: 10px; }
8
9 .box {
10 width: 50px;
11 height: 50px;
12 float: left;
13 }
14
15 #region1 {
16 position: absolute;
17 padding: 10px;
18 }
19
20 #region2 {
21 position: absolute;
22 left: 100px;
23 border: 10px solid black;
24 }
25
26 #region3 {
27 position: absolute;
28 left: 200px;
29 padding: 10px;
30 border: 10px solid black;
31 }
32
33 .finished #region1, .finished #region2, .finished #region3 {
34 display: none;
35 }
36 </style>
37
38 <div class="flowArticle">
39 <div id="green" class="greenBox"></div>
40 <div id="blue" class="blueBox"></div>
41 <div id="orange" class="orangeBox"></div>
42 </div>
43
44 <div id="region1" class="regionArticle box"></div>
45 <div id="region2" class="regionArticle box"></div>
46 <div id="region3" class="regionArticle box"></div>
47
48 <script>
49 if (window.testRunner)
50 testRunner.dumpAsText();
51
52 var expectedBoundingRects = {
53 green: [20, 20, 70, 70, 50, 50],
54 blue: [20, 110, 70, 160, 50, 50],
55 orange: [30, 220, 80, 270, 50, 50]
56 };
57
58 if (testBoundingRects(expectedBoundingRects))
59 document.body.className = "finished";
60 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698