| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 // CSSStyleSheet | 198 // CSSStyleSheet |
| 199 | 199 |
| 200 shouldBe("nonNumericPolicy('createCSSStyleSheet().insertRule(ruleText, x)')", "'
any type allowed'"); | 200 shouldBe("nonNumericPolicy('createCSSStyleSheet().insertRule(ruleText, x)')", "'
any type allowed'"); |
| 201 shouldBe("nonNumericPolicy('createCSSStyleSheet().deleteRule(x)')", "'any type a
llowed (but not omitted)'"); | 201 shouldBe("nonNumericPolicy('createCSSStyleSheet().deleteRule(x)')", "'any type a
llowed (but not omitted)'"); |
| 202 shouldBe("nonNumericPolicy('createCSSStyleSheet().addRule(selector, styleText, x
)')", "'any type allowed'"); | 202 shouldBe("nonNumericPolicy('createCSSStyleSheet().addRule(selector, styleText, x
)')", "'any type allowed'"); |
| 203 shouldBe("nonNumericPolicy('createCSSStyleSheet().removeRule(x)')", "'any type a
llowed'"); | 203 shouldBe("nonNumericPolicy('createCSSStyleSheet().removeRule(x)')", "'any type a
llowed'"); |
| 204 | 204 |
| 205 // Document | 205 // Document |
| 206 | 206 |
| 207 shouldBe("nonNumericPolicy('document.elementFromPoint(x, 0)')", "'any type allow
ed'"); | 207 shouldBe("nonNumericPolicy('document.elementFromPoint(x, 0)')", "'any type allow
ed'"); |
| 208 shouldBe("nonNumericPolicy('document.elementFromPoint(0, x)')", "'any type allow
ed'"); | 208 shouldBe("nonNumericPolicy('document.elementFromPoint(0, x)')", "'any type allow
ed (but not omitted)'"); |
| 209 | 209 |
| 210 // Element | 210 // Element |
| 211 | 211 |
| 212 shouldBe("nonNumericPolicy('document.body.scrollLeft = x')", "'any type allowed'
"); | 212 shouldBe("nonNumericPolicy('document.body.scrollLeft = x')", "'any type allowed'
"); |
| 213 shouldBe("nonNumericPolicy('document.body.scrollTop = x')", "'any type allowed'"
); | 213 shouldBe("nonNumericPolicy('document.body.scrollTop = x')", "'any type allowed'"
); |
| 214 | 214 |
| 215 // History | 215 // History |
| 216 | 216 |
| 217 // Not tested: go. | 217 // Not tested: go. |
| 218 | 218 |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 ../../../../WebCore/svg/SVGSVGElement.idl: attribute float curre
ntScale | 623 ../../../../WebCore/svg/SVGSVGElement.idl: attribute float curre
ntScale |
| 624 | 624 |
| 625 ../../../../WebCore/svg/SVGMatrix.idl: attribute double a; | 625 ../../../../WebCore/svg/SVGMatrix.idl: attribute double a; |
| 626 ../../../../WebCore/svg/SVGMatrix.idl: attribute double b; | 626 ../../../../WebCore/svg/SVGMatrix.idl: attribute double b; |
| 627 ../../../../WebCore/svg/SVGMatrix.idl: attribute double c; | 627 ../../../../WebCore/svg/SVGMatrix.idl: attribute double c; |
| 628 ../../../../WebCore/svg/SVGMatrix.idl: attribute double d; | 628 ../../../../WebCore/svg/SVGMatrix.idl: attribute double d; |
| 629 ../../../../WebCore/svg/SVGMatrix.idl: attribute double e; | 629 ../../../../WebCore/svg/SVGMatrix.idl: attribute double e; |
| 630 ../../../../WebCore/svg/SVGMatrix.idl: attribute double f; | 630 ../../../../WebCore/svg/SVGMatrix.idl: attribute double f; |
| 631 | 631 |
| 632 */ | 632 */ |
| OLD | NEW |