| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 | 212 |
| 213 shouldBe("nonNumericPolicy('createCSSValueList().item(x)')", "'any type allowed
(but not omitted)'"); | 213 shouldBe("nonNumericPolicy('createCSSValueList().item(x)')", "'any type allowed
(but not omitted)'"); |
| 214 | 214 |
| 215 // Document | 215 // Document |
| 216 | 216 |
| 217 shouldBe("nonNumericPolicy('document.elementFromPoint(x, 0)')", "'any type allow
ed'"); | 217 shouldBe("nonNumericPolicy('document.elementFromPoint(x, 0)')", "'any type allow
ed'"); |
| 218 shouldBe("nonNumericPolicy('document.elementFromPoint(0, x)')", "'any type allow
ed'"); | 218 shouldBe("nonNumericPolicy('document.elementFromPoint(0, x)')", "'any type allow
ed'"); |
| 219 | 219 |
| 220 // Element | 220 // Element |
| 221 | 221 |
| 222 shouldBe("nonNumericPolicy('document.body.scrollByLines(x)')", "'any type allowe
d'"); | |
| 223 shouldBe("nonNumericPolicy('document.body.scrollByPages(x)')", "'any type allowe
d'"); | |
| 224 shouldBe("nonNumericPolicy('document.body.scrollLeft = x')", "'mixed'"); | 222 shouldBe("nonNumericPolicy('document.body.scrollLeft = x')", "'mixed'"); |
| 225 shouldBe("nonNumericPolicy('document.body.scrollTop = x')", "'mixed'"); | 223 shouldBe("nonNumericPolicy('document.body.scrollTop = x')", "'mixed'"); |
| 226 | 224 |
| 227 // History | 225 // History |
| 228 | 226 |
| 229 // Not tested: go. | 227 // Not tested: go. |
| 230 | 228 |
| 231 // HTMLCollection | 229 // HTMLCollection |
| 232 | 230 |
| 233 shouldBe("nonNumericPolicy('document.images.item(x)')", "'any type allowed'"); | 231 shouldBe("nonNumericPolicy('document.images.item(x)')", "'any type allowed'"); |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 ../../../../WebCore/svg/SVGSVGElement.idl: attribute float curre
ntScale | 633 ../../../../WebCore/svg/SVGSVGElement.idl: attribute float curre
ntScale |
| 636 | 634 |
| 637 ../../../../WebCore/svg/SVGMatrix.idl: attribute double a; | 635 ../../../../WebCore/svg/SVGMatrix.idl: attribute double a; |
| 638 ../../../../WebCore/svg/SVGMatrix.idl: attribute double b; | 636 ../../../../WebCore/svg/SVGMatrix.idl: attribute double b; |
| 639 ../../../../WebCore/svg/SVGMatrix.idl: attribute double c; | 637 ../../../../WebCore/svg/SVGMatrix.idl: attribute double c; |
| 640 ../../../../WebCore/svg/SVGMatrix.idl: attribute double d; | 638 ../../../../WebCore/svg/SVGMatrix.idl: attribute double d; |
| 641 ../../../../WebCore/svg/SVGMatrix.idl: attribute double e; | 639 ../../../../WebCore/svg/SVGMatrix.idl: attribute double e; |
| 642 ../../../../WebCore/svg/SVGMatrix.idl: attribute double f; | 640 ../../../../WebCore/svg/SVGMatrix.idl: attribute double f; |
| 643 | 641 |
| 644 */ | 642 */ |
| OLD | NEW |