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

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

Issue 143453010: Have getElementsByClassName() / getElementsByTagName*() return an HTMLCollection (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 // NamedNodeMap 287 // NamedNodeMap
288 288
289 shouldBe("nonNumericPolicy('document.body.attributes.item(x)')", "'any type allo wed'"); 289 shouldBe("nonNumericPolicy('document.body.attributes.item(x)')", "'any type allo wed'");
290 290
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'");
298 298
299 // Range 299 // Range
300 300
301 shouldBe("nonNumericPolicy('document.createRange().setStart(document, x)')", "'a ny type allowed (but not omitted)'"); 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 (but not omitted)'"); 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 (but not omitted)'"); 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 (but not omitted)'"); 304 shouldBe("nonNumericPolicy('document.createRange().isPointInRange(document, x)') ", "'any type allowed (but not omitted)'");
305 305
306 // Selection 306 // Selection
307 307
(...skipping 327 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/script-tests/domListEnumeration.js ('k') | LayoutTests/fast/dom/wrapper-classes.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698