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);}); |
-} |