| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  165 } |  165 } | 
|  166  |  166  | 
|  167 function createHTMLTableRowElement() |  167 function createHTMLTableRowElement() | 
|  168 { |  168 { | 
|  169     var table = document.createElement("table"); |  169     var table = document.createElement("table"); | 
|  170     var row = table.insertRow(0); |  170     var row = table.insertRow(0); | 
|  171     row.insertCell(0); |  171     row.insertCell(0); | 
|  172     return row; |  172     return row; | 
|  173 } |  173 } | 
|  174  |  174  | 
 |  175 function createCanvasElement() | 
 |  176 { | 
 |  177     return document.createElement("canvas"); | 
 |  178 } | 
 |  179  | 
|  175 // CharacterData |  180 // CharacterData | 
|  176  |  181  | 
|  177 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").substringData(x, 0)')
     ", "'any type allowed'"); |  182 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").substringData(x, 0)')
     ", "'any type allowed'"); | 
|  178 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").substringData(0, x)')
     ", "'any type allowed (but not omitted)'"); |  183 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").substringData(0, x)')
     ", "'any type allowed (but not omitted)'"); | 
|  179 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").insertData(x, \"b\")'
     )", "'any type allowed'"); |  184 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").insertData(x, \"b\")'
     )", "'any type allowed'"); | 
|  180 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").deleteData(x, 0)')", 
     "'any type allowed'"); |  185 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").deleteData(x, 0)')", 
     "'any type allowed'"); | 
|  181 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").deleteData(0, x)')", 
     "'any type allowed (but not omitted)'"); |  186 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").deleteData(0, x)')", 
     "'any type allowed (but not omitted)'"); | 
|  182 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").replaceData(x, 0, \"b
     \")')", "'any type allowed'"); |  187 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").replaceData(x, 0, \"b
     \")')", "'any type allowed'"); | 
|  183 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").replaceData(0, x, \"b
     \")')", "'any type allowed'"); |  188 shouldBe("nonNumericPolicy('document.createTextNode(\"a\").replaceData(0, x, \"b
     \")')", "'any type allowed'"); | 
|  184  |  189  | 
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  248 // HTMLTableSectionElement |  253 // HTMLTableSectionElement | 
|  249  |  254  | 
|  250 shouldBe("nonNumericPolicy('createHTMLTableSectionElement().insertRow(x)')", "'a
     ny type allowed'"); |  255 shouldBe("nonNumericPolicy('createHTMLTableSectionElement().insertRow(x)')", "'a
     ny type allowed'"); | 
|  251 shouldBe("nonNumericPolicy('createHTMLTableSectionElement().deleteRow(x)')", "'a
     ny type allowed (but not omitted)'"); |  256 shouldBe("nonNumericPolicy('createHTMLTableSectionElement().deleteRow(x)')", "'a
     ny type allowed (but not omitted)'"); | 
|  252  |  257  | 
|  253 // HTMLInputElement |  258 // HTMLInputElement | 
|  254  |  259  | 
|  255 shouldBe("nonNumericPolicy('document.createElement(\"textarea\").setSelectionRan
     ge(x, 0)')", "'any type allowed'"); |  260 shouldBe("nonNumericPolicy('document.createElement(\"textarea\").setSelectionRan
     ge(x, 0)')", "'any type allowed'"); | 
|  256 shouldBe("nonNumericPolicy('document.createElement(\"textarea\").setSelectionRan
     ge(0, x)')", "'any type allowed'"); |  261 shouldBe("nonNumericPolicy('document.createElement(\"textarea\").setSelectionRan
     ge(0, x)')", "'any type allowed'"); | 
|  257  |  262  | 
 |  263 // HTMLCanvasElement | 
 |  264  | 
 |  265 shouldBe("nonNumericPolicy('createCanvasElement().getContext(x)')", "'any type a
     llowed (but not omitted)'"); | 
 |  266  | 
|  258 // KeyboardEvent |  267 // KeyboardEvent | 
|  259  |  268  | 
|  260 shouldBe("nonNumericPolicy('document.createEvent(\"KeyboardEvent\").initKeyboard
     Event(\"a\", false, false, null, \"b\", x, false, false, false, false, false)')"
     , "'any type allowed'"); |  269 shouldBe("nonNumericPolicy('document.createEvent(\"KeyboardEvent\").initKeyboard
     Event(\"a\", false, false, null, \"b\", x, false, false, false, false, false)')"
     , "'any type allowed'"); | 
|  261  |  270  | 
|  262 // MediaList |  271 // MediaList | 
|  263  |  272  | 
|  264 shouldBe("nonNumericPolicy('createMediaList().item(x)')", "'any type allowed (bu
     t not omitted)'"); |  273 shouldBe("nonNumericPolicy('createMediaList().item(x)')", "'any type allowed (bu
     t not omitted)'"); | 
|  265  |  274  | 
|  266 // MouseEvent |  275 // MouseEvent | 
|  267  |  276  | 
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  622 ../../../../WebCore/svg/SVGSVGElement.idl:                 attribute float curre
     ntScale |  631 ../../../../WebCore/svg/SVGSVGElement.idl:                 attribute float curre
     ntScale | 
|  623  |  632  | 
|  624 ../../../../WebCore/svg/SVGMatrix.idl:        attribute double a; |  633 ../../../../WebCore/svg/SVGMatrix.idl:        attribute double a; | 
|  625 ../../../../WebCore/svg/SVGMatrix.idl:        attribute double b; |  634 ../../../../WebCore/svg/SVGMatrix.idl:        attribute double b; | 
|  626 ../../../../WebCore/svg/SVGMatrix.idl:        attribute double c; |  635 ../../../../WebCore/svg/SVGMatrix.idl:        attribute double c; | 
|  627 ../../../../WebCore/svg/SVGMatrix.idl:        attribute double d; |  636 ../../../../WebCore/svg/SVGMatrix.idl:        attribute double d; | 
|  628 ../../../../WebCore/svg/SVGMatrix.idl:        attribute double e; |  637 ../../../../WebCore/svg/SVGMatrix.idl:        attribute double e; | 
|  629 ../../../../WebCore/svg/SVGMatrix.idl:        attribute double f; |  638 ../../../../WebCore/svg/SVGMatrix.idl:        attribute double f; | 
|  630  |  639  | 
|  631 */ |  640 */ | 
| OLD | NEW |