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

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

Issue 1221473004: The index argument for HTMLTableRowElement deleteCell() api should not be optional (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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
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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 shouldBe("nonNumericPolicy('createHTMLSelectElement().item(x)')", "'any type all owed (but not omitted)'"); 236 shouldBe("nonNumericPolicy('createHTMLSelectElement().item(x)')", "'any type all owed (but not omitted)'");
237 237
238 // HTMLTableElement 238 // HTMLTableElement
239 239
240 shouldBe("nonNumericPolicy('createHTMLTableElement().insertRow(x)')", "'any type allowed'"); 240 shouldBe("nonNumericPolicy('createHTMLTableElement().insertRow(x)')", "'any type allowed'");
241 shouldBe("nonNumericPolicy('createHTMLTableElement().deleteRow(x)')", "'any type allowed (but not omitted)'"); 241 shouldBe("nonNumericPolicy('createHTMLTableElement().deleteRow(x)')", "'any type allowed (but not omitted)'");
242 242
243 // HTMLTableRowElement 243 // HTMLTableRowElement
244 244
245 shouldBe("nonNumericPolicy('createHTMLTableRowElement().insertCell(x)')", "'any type allowed'"); 245 shouldBe("nonNumericPolicy('createHTMLTableRowElement().insertCell(x)')", "'any type allowed'");
246 shouldBe("nonNumericPolicy('createHTMLTableRowElement().deleteCell(x)')", "'any type allowed'"); 246 shouldBe("nonNumericPolicy('createHTMLTableRowElement().deleteCell(x)')", "'any type allowed (but not omitted)'");
247 247
248 // HTMLTableSectionElement 248 // HTMLTableSectionElement
249 249
250 shouldBe("nonNumericPolicy('createHTMLTableSectionElement().insertRow(x)')", "'a ny type allowed'"); 250 shouldBe("nonNumericPolicy('createHTMLTableSectionElement().insertRow(x)')", "'a ny type allowed'");
251 shouldBe("nonNumericPolicy('createHTMLTableSectionElement().deleteRow(x)')", "'a ny type allowed (but not omitted)'"); 251 shouldBe("nonNumericPolicy('createHTMLTableSectionElement().deleteRow(x)')", "'a ny type allowed (but not omitted)'");
252 252
253 // HTMLInputElement 253 // HTMLInputElement
254 254
255 shouldBe("nonNumericPolicy('document.createElement(\"textarea\").setSelectionRan ge(x, 0)')", "'any type allowed'"); 255 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'"); 256 shouldBe("nonNumericPolicy('document.createElement(\"textarea\").setSelectionRan ge(0, x)')", "'any type allowed'");
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 ../../../../WebCore/svg/SVGSVGElement.idl: attribute float curre ntScale 622 ../../../../WebCore/svg/SVGSVGElement.idl: attribute float curre ntScale
623 623
624 ../../../../WebCore/svg/SVGMatrix.idl: attribute double a; 624 ../../../../WebCore/svg/SVGMatrix.idl: attribute double a;
625 ../../../../WebCore/svg/SVGMatrix.idl: attribute double b; 625 ../../../../WebCore/svg/SVGMatrix.idl: attribute double b;
626 ../../../../WebCore/svg/SVGMatrix.idl: attribute double c; 626 ../../../../WebCore/svg/SVGMatrix.idl: attribute double c;
627 ../../../../WebCore/svg/SVGMatrix.idl: attribute double d; 627 ../../../../WebCore/svg/SVGMatrix.idl: attribute double d;
628 ../../../../WebCore/svg/SVGMatrix.idl: attribute double e; 628 ../../../../WebCore/svg/SVGMatrix.idl: attribute double e;
629 ../../../../WebCore/svg/SVGMatrix.idl: attribute double f; 629 ../../../../WebCore/svg/SVGMatrix.idl: attribute double f;
630 630
631 */ 631 */
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/non-numeric-values-numeric-parameters-expected.txt ('k') | Source/core/html/HTMLTableRowElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698