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

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

Issue 758173002: Make arguments to NamedNodeMap methods non-optional (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tests Created 6 years 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 267
268 shouldBe("nonNumericPolicy('document.createEvent(\"MouseEvent\").initMouseEvent( \"a\", false, false, null, x, 0, 0, 0, 0, false, false, false, false, 0, null)') ", "'any type allowed'"); 268 shouldBe("nonNumericPolicy('document.createEvent(\"MouseEvent\").initMouseEvent( \"a\", false, false, null, x, 0, 0, 0, 0, false, false, false, false, 0, null)') ", "'any type allowed'");
269 shouldBe("nonNumericPolicy('document.createEvent(\"MouseEvent\").initMouseEvent( \"a\", false, false, null, 0, x, 0, 0, 0, false, false, false, false, 0, null)') ", "'any type allowed'"); 269 shouldBe("nonNumericPolicy('document.createEvent(\"MouseEvent\").initMouseEvent( \"a\", false, false, null, 0, x, 0, 0, 0, false, false, false, false, 0, null)') ", "'any type allowed'");
270 shouldBe("nonNumericPolicy('document.createEvent(\"MouseEvent\").initMouseEvent( \"a\", false, false, null, 0, 0, x, 0, 0, false, false, false, false, 0, null)') ", "'any type allowed'"); 270 shouldBe("nonNumericPolicy('document.createEvent(\"MouseEvent\").initMouseEvent( \"a\", false, false, null, 0, 0, x, 0, 0, false, false, false, false, 0, null)') ", "'any type allowed'");
271 shouldBe("nonNumericPolicy('document.createEvent(\"MouseEvent\").initMouseEvent( \"a\", false, false, null, 0, 0, 0, x, 0, false, false, false, false, 0, null)') ", "'any type allowed'"); 271 shouldBe("nonNumericPolicy('document.createEvent(\"MouseEvent\").initMouseEvent( \"a\", false, false, null, 0, 0, 0, x, 0, false, false, false, false, 0, null)') ", "'any type allowed'");
272 shouldBe("nonNumericPolicy('document.createEvent(\"MouseEvent\").initMouseEvent( \"a\", false, false, null, 0, 0, 0, 0, x, false, false, false, false, 0, null)') ", "'any type allowed'"); 272 shouldBe("nonNumericPolicy('document.createEvent(\"MouseEvent\").initMouseEvent( \"a\", false, false, null, 0, 0, 0, 0, x, false, false, false, false, 0, null)') ", "'any type allowed'");
273 shouldBe("nonNumericPolicy('document.createEvent(\"MouseEvent\").initMouseEvent( \"a\", false, false, null, 0, 0, 0, 0, 0, false, false, false, false, x, null)') ", "'any type allowed'"); 273 shouldBe("nonNumericPolicy('document.createEvent(\"MouseEvent\").initMouseEvent( \"a\", false, false, null, 0, 0, 0, 0, 0, false, false, false, false, x, null)') ", "'any type allowed'");
274 274
275 // NamedNodeMap 275 // NamedNodeMap
276 276
277 shouldBe("nonNumericPolicy('document.body.attributes.item(x)')", "'any type allo wed'"); 277 shouldBe("nonNumericPolicy('document.body.attributes.item(x)')", "'any type allo wed (but not omitted)'");
278 278
279 // NodeIterator 279 // NodeIterator
280 280
281 shouldBe("nonNumericPolicy('document.createNodeIterator(document, x, null, false )')", "'any type allowed'"); 281 shouldBe("nonNumericPolicy('document.createNodeIterator(document, x, null, false )')", "'any type allowed'");
282 282
283 // NodeList 283 // NodeList
284 284
285 shouldBe("nonNumericPolicy('document.getElementsByTagName(\"div\").item(x)')", " 'any type allowed'"); 285 shouldBe("nonNumericPolicy('document.getElementsByTagName(\"div\").item(x)')", " 'any type allowed'");
286 286
287 // Range 287 // Range
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 ../../../../WebCore/svg/SVGSVGElement.idl: attribute float curre ntScale 623 ../../../../WebCore/svg/SVGSVGElement.idl: attribute float curre ntScale
624 624
625 ../../../../WebCore/svg/SVGMatrix.idl: attribute double a; 625 ../../../../WebCore/svg/SVGMatrix.idl: attribute double a;
626 ../../../../WebCore/svg/SVGMatrix.idl: attribute double b; 626 ../../../../WebCore/svg/SVGMatrix.idl: attribute double b;
627 ../../../../WebCore/svg/SVGMatrix.idl: attribute double c; 627 ../../../../WebCore/svg/SVGMatrix.idl: attribute double c;
628 ../../../../WebCore/svg/SVGMatrix.idl: attribute double d; 628 ../../../../WebCore/svg/SVGMatrix.idl: attribute double d;
629 ../../../../WebCore/svg/SVGMatrix.idl: attribute double e; 629 ../../../../WebCore/svg/SVGMatrix.idl: attribute double e;
630 ../../../../WebCore/svg/SVGMatrix.idl: attribute double f; 630 ../../../../WebCore/svg/SVGMatrix.idl: attribute double f;
631 631
632 */ 632 */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698