Index: LayoutTests/fast/dom/script-tests/non-numeric-values-numeric-parameters.js |
diff --git a/LayoutTests/fast/dom/script-tests/non-numeric-values-numeric-parameters.js b/LayoutTests/fast/dom/script-tests/non-numeric-values-numeric-parameters.js |
index 0fccd460c757d4b2d58813c1658ebcde92b39281..6d385ec132719060ff3f123bd23cd91434a3baee 100644 |
--- a/LayoutTests/fast/dom/script-tests/non-numeric-values-numeric-parameters.js |
+++ b/LayoutTests/fast/dom/script-tests/non-numeric-values-numeric-parameters.js |
@@ -100,11 +100,6 @@ var ruleText = selector + " { " + styleText + " }"; |
var testElementContainer = document.createElement("div"); |
document.body.appendChild(testElementContainer); |
-function createCSSStyleSheet() |
-{ |
- return document.createElement("style").sheet; |
-} |
- |
function createFromMarkup(markup) |
{ |
var range = document.createRange(); |
@@ -208,8 +203,8 @@ shouldBe("nonNumericPolicy('createCSSStyleDeclaration().item(x)')", "'any type a |
// CSSStyleSheet |
-shouldBe("nonNumericPolicy('createCSSStyleSheet().insertRule(ruleText, x)')", "'any type allowed'"); |
-shouldBe("nonNumericPolicy('createCSSStyleSheet().deleteRule(x)')", "'any type allowed'"); |
+shouldBe("nonNumericPolicy('createCSSStyleSheet().insertRule(ruleText, x)')", "'any type allowed (but not omitted)'"); |
+shouldBe("nonNumericPolicy('createCSSStyleSheet().deleteRule(x)')", "'any type allowed (but not omitted)'"); |
shouldBe("nonNumericPolicy('createCSSStyleSheet().addRule(selector, styleText, x)')", "'any type allowed'"); |
shouldBe("nonNumericPolicy('createCSSStyleSheet().removeRule(x)')", "'any type allowed'"); |