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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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'"); | 222 shouldBe("nonNumericPolicy('document.body.scrollByLines(x)')", "'any type allowe
d'"); |
223 shouldBe("nonNumericPolicy('document.body.scrollByPages(x)')", "'any type allowe
d'"); | 223 shouldBe("nonNumericPolicy('document.body.scrollByPages(x)')", "'any type allowe
d'"); |
224 shouldBe("nonNumericPolicy('document.body.scrollLeft = x')", "'any type allowed'
"); | 224 shouldBe("nonNumericPolicy('document.body.scrollLeft = x')", "'mixed'"); |
225 shouldBe("nonNumericPolicy('document.body.scrollTop = x')", "'any type allowed'"
); | 225 shouldBe("nonNumericPolicy('document.body.scrollTop = x')", "'mixed'"); |
226 | 226 |
227 // History | 227 // History |
228 | 228 |
229 // Not tested: go. | 229 // Not tested: go. |
230 | 230 |
231 // HTMLCollection | 231 // HTMLCollection |
232 | 232 |
233 shouldBe("nonNumericPolicy('document.images.item(x)')", "'any type allowed'"); | 233 shouldBe("nonNumericPolicy('document.images.item(x)')", "'any type allowed'"); |
234 | 234 |
235 // HTMLInputElement | 235 // HTMLInputElement |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 ../../../../WebCore/svg/SVGSVGElement.idl: attribute float curre
ntScale | 635 ../../../../WebCore/svg/SVGSVGElement.idl: attribute float curre
ntScale |
636 | 636 |
637 ../../../../WebCore/svg/SVGMatrix.idl: attribute double a; | 637 ../../../../WebCore/svg/SVGMatrix.idl: attribute double a; |
638 ../../../../WebCore/svg/SVGMatrix.idl: attribute double b; | 638 ../../../../WebCore/svg/SVGMatrix.idl: attribute double b; |
639 ../../../../WebCore/svg/SVGMatrix.idl: attribute double c; | 639 ../../../../WebCore/svg/SVGMatrix.idl: attribute double c; |
640 ../../../../WebCore/svg/SVGMatrix.idl: attribute double d; | 640 ../../../../WebCore/svg/SVGMatrix.idl: attribute double d; |
641 ../../../../WebCore/svg/SVGMatrix.idl: attribute double e; | 641 ../../../../WebCore/svg/SVGMatrix.idl: attribute double e; |
642 ../../../../WebCore/svg/SVGMatrix.idl: attribute double f; | 642 ../../../../WebCore/svg/SVGMatrix.idl: attribute double f; |
643 | 643 |
644 */ | 644 */ |
OLD | NEW |