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

Unified Diff: LayoutTests/fast/regions/script-tests/region-element-display-change.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-change.js
diff --git a/LayoutTests/fast/regions/script-tests/region-element-display-change.js b/LayoutTests/fast/regions/script-tests/region-element-display-change.js
deleted file mode 100644
index e1c0a9790f32b5a9965069ae559b25590edd51ab..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/regions/script-tests/region-element-display-change.js
+++ /dev/null
@@ -1,30 +0,0 @@
-description("Test that RenderObject is recreated correctly after changing display type.");
-
-function testElement(element, displayType)
-{
- element.style.setProperty("display", displayType);
- // The region element was created if the length of inner text is 0.
- var regionCreated = element.innerText.length == 0;
- return regionCreated;
-}
-
-var element = document.createElement("div");
-var textElement = document.createTextNode("inside element");
-element.appendChild(textElement);
-element.style.setProperty("-webkit-flow-from", "flow");
-document.body.appendChild(element);
-shouldBeFalse('testElement(element, "none")');
-shouldBeTrue('testElement(element, "block")');
-shouldBeTrue('testElement(element, "inline-block")');
-shouldBeFalse('testElement(element, "inline")');
-shouldBeFalse('testElement(element, "table")');
-shouldBeFalse('testElement(element, "inline-table")');
-shouldBeTrue('testElement(element, "table-cell")');
-shouldBeTrue('testElement(element, "table-caption")');
-shouldBeTrue('testElement(element, "list-item")');
-shouldBeFalse('testElement(element, "-webkit-box")');
-shouldBeFalse('testElement(element, "-webkit-inline-box")');
-shouldBeFalse('testElement(element, "-webkit-flex")');
-shouldBeFalse('testElement(element, "-webkit-inline-flex")');
-// FIXME: Also add grid and inline grid when it is enabled by default
-document.body.removeChild(element);

Powered by Google App Engine
This is Rietveld 408576698