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

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

Issue 21834002: HTMLSelectElement.item() does not behave according to specification (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move test as advised 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
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'");
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'"); 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'");
259 259
260 // HTMLTableRowElement 260 // HTMLTableRowElement
261 261
262 shouldBe("nonNumericPolicy('createHTMLTableRowElement().insertCell(x)')", "'any type allowed'"); 262 shouldBe("nonNumericPolicy('createHTMLTableRowElement().insertCell(x)')", "'any type allowed'");
263 shouldBe("nonNumericPolicy('createHTMLTableRowElement().deleteCell(x)')", "'any type allowed'"); 263 shouldBe("nonNumericPolicy('createHTMLTableRowElement().deleteCell(x)')", "'any type allowed'");
(...skipping 376 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/html/HTMLSelectElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698