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

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

Issue 23602016: Make index argument to HTMLOptionsCollection.remove() mandatory (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 shouldBe("nonNumericPolicy('document.images.item(x)')", "'any type allowed'"); 238 shouldBe("nonNumericPolicy('document.images.item(x)')", "'any type allowed'");
239 239
240 // HTMLInputElement 240 // HTMLInputElement
241 241
242 shouldBe("nonNumericPolicy('document.createElement(\"input\").setSelectionRange( x, 0)')", "'any type allowed'"); 242 shouldBe("nonNumericPolicy('document.createElement(\"input\").setSelectionRange( x, 0)')", "'any type allowed'");
243 shouldBe("nonNumericPolicy('document.createElement(\"input\").setSelectionRange( 0, x)')", "'any type allowed'"); 243 shouldBe("nonNumericPolicy('document.createElement(\"input\").setSelectionRange( 0, x)')", "'any type allowed'");
244 244
245 // HTMLOptionsCollection 245 // HTMLOptionsCollection
246 246
247 shouldBe("nonNumericPolicy('createHTMLOptionsCollection().add(document.createEle ment(\"option\"), x)')", "'any type allowed'"); 247 shouldBe("nonNumericPolicy('createHTMLOptionsCollection().add(document.createEle ment(\"option\"), x)')", "'any type allowed'");
248 shouldBe("nonNumericPolicy('createHTMLOptionsCollection().remove(x)')", "'any ty pe allowed'"); 248 shouldBe("nonNumericPolicy('createHTMLOptionsCollection().remove(x)')", "'any ty pe allowed (but not omitted)'");
249 249
250 // HTMLSelectElement 250 // HTMLSelectElement
251 251
252 shouldBe("nonNumericPolicy('createHTMLSelectElement().remove(x)')", "'any type a llowed'"); 252 shouldBe("nonNumericPolicy('createHTMLSelectElement().remove(x)')", "'any type a llowed'");
253 shouldBe("nonNumericPolicy('createHTMLSelectElement().item(x)')", "'any type all owed (but not omitted)'"); 253 shouldBe("nonNumericPolicy('createHTMLSelectElement().item(x)')", "'any type all owed (but not omitted)'");
254 254
255 // HTMLTableElement 255 // HTMLTableElement
256 256
257 shouldBe("nonNumericPolicy('createHTMLTableElement().insertRow(x)')", "'any type allowed'"); 257 shouldBe("nonNumericPolicy('createHTMLTableElement().insertRow(x)')", "'any type allowed'");
258 shouldBe("nonNumericPolicy('createHTMLTableElement().deleteRow(x)')", "'any type allowed'"); 258 shouldBe("nonNumericPolicy('createHTMLTableElement().deleteRow(x)')", "'any type allowed'");
(...skipping 381 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

Powered by Google App Engine
This is Rietveld 408576698