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

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

Issue 108063005: Make arguments to Range methods non-optional (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 // NodeIterator 291 // NodeIterator
292 292
293 shouldBe("nonNumericPolicy('document.createNodeIterator(document, x, null, false )')", "'any type allowed'"); 293 shouldBe("nonNumericPolicy('document.createNodeIterator(document, x, null, false )')", "'any type allowed'");
294 294
295 // NodeList 295 // NodeList
296 296
297 shouldBe("nonNumericPolicy('document.getElementsByTagName(\"div\").item(x)')", " 'any type allowed (but not omitted)'"); 297 shouldBe("nonNumericPolicy('document.getElementsByTagName(\"div\").item(x)')", " 'any type allowed (but not omitted)'");
298 298
299 // Range 299 // Range
300 300
301 shouldBe("nonNumericPolicy('document.createRange().setStart(document, x)')", "'a ny type allowed'"); 301 shouldBe("nonNumericPolicy('document.createRange().setStart(document, x)')", "'a ny type allowed (but not omitted)'");
302 shouldBe("nonNumericPolicy('document.createRange().setEnd(document, x)')", "'any type allowed'"); 302 shouldBe("nonNumericPolicy('document.createRange().setEnd(document, x)')", "'any type allowed (but not omitted)'");
303 shouldBe("nonNumericPolicy('document.createRange().comparePoint(document, x)')", "'any type allowed'"); 303 shouldBe("nonNumericPolicy('document.createRange().comparePoint(document, x)')", "'any type allowed (but not omitted)'");
304 shouldBe("nonNumericPolicy('document.createRange().isPointInRange(document, x)') ", "'any type allowed'"); 304 shouldBe("nonNumericPolicy('document.createRange().isPointInRange(document, x)') ", "'any type allowed (but not omitted)'");
305 305
306 // Selection 306 // Selection
307 307
308 shouldBe("nonNumericPolicy('getSelection().collapse(document, x)')", "'any type allowed'"); 308 shouldBe("nonNumericPolicy('getSelection().collapse(document, x)')", "'any type allowed'");
309 shouldBe("nonNumericPolicy('getSelection().setBaseAndExtent(document, x, documen t, 0)')", "'any type allowed'"); 309 shouldBe("nonNumericPolicy('getSelection().setBaseAndExtent(document, x, documen t, 0)')", "'any type allowed'");
310 shouldBe("nonNumericPolicy('getSelection().setBaseAndExtent(document, 0, documen t, x)')", "'any type allowed'"); 310 shouldBe("nonNumericPolicy('getSelection().setBaseAndExtent(document, 0, documen t, x)')", "'any type allowed'");
311 shouldBe("nonNumericPolicy('getSelection().setPosition(document, x)')", "'any ty pe allowed'"); 311 shouldBe("nonNumericPolicy('getSelection().setPosition(document, x)')", "'any ty pe allowed'");
312 shouldBe("nonNumericPolicy('getSelection().extend(document, x)')", "'any type al lowed'"); 312 shouldBe("nonNumericPolicy('getSelection().extend(document, x)')", "'any type al lowed'");
313 shouldBe("nonNumericPolicy('getSelection().getRangeAt(x)')", "'any type allowed' "); 313 shouldBe("nonNumericPolicy('getSelection().getRangeAt(x)')", "'any type allowed' ");
314 314
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 ../../../../WebCore/svg/SVGSVGElement.idl: attribute float curre ntScale 635 ../../../../WebCore/svg/SVGSVGElement.idl: attribute float curre ntScale
636 636
637 ../../../../WebCore/svg/SVGMatrix.idl: attribute double a; 637 ../../../../WebCore/svg/SVGMatrix.idl: attribute double a;
638 ../../../../WebCore/svg/SVGMatrix.idl: attribute double b; 638 ../../../../WebCore/svg/SVGMatrix.idl: attribute double b;
639 ../../../../WebCore/svg/SVGMatrix.idl: attribute double c; 639 ../../../../WebCore/svg/SVGMatrix.idl: attribute double c;
640 ../../../../WebCore/svg/SVGMatrix.idl: attribute double d; 640 ../../../../WebCore/svg/SVGMatrix.idl: attribute double d;
641 ../../../../WebCore/svg/SVGMatrix.idl: attribute double e; 641 ../../../../WebCore/svg/SVGMatrix.idl: attribute double e;
642 ../../../../WebCore/svg/SVGMatrix.idl: attribute double f; 642 ../../../../WebCore/svg/SVGMatrix.idl: attribute double f;
643 643
644 */ 644 */
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/non-numeric-values-numeric-parameters-expected.txt ('k') | Source/core/dom/Range.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698