OLD | NEW |
1 description( | 1 description( |
2 'This tests the behavior of non-numeric values in contexts where the DOM has a n
umeric parameter.' | 2 'This tests the behavior of non-numeric values in contexts where the DOM has a n
umeric parameter.' |
3 ); | 3 ); |
4 | 4 |
5 function nonNumericPolicy(template) | 5 function nonNumericPolicy(template) |
6 { | 6 { |
7 var x = 0; | 7 var x = 0; |
8 try { | 8 try { |
9 eval(template); | 9 eval(template); |
10 } catch (e) { | 10 } catch (e) { |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").replaceData(x, 0, \"b
\")')", "'any type allowed'"); | 193 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").replaceData(x, 0, \"b
\")')", "'any type allowed'"); |
194 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").replaceData(0, x, \"b
\")')", "'any type allowed'"); | 194 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").replaceData(0, x, \"b
\")')", "'any type allowed'"); |
195 | 195 |
196 // CSSMediaRule | 196 // CSSMediaRule |
197 | 197 |
198 shouldBe("nonNumericPolicy('createCSSMediaRule().insertRule(ruleText, x)')", "'a
ny type allowed (but not omitted)'"); | 198 shouldBe("nonNumericPolicy('createCSSMediaRule().insertRule(ruleText, x)')", "'a
ny type allowed (but not omitted)'"); |
199 shouldBe("nonNumericPolicy('createCSSMediaRule().deleteRule(x)')", "'any type al
lowed (but not omitted)'"); | 199 shouldBe("nonNumericPolicy('createCSSMediaRule().deleteRule(x)')", "'any type al
lowed (but not omitted)'"); |
200 | 200 |
201 // CSSRuleList | 201 // CSSRuleList |
202 | 202 |
203 shouldBe("nonNumericPolicy('createCSSRuleList().item(x)')", "'any type allowed'"
); | 203 shouldBe("nonNumericPolicy('createCSSRuleList().item(x)')", "'any type allowed (
but not omitted)'"); |
204 | 204 |
205 // CSSStyleDeclaration | 205 // CSSStyleDeclaration |
206 | 206 |
207 shouldBe("nonNumericPolicy('createCSSStyleDeclaration().item(x)')", "'any type a
llowed'"); | 207 shouldBe("nonNumericPolicy('createCSSStyleDeclaration().item(x)')", "'any type a
llowed'"); |
208 | 208 |
209 // CSSStyleSheet | 209 // CSSStyleSheet |
210 | 210 |
211 shouldBe("nonNumericPolicy('createCSSStyleSheet().insertRule(ruleText, x)')", "'
any type allowed'"); | 211 shouldBe("nonNumericPolicy('createCSSStyleSheet().insertRule(ruleText, x)')", "'
any type allowed'"); |
212 shouldBe("nonNumericPolicy('createCSSStyleSheet().deleteRule(x)')", "'any type a
llowed'"); | 212 shouldBe("nonNumericPolicy('createCSSStyleSheet().deleteRule(x)')", "'any type a
llowed'"); |
213 shouldBe("nonNumericPolicy('createCSSStyleSheet().addRule(selector, styleText, x
)')", "'any type allowed'"); | 213 shouldBe("nonNumericPolicy('createCSSStyleSheet().addRule(selector, styleText, x
)')", "'any type allowed'"); |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 ../../../../WebCore/svg/SVGSVGElement.idl: attribute float curre
ntScale | 640 ../../../../WebCore/svg/SVGSVGElement.idl: attribute float curre
ntScale |
641 | 641 |
642 ../../../../WebCore/svg/SVGMatrix.idl: attribute double a; | 642 ../../../../WebCore/svg/SVGMatrix.idl: attribute double a; |
643 ../../../../WebCore/svg/SVGMatrix.idl: attribute double b; | 643 ../../../../WebCore/svg/SVGMatrix.idl: attribute double b; |
644 ../../../../WebCore/svg/SVGMatrix.idl: attribute double c; | 644 ../../../../WebCore/svg/SVGMatrix.idl: attribute double c; |
645 ../../../../WebCore/svg/SVGMatrix.idl: attribute double d; | 645 ../../../../WebCore/svg/SVGMatrix.idl: attribute double d; |
646 ../../../../WebCore/svg/SVGMatrix.idl: attribute double e; | 646 ../../../../WebCore/svg/SVGMatrix.idl: attribute double e; |
647 ../../../../WebCore/svg/SVGMatrix.idl: attribute double f; | 647 ../../../../WebCore/svg/SVGMatrix.idl: attribute double f; |
648 | 648 |
649 */ | 649 */ |
OLD | NEW |