Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(778)

Side by Side Diff: LayoutTests/fast/dom/script-tests/non-numeric-values-numeric-parameters.js

Issue 21542002: Make CharacterData::insertData() / deleteData() / replaceData() arguments mandatory (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline fast/dom/characterdata-appendData-argument.html Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 */
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/non-numeric-values-numeric-parameters-expected.txt ('k') | Source/core/dom/CharacterData.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698