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

Side by Side Diff: LayoutTests/fast/regions/cssom/get-region-flow-ranges-text.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;}
12 #region1 { -webkit-flow-from: flow1; width: 250px; height: 70px; left: 20px; top: 250px;}
13 #region2 { -webkit-flow-from: flow1; width: 250px; height: 60px; left: 20px; top: 300px;}
14 </style>
15 </head>
16 <body>
17 <div id="description"></div>
18 <div id="wrapper"><div id="box">Text node.</div></div>
19 <div id="region1" class="border"></div>
20 <div id="region2" class="border"></div>
21 <div id="console"></div>
22 <script>
23 if (window.layoutTestController)
24 layoutTestController.dumpAsText();
25
26 description("[CSSRegions] Test for Region::getRegionFlowRanges. Text breaks in two regions");
27 var region1 = document.getElementById("region1");
28 var region2 = document.getElementById("region2");
29
30 debug("Flow test");
31 range1 = region1.webkitGetRegionFlowRanges();
32 shouldEvaluateTo("range1.length", 1);
33 compareArrays(getRangeAt(range1, 0), ["wrapper", 0, "#text", 4]);
34 range2 = region2.webkitGetRegionFlowRanges();
35 shouldEvaluateTo("range2.length", 1);
36 compareArrays(getRangeAt(range2, 0), ["#text", 5, "wrapper", 1]);
37
38 function hideRegionsAndFlows() {
39 document.getElementById("region1").style.visibility = "hidden";
40 document.getElementById("region2").style.visibility = "hidden";
41 }
42
43 hideRegionsAndFlows();
44 </script>
45 </body>
46 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698