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

Unified Diff: LayoutTests/fast/regions/cssom/webkit-named-flow-get-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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/regions/cssom/webkit-named-flow-get-regions.html
diff --git a/LayoutTests/fast/regions/cssom/webkit-named-flow-get-regions.html b/LayoutTests/fast/regions/cssom/webkit-named-flow-get-regions.html
deleted file mode 100644
index a2464e0825fac9e4b15f7d390faba1f403b04db6..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/regions/cssom/webkit-named-flow-get-regions.html
+++ /dev/null
@@ -1,66 +0,0 @@
-<html>
-<head>
-<script src="../../../resources/js-test.js"></script>
-<script src="../resources/helper.js"></script>
-<style>
-#article {
- -webkit-flow-into: article;
- border: 2px solid black;
-}
-#region_1, #region_2{
- overflow:visible;
- display:inline-block;
- vertical-align:top;
- margin:10px;
-}
-#region_1 { height:500px; width:200px; }
-#region_2 { height:50px; width:200px; }
-</style>
-</head>
-<body>
-<div id="article">
- <div>
- <div id="content" style="height: 300px; background-color: green;"></div>
- </div>
-</div>
-
-<div id="region_1"></div>
-<div id="region_2"></div>
-
-<script>
- description("Tests WebKitNamedFlow.getRegions() and the DOM order of the list")
- if (window.testRunner) {
- testRunner.dumpAsText();
- }
-
- function getRegionAt(index) {
- var flow = getFlowByName("article");
- var regions = flow.getRegions();
- if (regions.length <= index)
- return null;
-
- return regions[index];
- }
-
- function flowContent(flowName) {
- var r = document.getElementById("region_1");
- r.style.webkitFlowFrom = flowName;
- r = document.getElementById("region_2");
- r.style.webkitFlowFrom = flowName;
- }
-
- function test() {
- debug("Flow content");
- flowContent("article");
-
- debug("Test if the regions are in DOM order");
- shouldBeEqualToString("getRegionAt(0).id", "region_1");
- shouldBeEqualToString("getRegionAt(1).id", "region_2");
-
- debug("Empty content");
- flowContent(null);
- }
- test();
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698