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

Unified Diff: LayoutTests/fast/regions/cssom/element-region-overset-state-vertical-rl.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/element-region-overset-state-vertical-rl.html
diff --git a/LayoutTests/fast/regions/cssom/element-region-overset-state-vertical-rl.html b/LayoutTests/fast/regions/cssom/element-region-overset-state-vertical-rl.html
deleted file mode 100644
index fd128e34d630561d6764c43b3fde3fc24be6f5dc..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/regions/cssom/element-region-overset-state-vertical-rl.html
+++ /dev/null
@@ -1,108 +0,0 @@
-<html>
-<head>
-<script src="../../../resources/js-test.js"></script>
-<style>
-html {-webkit-writing-mode: vertical-rl;}
-body { font-family: monospace; }
-
-#article {
- -webkit-flow-into: article;
- border: 2px solid black;
-}
-
-#region_1, #region_2, #region_3 {
- -webkit-flow-from: no_article;
- overflow:visible;
- display:inline-block;
- vertical-align:top;
- margin:10px;
-}
-
-.block {
- display:block;
-}
-
-#region_1 { height:110px; width:200px; border:1px solid #a0a0a0; }
-#region_2 { height:110px; width:200px; border:1px solid black }
-#region_3 { height:110px; width:200px; border:1px solid #a0a0a0; }
-
-</style>
-</head>
-<body>
-<div id="description" class="block"></div>
-<div id="article">
- <div>
- <div id="content" style="width: 396px; background-color: green;"></div>
- </div>
-</div>
-
-<div id="region_1"></div>
-<div id="region_2"></div>
-<div id="region_3"></div>
-
-<div id="console" class="block"></div>
-
-<script>
- description("Tests Element.webkitRegionOverset attribute")
- if (window.testRunner) {
- testRunner.dumpAsText();
- }
- function regionOverset(id) {
- var e = document.getElementById(id);
- return e.webkitRegionOverset;
- }
- function flowContent(flowName) {
- var r = document.getElementById("region_1");
- r.style.webkitFlowFrom = flowName;
- r = document.getElementById("region_2");
- r.style.webkitFlowFrom = flowName;
- r = document.getElementById("region_3");
- r.style.webkitFlowFrom = flowName;
- }
- function addVisualOverflow() {
- var c = document.getElementById("article");
- c.style.webkitBoxShadow="-30px 0px lime";
- }
- function addMoreContent() {
- var c = document.getElementById("content");
- c.style.width = 596;
- }
-
- function test() {
- shouldBeEqualToString("regionOverset('region_1')", "empty");
- shouldBeEqualToString("regionOverset('region_2')", "empty");
- shouldBeEqualToString("regionOverset('region_3')", "empty");
-
- debug("Flow content");
- flowContent("article");
-
- shouldBeEqualToString("regionOverset('region_1')", "fit");
- shouldBeEqualToString("regionOverset('region_2')", "fit");
- shouldBeEqualToString("regionOverset('region_3')", "empty");
-
- debug("Add more content");
- addMoreContent();
-
- shouldBeEqualToString("regionOverset('region_1')", "fit");
- shouldBeEqualToString("regionOverset('region_2')", "fit");
- shouldBeEqualToString("regionOverset('region_3')", "fit");
-
- debug("Add visual overflow");
- addVisualOverflow();
-
- shouldBeEqualToString("regionOverset('region_1')", "fit");
- shouldBeEqualToString("regionOverset('region_2')", "fit");
- shouldBeEqualToString("regionOverset('region_3')", "overset");
-
- debug("Empty content");
- flowContent("no_article");
-
- shouldBeEqualToString("regionOverset('region_1')", "empty");
- shouldBeEqualToString("regionOverset('region_2')", "empty");
- shouldBeEqualToString("regionOverset('region_3')", "empty");
- }
-
- test();
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698