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

Unified Diff: LayoutTests/fast/regions/cssom/get-regions-by-content-pseudo.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/get-regions-by-content-pseudo.html
diff --git a/LayoutTests/fast/regions/cssom/get-regions-by-content-pseudo.html b/LayoutTests/fast/regions/cssom/get-regions-by-content-pseudo.html
deleted file mode 100644
index 3b2268e039c3845006af8fdd3fa4b1d972f9fb3f..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/regions/cssom/get-regions-by-content-pseudo.html
+++ /dev/null
@@ -1,72 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <script src="../../../resources/js-test.js"></script>
- <script src="../resources/helper.js"></script>
- <style>
- #article {
- -webkit-flow-into: article;
- height: 150px;
- width: 50px;
- background-color: green;
- }
-
- #region_1 {
- position: absolute;
- top:200px;
- left: 100px;
- }
-
- #region_1::before {
- display: block;
- width: 50px;
- height: 50px;
- border: 1px solid black;
- -webkit-flow-from: article;
- }
-
- #region_1::after {
- display: block;
- width: 50px;
- height: 50px;
- border: 1px solid black;
- -webkit-flow-from: article;
- }
-
- #region_2 {
- -webkit-flow-from: article;
- height:50px;
- width:50px;
- position: absolute;
- top: 200px;
- left: 200px;
- border: 1px solid black;
- }
- </style>
- </head>
- <body>
- <!--
- Test that the pseudo-elements regions are not exposed to JS.
- -->
- <div id="article"></div>
-
- <div id="region_1"></div>
- <div id="region_2"></div>
- <script>
- if (window.testRunner)
- testRunner.dumpAsText();
- description("Tests WebKitNamedFlow.getRegionsByContent() and pseudo-elements as regions")
-
- var namedFlow = getFlowByName("article");
- var targetNode = document.getElementById("article");
- var regionList = namedFlow.getRegionsByContent(targetNode);
-
- shouldEvaluateTo("regionList.length", 1);
- shouldBeEqualToString("regionList.item(0).id", "region_2");
-
- document.getElementById("article").style.visibility = "hidden";
- document.getElementById("region_1").style.visibility = "hidden";
- document.getElementById("region_2").style.visibility = "hidden";
- </script>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698