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

Unified Diff: LayoutTests/fast/exclusions/parsing/script-tests/parsing-test-utils.js

Issue 359023002: Remove CSS Exclusions leftovers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase against ToT Created 6 years, 6 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/exclusions/parsing/script-tests/parsing-test-utils.js
diff --git a/LayoutTests/fast/exclusions/parsing/script-tests/parsing-test-utils.js b/LayoutTests/fast/exclusions/parsing/script-tests/parsing-test-utils.js
deleted file mode 100644
index 1fdfc9e7424d99bad5f614ee5ed5e3df870091f4..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/exclusions/parsing/script-tests/parsing-test-utils.js
+++ /dev/null
@@ -1,68 +0,0 @@
-function getCSSText(property, value)
-{
- var element = document.createElement("div");
- element.style.cssText = property + ": " + value;
- return element.style[property];
-}
-
-function getComputedStyleValue(property, value)
-{
- var element = document.createElement("div");
- document.body.appendChild(element);
- element.style.setProperty(property, value);
- var computedValue = getComputedStyle(element).getPropertyValue(property);
- document.body.removeChild(element);
- return computedValue;
-}
-
-function getParentAndChildComputedStyles(property, parentValue, childValue)
-{
- var parentElement = document.createElement("div");
- document.body.appendChild(parentElement);
- parentElement.style.setProperty(property, parentValue);
- var childElement = document.createElement("div");
- parentElement.appendChild(childElement);
- childElement.style.setProperty(property, childValue);
- var parentComputedValue = getComputedStyle(parentElement).getPropertyValue(property);
- var childComputedValue = getComputedStyle(childElement).getPropertyValue(property);
- parentElement.removeChild(childElement);
- document.body.removeChild(parentElement);
- return {parent: parentComputedValue, child: childComputedValue};
-}
-
-function getParentAndChildComputedStylesString(property, parentValue, childValue)
-{
- var styles = getParentAndChildComputedStyles(property, parentValue, childValue);
- return "parent: " + styles.parent + ", child: " + styles.child;
-}
-
-function getChildComputedStyle(property, parentValue, childValue)
-{
- var styles = getParentAndChildComputedStyles(property, parentValue, childValue);
- return styles.child;
-}
-
-function testExclusionSpecifiedProperty(property, value, expectedValue)
-{
- shouldBeEqualToString('getCSSText("' + property + '", "' + value + '")', expectedValue);
-}
-
-function testExclusionComputedProperty(property, value, expectedValue)
-{
- shouldBeEqualToString('getComputedStyleValue("' + property + '", "' + value + '")', expectedValue);
-}
-
-function testNotInheritedExclusionChildProperty(property, parentValue, childValue, expectedChildValue)
-{
- shouldBeEqualToString('getChildComputedStyle("' + property + '", "' + parentValue + '", "' + childValue + '")', expectedChildValue);
-}
-
-function testNotInheritedExclusionProperty(property, parentValue, childValue, expectedValue)
-{
- shouldBeEqualToString('getParentAndChildComputedStylesString("' + property + '", "' + parentValue + '", "' + childValue + '")', expectedValue);
-}
-
-function applyToEachArglist(testFunction, arglists)
-{
- arglists.forEach(function(arglist, i, a) {testFunction.apply(null, arglist);});
-}

Powered by Google App Engine
This is Rietveld 408576698