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

Side by Side Diff: LayoutTests/fast/regions/cssom/get-region-flow-ranges-empty-regions.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 <html>
3 <head>
4 <meta charset="utf-8">
5 <script src="../../../resources/js-test.js"></script>
6 <script src="../resources/helper.js"></script>
7 <style>
8 body { font-family: monospace; }
9 #wrapper { font-size: 50px; }
10 .border { border: 1px solid red; }
11 #box { -webkit-flow-into: flow1; height: 50px; margin-top: 40px; background- color: blue}
12 #region1 { -webkit-flow-from: flow1; width: 250px; height: 30px; left: 20px; top: 250px;}
13 #region2 { -webkit-flow-from: flow1; width: 250px; height: 60px; left: 20px; top: 300px;}
14 #region3 { -webkit-flow-from: flow1; width: 250px; height: 60px; left: 20px; top: 300px;}
15 </style>
16 </head>
17 <body>
18 <div id="description"></div>
19 <div id="wrapper"><div id="box"></div></div>
20 <div id="region1" class="border"></div>
21 <div id="region2" class="border"></div>
22 <div id="region3" class="border"></div>
23 <div id="console"></div>
24 <script>
25 if (window.layoutTestController)
26 layoutTestController.dumpAsText();
27
28 description("[CSSRegions] Implement Region::getRegionFlowRanges for empty re gions");
29 var region1 = document.getElementById("region1");
30 var region2 = document.getElementById("region2");
31 var region3 = document.getElementById("region3");
32
33 debug("Flow test");
34 range1 = region1.webkitGetRegionFlowRanges();
35 shouldEvaluateTo("range1.length", 0);
36 range2 = region2.webkitGetRegionFlowRanges();
37 shouldEvaluateTo("range2.length", 1);
38 compareArrays(getRangeAt(range2, 0), ["wrapper", 0, "wrapper", 1]);
39 range3 = region3.webkitGetRegionFlowRanges();
40 shouldEvaluateTo("range3.length", 0);
41
42 function hideRegionsAndFlows() {
43 document.getElementById("region1").style.visibility = "hidden";
44 document.getElementById("region2").style.visibility = "hidden";
45 document.getElementById("region3").style.visibility = "hidden";
46 }
47
48 hideRegionsAndFlows();
49 </script>
50 </body>
51 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698