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

Unified Diff: LayoutTests/fast/regions/script-tests/region-element-display-restriction.js

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/script-tests/region-element-display-restriction.js
diff --git a/LayoutTests/fast/regions/script-tests/region-element-display-restriction.js b/LayoutTests/fast/regions/script-tests/region-element-display-restriction.js
deleted file mode 100644
index 69f549f6119b69f2cd187563daae5d03dcade573..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/regions/script-tests/region-element-display-restriction.js
+++ /dev/null
@@ -1,35 +0,0 @@
-description("Test that only non-replaced block elements can be transformed into regions.");
-
-function createRegionElement(elementType, displayType)
-{
- var element = document.createElement(elementType);
- var textElement = document.createTextNode("inside element");
- element.appendChild(textElement);
- element.style.setProperty("display", displayType);
- document.body.appendChild(element);
-
- // Transform the element into a region.
- element.style.setProperty("-webkit-flow-from", "no-flow");
-
- // The region element was created if the length of inner text is 0.
- var regionCreated = element.innerText.length == 0;
-
- document.body.removeChild(element);
-
- return regionCreated;
-}
-
-shouldBeFalse('createRegionElement("div", "none")');
-shouldBeTrue('createRegionElement("div", "block")');
-shouldBeTrue('createRegionElement("div", "inline-block")');
-shouldBeFalse('createRegionElement("div", "inline")');
-shouldBeFalse('createRegionElement("div", "table")');
-shouldBeFalse('createRegionElement("div", "inline-table")');
-shouldBeTrue('createRegionElement("div", "table-cell")');
-shouldBeTrue('createRegionElement("div", "table-caption")');
-shouldBeTrue('createRegionElement("div", "list-item")');
-shouldBeFalse('createRegionElement("div", "-webkit-box")');
-shouldBeFalse('createRegionElement("div", "-webkit-inline-box")');
-shouldBeFalse('createRegionElement("div", "-webkit-flex")');
-shouldBeFalse('createRegionElement("div", "-webkit-inline-flex")');
-// FIXME: Also add grid and inline grid when it is enabled by default

Powered by Google App Engine
This is Rietveld 408576698