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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 row.insertCell(0); | 182 row.insertCell(0); |
183 return row; | 183 return row; |
184 } | 184 } |
185 | 185 |
186 // CharacterData | 186 // CharacterData |
187 | 187 |
188 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").substringData(x, 0)')
", "'any type allowed'"); | 188 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").substringData(x, 0)')
", "'any type allowed'"); |
189 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").substringData(0, x)')
", "'any type allowed'"); | 189 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").substringData(0, x)')
", "'any type allowed'"); |
190 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").insertData(x, \"b\")'
)", "'any type allowed'"); | 190 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").insertData(x, \"b\")'
)", "'any type allowed'"); |
191 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").deleteData(x, 0)')",
"'any type allowed'"); | 191 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").deleteData(x, 0)')",
"'any type allowed'"); |
192 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").deleteData(0, x)')",
"'any type allowed'"); | 192 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").deleteData(0, x)')",
"'any type allowed (but not omitted)'"); |
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'"); | 198 shouldBe("nonNumericPolicy('createCSSMediaRule().insertRule(ruleText, x)')", "'a
ny type allowed'"); |
199 shouldBe("nonNumericPolicy('createCSSMediaRule().deleteRule(x)')", "'any type al
lowed'"); | 199 shouldBe("nonNumericPolicy('createCSSMediaRule().deleteRule(x)')", "'any type al
lowed'"); |
200 | 200 |
201 // CSSRuleList | 201 // CSSRuleList |
202 | 202 |
(...skipping 437 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 |