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

Unified Diff: LayoutTests/fast/regions/script-tests/css-regions-disabled.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/css-regions-disabled.js
diff --git a/LayoutTests/fast/regions/script-tests/css-regions-disabled.js b/LayoutTests/fast/regions/script-tests/css-regions-disabled.js
deleted file mode 100644
index abfef80b843a85e2dc9800fc2b563ea5f4d29ecb..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/regions/script-tests/css-regions-disabled.js
+++ /dev/null
@@ -1,77 +0,0 @@
-description('Test that parsing of css regions related properties is disabled by default.');
-
-if (window.testRunner)
- window.testRunner.overridePreference("WebKitCSSRegionsEnabled", "0");
-
-function testWebKitFlowInto(declaration) {
- var div = document.createElement("div");
- div.setAttribute("style", declaration);
- return div.style.webkitFlowInto;
-}
-
-function testWebKitFlowFrom(declaration) {
- var div = document.createElement("div");
- div.setAttribute("style", declaration);
- return div.style.webkitFlowFrom;
-}
-
-function testWebKitRegionFragment(declaration) {
- var div = document.createElement("div");
- div.setAttribute("style", declaration);
- return div.style.webkitRegionFragment;
-}
-
-function testComputedStyleWebKitFlowInto(value) {
- var div = document.createElement("div");
- document.body.appendChild(div);
- div.style.setProperty("-webkit-flow-into", value);
- var computedValue = getComputedStyle(div).getPropertyValue("-webkit-flow-into");
- document.body.removeChild(div);
- return computedValue;
-}
-
-function testComputedStyleWebKitFlowFrom(value) {
- var div = document.createElement("div");
- document.body.appendChild(div);
- div.style.setProperty("-webkit-flow-from", value);
- var computedValue = getComputedStyle(div).getPropertyValue("-webkit-flow-from");
- document.body.removeChild(div);
- return computedValue;
-}
-
-function testComputedStyleWebKitRegionFragment(value) {
- var div = document.createElement("div");
- document.body.appendChild(div);
- div.style.setProperty("-webkit-region-fragment", value);
- var computedValue = getComputedStyle(div).getPropertyValue("-webkit-region-fragment");
- document.body.removeChild(div);
- return computedValue;
-}
-
-shouldBeEqualToString('testWebKitFlowInto("-webkit-flow-into: none")', "");
-shouldBeEqualToString('testWebKitFlowInto("-webkit-flow-into: first-flow")', "");
-shouldBeEqualToString('testComputedStyleWebKitFlowInto("none")', "none");
-shouldBeEqualToString('testComputedStyleWebKitFlowInto("first-flow")', "none");
-
-shouldBeEqualToString('testWebKitFlowFrom("-webkit-flow-from: first-flow")', "");
-shouldBeEqualToString('testWebKitFlowFrom("-webkit-flow-from: none")', "");
-shouldBeEqualToString('testComputedStyleWebKitFlowFrom("first-flow")', "none");
-shouldBeEqualToString('testComputedStyleWebKitFlowFrom("none")', "none");
-
-shouldBeEqualToString('testWebKitRegionFragment("-webkit-region-fragment: auto")', "");
-shouldBeEqualToString('testWebKitRegionFragment("-webkit-region-fragment: break")', "");
-shouldBeEqualToString('testComputedStyleWebKitRegionFragment("auto")', "auto");
-shouldBeEqualToString('testComputedStyleWebKitRegionFragment("break")', "auto");
-
-// Test that region styling rules are not parsed.
-var styleElement = document.createElement("style");
-document.head.appendChild(styleElement);
-var stylesheet = styleElement.sheet;
-webkitRegionRuleIndex = -1;
-try {
- webkitRegionRuleIndex = stylesheet.insertRule("@-webkit-region #region3 { p { color: red; } }");
-} catch(err) {
-}
-
-shouldBe("webkitRegionRuleIndex", "-1");
-

Powered by Google App Engine
This is Rietveld 408576698