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

Side by Side Diff: LayoutTests/fast/dom/domstring-attribute-reflection-expected.txt

Issue 371833004: Use [TreatNullAs=EmptyString] for DOMString attributes with [Reflect] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: the fix Created 6 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 Reflected DOMString attribute test for button/@name 1 Reflected DOMString attribute test for button/@name
2 Initial value: 2 Initial value:
3 PASS element.name is "" 3 PASS element.name is ""
4 PASS element.getAttribute("name") is null 4 PASS element.getAttribute("name") is null
5 Setting a value via the IDL attribute: 5 Setting a value via the IDL attribute:
6 PASS element.name = "foo"; element.name is "foo" 6 PASS element.name = "foo"; element.name is "foo"
7 PASS element.getAttribute("name") is "foo" 7 PASS element.getAttribute("name") is "foo"
8 Setting a value via the content attribute: 8 Setting a value via the content attribute:
9 PASS element.setAttribute("name", " bar\n"); element.name is " bar\n" 9 PASS element.setAttribute("name", " bar\n"); element.name is " bar\n"
10 PASS element.getAttribute("name") is " bar\n" 10 PASS element.getAttribute("name") is " bar\n"
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 PASS element.setAttribute("name", undefined); element.name is "undefined" 291 PASS element.setAttribute("name", undefined); element.name is "undefined"
292 PASS element.getAttribute("name") is "undefined" 292 PASS element.getAttribute("name") is "undefined"
293 Setting non-string via the IDL attribute: 293 Setting non-string via the IDL attribute:
294 PASS element.name = 123; element.name is "123" 294 PASS element.name = 123; element.name is "123"
295 PASS element.getAttribute("name") is "123" 295 PASS element.getAttribute("name") is "123"
296 Setting non-string via the content attribute: 296 Setting non-string via the content attribute:
297 PASS element.setAttribute("name", 456); element.name is "456" 297 PASS element.setAttribute("name", 456); element.name is "456"
298 PASS element.getAttribute("name") is "456" 298 PASS element.getAttribute("name") is "456"
299 299
300 300
301 Reflected DOMString attribute test for frame/@marginheight
302 Initial value:
303 PASS element.marginHeight is ""
304 PASS element.getAttribute("marginheight") is null
305 Setting a value via the IDL attribute:
306 PASS element.marginHeight = "foo"; element.marginHeight is "foo"
307 PASS element.getAttribute("marginheight") is "foo"
308 Setting a value via the content attribute:
309 PASS element.setAttribute("marginheight", " bar\n"); element.marginHeight is " b ar\n"
310 PASS element.getAttribute("marginheight") is " bar\n"
311 Setting null via the IDL attribute:
312 PASS element.marginHeight = null; element.marginHeight is ""
313 PASS element.getAttribute("marginheight") is ""
314 Setting null via the content attribute:
315 PASS element.setAttribute("marginheight", null); element.marginHeight is "null"
316 PASS element.getAttribute("marginheight") is "null"
317 Setting undefined via the IDL attribute:
318 PASS element.marginHeight = undefined; element.marginHeight is "undefined"
319 PASS element.getAttribute("marginheight") is "undefined"
320 Setting undefined via the content attribute:
321 PASS element.setAttribute("marginheight", undefined); element.marginHeight is "u ndefined"
322 PASS element.getAttribute("marginheight") is "undefined"
323 Setting non-string via the IDL attribute:
324 PASS element.marginHeight = 123; element.marginHeight is "123"
325 PASS element.getAttribute("marginheight") is "123"
326 Setting non-string via the content attribute:
327 PASS element.setAttribute("marginheight", 456); element.marginHeight is "456"
328 PASS element.getAttribute("marginheight") is "456"
329
330
331 Reflected DOMString attribute test for frame/@marginwidth
332 Initial value:
333 PASS element.marginWidth is ""
334 PASS element.getAttribute("marginwidth") is null
335 Setting a value via the IDL attribute:
336 PASS element.marginWidth = "foo"; element.marginWidth is "foo"
337 PASS element.getAttribute("marginwidth") is "foo"
338 Setting a value via the content attribute:
339 PASS element.setAttribute("marginwidth", " bar\n"); element.marginWidth is " bar \n"
340 PASS element.getAttribute("marginwidth") is " bar\n"
341 Setting null via the IDL attribute:
342 PASS element.marginWidth = null; element.marginWidth is ""
343 PASS element.getAttribute("marginwidth") is ""
344 Setting null via the content attribute:
345 PASS element.setAttribute("marginwidth", null); element.marginWidth is "null"
346 PASS element.getAttribute("marginwidth") is "null"
347 Setting undefined via the IDL attribute:
348 PASS element.marginWidth = undefined; element.marginWidth is "undefined"
349 PASS element.getAttribute("marginwidth") is "undefined"
350 Setting undefined via the content attribute:
351 PASS element.setAttribute("marginwidth", undefined); element.marginWidth is "und efined"
352 PASS element.getAttribute("marginwidth") is "undefined"
353 Setting non-string via the IDL attribute:
354 PASS element.marginWidth = 123; element.marginWidth is "123"
355 PASS element.getAttribute("marginwidth") is "123"
356 Setting non-string via the content attribute:
357 PASS element.setAttribute("marginwidth", 456); element.marginWidth is "456"
358 PASS element.getAttribute("marginwidth") is "456"
359
360
361 Reflected DOMString attribute test for iframe/@marginheight
362 Initial value:
363 PASS element.marginHeight is ""
364 PASS element.getAttribute("marginheight") is null
365 Setting a value via the IDL attribute:
366 PASS element.marginHeight = "foo"; element.marginHeight is "foo"
367 PASS element.getAttribute("marginheight") is "foo"
368 Setting a value via the content attribute:
369 PASS element.setAttribute("marginheight", " bar\n"); element.marginHeight is " b ar\n"
370 PASS element.getAttribute("marginheight") is " bar\n"
371 Setting null via the IDL attribute:
372 PASS element.marginHeight = null; element.marginHeight is ""
373 PASS element.getAttribute("marginheight") is ""
374 Setting null via the content attribute:
375 PASS element.setAttribute("marginheight", null); element.marginHeight is "null"
376 PASS element.getAttribute("marginheight") is "null"
377 Setting undefined via the IDL attribute:
378 PASS element.marginHeight = undefined; element.marginHeight is "undefined"
379 PASS element.getAttribute("marginheight") is "undefined"
380 Setting undefined via the content attribute:
381 PASS element.setAttribute("marginheight", undefined); element.marginHeight is "u ndefined"
382 PASS element.getAttribute("marginheight") is "undefined"
383 Setting non-string via the IDL attribute:
384 PASS element.marginHeight = 123; element.marginHeight is "123"
385 PASS element.getAttribute("marginheight") is "123"
386 Setting non-string via the content attribute:
387 PASS element.setAttribute("marginheight", 456); element.marginHeight is "456"
388 PASS element.getAttribute("marginheight") is "456"
389
390
391 Reflected DOMString attribute test for iframe/@marginwidth
392 Initial value:
393 PASS element.marginWidth is ""
394 PASS element.getAttribute("marginwidth") is null
395 Setting a value via the IDL attribute:
396 PASS element.marginWidth = "foo"; element.marginWidth is "foo"
397 PASS element.getAttribute("marginwidth") is "foo"
398 Setting a value via the content attribute:
399 PASS element.setAttribute("marginwidth", " bar\n"); element.marginWidth is " bar \n"
400 PASS element.getAttribute("marginwidth") is " bar\n"
401 Setting null via the IDL attribute:
402 PASS element.marginWidth = null; element.marginWidth is ""
403 PASS element.getAttribute("marginwidth") is ""
404 Setting null via the content attribute:
405 PASS element.setAttribute("marginwidth", null); element.marginWidth is "null"
406 PASS element.getAttribute("marginwidth") is "null"
407 Setting undefined via the IDL attribute:
408 PASS element.marginWidth = undefined; element.marginWidth is "undefined"
409 PASS element.getAttribute("marginwidth") is "undefined"
410 Setting undefined via the content attribute:
411 PASS element.setAttribute("marginwidth", undefined); element.marginWidth is "und efined"
412 PASS element.getAttribute("marginwidth") is "undefined"
413 Setting non-string via the IDL attribute:
414 PASS element.marginWidth = 123; element.marginWidth is "123"
415 PASS element.getAttribute("marginwidth") is "123"
416 Setting non-string via the content attribute:
417 PASS element.setAttribute("marginwidth", 456); element.marginWidth is "456"
418 PASS element.getAttribute("marginwidth") is "456"
419
420
421 Reflected DOMString attribute test for body/@text
422 Initial value:
423 PASS element.text is ""
424 PASS element.getAttribute("text") is null
425 Setting a value via the IDL attribute:
426 PASS element.text = "foo"; element.text is "foo"
427 PASS element.getAttribute("text") is "foo"
428 Setting a value via the content attribute:
429 PASS element.setAttribute("text", " bar\n"); element.text is " bar\n"
430 PASS element.getAttribute("text") is " bar\n"
431 Setting null via the IDL attribute:
432 PASS element.text = null; element.text is ""
433 PASS element.getAttribute("text") is ""
434 Setting null via the content attribute:
435 PASS element.setAttribute("text", null); element.text is "null"
436 PASS element.getAttribute("text") is "null"
437 Setting undefined via the IDL attribute:
438 PASS element.text = undefined; element.text is "undefined"
439 PASS element.getAttribute("text") is "undefined"
440 Setting undefined via the content attribute:
441 PASS element.setAttribute("text", undefined); element.text is "undefined"
442 PASS element.getAttribute("text") is "undefined"
443 Setting non-string via the IDL attribute:
444 PASS element.text = 123; element.text is "123"
445 PASS element.getAttribute("text") is "123"
446 Setting non-string via the content attribute:
447 PASS element.setAttribute("text", 456); element.text is "456"
448 PASS element.getAttribute("text") is "456"
449
450
451 Reflected DOMString attribute test for body/@link
452 Initial value:
453 PASS element.link is ""
454 PASS element.getAttribute("link") is null
455 Setting a value via the IDL attribute:
456 PASS element.link = "foo"; element.link is "foo"
457 PASS element.getAttribute("link") is "foo"
458 Setting a value via the content attribute:
459 PASS element.setAttribute("link", " bar\n"); element.link is " bar\n"
460 PASS element.getAttribute("link") is " bar\n"
461 Setting null via the IDL attribute:
462 PASS element.link = null; element.link is ""
463 PASS element.getAttribute("link") is ""
464 Setting null via the content attribute:
465 PASS element.setAttribute("link", null); element.link is "null"
466 PASS element.getAttribute("link") is "null"
467 Setting undefined via the IDL attribute:
468 PASS element.link = undefined; element.link is "undefined"
469 PASS element.getAttribute("link") is "undefined"
470 Setting undefined via the content attribute:
471 PASS element.setAttribute("link", undefined); element.link is "undefined"
472 PASS element.getAttribute("link") is "undefined"
473 Setting non-string via the IDL attribute:
474 PASS element.link = 123; element.link is "123"
475 PASS element.getAttribute("link") is "123"
476 Setting non-string via the content attribute:
477 PASS element.setAttribute("link", 456); element.link is "456"
478 PASS element.getAttribute("link") is "456"
479
480
481 Reflected DOMString attribute test for body/@alink
482 Initial value:
483 PASS element.aLink is ""
484 PASS element.getAttribute("alink") is null
485 Setting a value via the IDL attribute:
486 PASS element.aLink = "foo"; element.aLink is "foo"
487 PASS element.getAttribute("alink") is "foo"
488 Setting a value via the content attribute:
489 PASS element.setAttribute("alink", " bar\n"); element.aLink is " bar\n"
490 PASS element.getAttribute("alink") is " bar\n"
491 Setting null via the IDL attribute:
492 PASS element.aLink = null; element.aLink is ""
493 PASS element.getAttribute("alink") is ""
494 Setting null via the content attribute:
495 PASS element.setAttribute("alink", null); element.aLink is "null"
496 PASS element.getAttribute("alink") is "null"
497 Setting undefined via the IDL attribute:
498 PASS element.aLink = undefined; element.aLink is "undefined"
499 PASS element.getAttribute("alink") is "undefined"
500 Setting undefined via the content attribute:
501 PASS element.setAttribute("alink", undefined); element.aLink is "undefined"
502 PASS element.getAttribute("alink") is "undefined"
503 Setting non-string via the IDL attribute:
504 PASS element.aLink = 123; element.aLink is "123"
505 PASS element.getAttribute("alink") is "123"
506 Setting non-string via the content attribute:
507 PASS element.setAttribute("alink", 456); element.aLink is "456"
508 PASS element.getAttribute("alink") is "456"
509
510
511 Reflected DOMString attribute test for body/@vlink
512 Initial value:
513 PASS element.vLink is ""
514 PASS element.getAttribute("vlink") is null
515 Setting a value via the IDL attribute:
516 PASS element.vLink = "foo"; element.vLink is "foo"
517 PASS element.getAttribute("vlink") is "foo"
518 Setting a value via the content attribute:
519 PASS element.setAttribute("vlink", " bar\n"); element.vLink is " bar\n"
520 PASS element.getAttribute("vlink") is " bar\n"
521 Setting null via the IDL attribute:
522 PASS element.vLink = null; element.vLink is ""
523 PASS element.getAttribute("vlink") is ""
524 Setting null via the content attribute:
525 PASS element.setAttribute("vlink", null); element.vLink is "null"
526 PASS element.getAttribute("vlink") is "null"
527 Setting undefined via the IDL attribute:
528 PASS element.vLink = undefined; element.vLink is "undefined"
529 PASS element.getAttribute("vlink") is "undefined"
530 Setting undefined via the content attribute:
531 PASS element.setAttribute("vlink", undefined); element.vLink is "undefined"
532 PASS element.getAttribute("vlink") is "undefined"
533 Setting non-string via the IDL attribute:
534 PASS element.vLink = 123; element.vLink is "123"
535 PASS element.getAttribute("vlink") is "123"
536 Setting non-string via the content attribute:
537 PASS element.setAttribute("vlink", 456); element.vLink is "456"
538 PASS element.getAttribute("vlink") is "456"
539
540
541 Reflected DOMString attribute test for body/@bgcolor
542 Initial value:
543 PASS element.bgColor is ""
544 PASS element.getAttribute("bgcolor") is null
545 Setting a value via the IDL attribute:
546 PASS element.bgColor = "foo"; element.bgColor is "foo"
547 PASS element.getAttribute("bgcolor") is "foo"
548 Setting a value via the content attribute:
549 PASS element.setAttribute("bgcolor", " bar\n"); element.bgColor is " bar\n"
550 PASS element.getAttribute("bgcolor") is " bar\n"
551 Setting null via the IDL attribute:
552 PASS element.bgColor = null; element.bgColor is ""
553 PASS element.getAttribute("bgcolor") is ""
554 Setting null via the content attribute:
555 PASS element.setAttribute("bgcolor", null); element.bgColor is "null"
556 PASS element.getAttribute("bgcolor") is "null"
557 Setting undefined via the IDL attribute:
558 PASS element.bgColor = undefined; element.bgColor is "undefined"
559 PASS element.getAttribute("bgcolor") is "undefined"
560 Setting undefined via the content attribute:
561 PASS element.setAttribute("bgcolor", undefined); element.bgColor is "undefined"
562 PASS element.getAttribute("bgcolor") is "undefined"
563 Setting non-string via the IDL attribute:
564 PASS element.bgColor = 123; element.bgColor is "123"
565 PASS element.getAttribute("bgcolor") is "123"
566 Setting non-string via the content attribute:
567 PASS element.setAttribute("bgcolor", 456); element.bgColor is "456"
568 PASS element.getAttribute("bgcolor") is "456"
569
570
571 Reflected DOMString attribute test for font/@color
572 Initial value:
573 PASS element.color is ""
574 PASS element.getAttribute("color") is null
575 Setting a value via the IDL attribute:
576 PASS element.color = "foo"; element.color is "foo"
577 PASS element.getAttribute("color") is "foo"
578 Setting a value via the content attribute:
579 PASS element.setAttribute("color", " bar\n"); element.color is " bar\n"
580 PASS element.getAttribute("color") is " bar\n"
581 Setting null via the IDL attribute:
582 PASS element.color = null; element.color is ""
583 PASS element.getAttribute("color") is ""
584 Setting null via the content attribute:
585 PASS element.setAttribute("color", null); element.color is "null"
586 PASS element.getAttribute("color") is "null"
587 Setting undefined via the IDL attribute:
588 PASS element.color = undefined; element.color is "undefined"
589 PASS element.getAttribute("color") is "undefined"
590 Setting undefined via the content attribute:
591 PASS element.setAttribute("color", undefined); element.color is "undefined"
592 PASS element.getAttribute("color") is "undefined"
593 Setting non-string via the IDL attribute:
594 PASS element.color = 123; element.color is "123"
595 PASS element.getAttribute("color") is "123"
596 Setting non-string via the content attribute:
597 PASS element.setAttribute("color", 456); element.color is "456"
598 PASS element.getAttribute("color") is "456"
599
600
601 Reflected DOMString attribute test for img/@border
602 Initial value:
603 PASS element.border is ""
604 PASS element.getAttribute("border") is null
605 Setting a value via the IDL attribute:
606 PASS element.border = "foo"; element.border is "foo"
607 PASS element.getAttribute("border") is "foo"
608 Setting a value via the content attribute:
609 PASS element.setAttribute("border", " bar\n"); element.border is " bar\n"
610 PASS element.getAttribute("border") is " bar\n"
611 Setting null via the IDL attribute:
612 PASS element.border = null; element.border is ""
613 PASS element.getAttribute("border") is ""
614 Setting null via the content attribute:
615 PASS element.setAttribute("border", null); element.border is "null"
616 PASS element.getAttribute("border") is "null"
617 Setting undefined via the IDL attribute:
618 PASS element.border = undefined; element.border is "undefined"
619 PASS element.getAttribute("border") is "undefined"
620 Setting undefined via the content attribute:
621 PASS element.setAttribute("border", undefined); element.border is "undefined"
622 PASS element.getAttribute("border") is "undefined"
623 Setting non-string via the IDL attribute:
624 PASS element.border = 123; element.border is "123"
625 PASS element.getAttribute("border") is "123"
626 Setting non-string via the content attribute:
627 PASS element.setAttribute("border", 456); element.border is "456"
628 PASS element.getAttribute("border") is "456"
629
630
631 Reflected DOMString attribute test for object/@border
632 Initial value:
633 PASS element.border is ""
634 PASS element.getAttribute("border") is null
635 Setting a value via the IDL attribute:
636 PASS element.border = "foo"; element.border is "foo"
637 PASS element.getAttribute("border") is "foo"
638 Setting a value via the content attribute:
639 PASS element.setAttribute("border", " bar\n"); element.border is " bar\n"
640 PASS element.getAttribute("border") is " bar\n"
641 Setting null via the IDL attribute:
642 PASS element.border = null; element.border is ""
643 PASS element.getAttribute("border") is ""
644 Setting null via the content attribute:
645 PASS element.setAttribute("border", null); element.border is "null"
646 PASS element.getAttribute("border") is "null"
647 Setting undefined via the IDL attribute:
648 PASS element.border = undefined; element.border is "undefined"
649 PASS element.getAttribute("border") is "undefined"
650 Setting undefined via the content attribute:
651 PASS element.setAttribute("border", undefined); element.border is "undefined"
652 PASS element.getAttribute("border") is "undefined"
653 Setting non-string via the IDL attribute:
654 PASS element.border = 123; element.border is "123"
655 PASS element.getAttribute("border") is "123"
656 Setting non-string via the content attribute:
657 PASS element.setAttribute("border", 456); element.border is "456"
658 PASS element.getAttribute("border") is "456"
659
660
661 Reflected DOMString attribute test for table/@bgcolor
662 Initial value:
663 PASS element.bgColor is ""
664 PASS element.getAttribute("bgcolor") is null
665 Setting a value via the IDL attribute:
666 PASS element.bgColor = "foo"; element.bgColor is "foo"
667 PASS element.getAttribute("bgcolor") is "foo"
668 Setting a value via the content attribute:
669 PASS element.setAttribute("bgcolor", " bar\n"); element.bgColor is " bar\n"
670 PASS element.getAttribute("bgcolor") is " bar\n"
671 Setting null via the IDL attribute:
672 PASS element.bgColor = null; element.bgColor is ""
673 PASS element.getAttribute("bgcolor") is ""
674 Setting null via the content attribute:
675 PASS element.setAttribute("bgcolor", null); element.bgColor is "null"
676 PASS element.getAttribute("bgcolor") is "null"
677 Setting undefined via the IDL attribute:
678 PASS element.bgColor = undefined; element.bgColor is "undefined"
679 PASS element.getAttribute("bgcolor") is "undefined"
680 Setting undefined via the content attribute:
681 PASS element.setAttribute("bgcolor", undefined); element.bgColor is "undefined"
682 PASS element.getAttribute("bgcolor") is "undefined"
683 Setting non-string via the IDL attribute:
684 PASS element.bgColor = 123; element.bgColor is "123"
685 PASS element.getAttribute("bgcolor") is "123"
686 Setting non-string via the content attribute:
687 PASS element.setAttribute("bgcolor", 456); element.bgColor is "456"
688 PASS element.getAttribute("bgcolor") is "456"
689
690
691 Reflected DOMString attribute test for table/@cellpadding
692 Initial value:
693 PASS element.cellPadding is ""
694 PASS element.getAttribute("cellpadding") is null
695 Setting a value via the IDL attribute:
696 PASS element.cellPadding = "foo"; element.cellPadding is "foo"
697 PASS element.getAttribute("cellpadding") is "foo"
698 Setting a value via the content attribute:
699 PASS element.setAttribute("cellpadding", " bar\n"); element.cellPadding is " bar \n"
700 PASS element.getAttribute("cellpadding") is " bar\n"
701 Setting null via the IDL attribute:
702 PASS element.cellPadding = null; element.cellPadding is ""
703 PASS element.getAttribute("cellpadding") is ""
704 Setting null via the content attribute:
705 PASS element.setAttribute("cellpadding", null); element.cellPadding is "null"
706 PASS element.getAttribute("cellpadding") is "null"
707 Setting undefined via the IDL attribute:
708 PASS element.cellPadding = undefined; element.cellPadding is "undefined"
709 PASS element.getAttribute("cellpadding") is "undefined"
710 Setting undefined via the content attribute:
711 PASS element.setAttribute("cellpadding", undefined); element.cellPadding is "und efined"
712 PASS element.getAttribute("cellpadding") is "undefined"
713 Setting non-string via the IDL attribute:
714 PASS element.cellPadding = 123; element.cellPadding is "123"
715 PASS element.getAttribute("cellpadding") is "123"
716 Setting non-string via the content attribute:
717 PASS element.setAttribute("cellpadding", 456); element.cellPadding is "456"
718 PASS element.getAttribute("cellpadding") is "456"
719
720
721 Reflected DOMString attribute test for table/@cellspacing
722 Initial value:
723 PASS element.cellSpacing is ""
724 PASS element.getAttribute("cellspacing") is null
725 Setting a value via the IDL attribute:
726 PASS element.cellSpacing = "foo"; element.cellSpacing is "foo"
727 PASS element.getAttribute("cellspacing") is "foo"
728 Setting a value via the content attribute:
729 PASS element.setAttribute("cellspacing", " bar\n"); element.cellSpacing is " bar \n"
730 PASS element.getAttribute("cellspacing") is " bar\n"
731 Setting null via the IDL attribute:
732 PASS element.cellSpacing = null; element.cellSpacing is ""
733 PASS element.getAttribute("cellspacing") is ""
734 Setting null via the content attribute:
735 PASS element.setAttribute("cellspacing", null); element.cellSpacing is "null"
736 PASS element.getAttribute("cellspacing") is "null"
737 Setting undefined via the IDL attribute:
738 PASS element.cellSpacing = undefined; element.cellSpacing is "undefined"
739 PASS element.getAttribute("cellspacing") is "undefined"
740 Setting undefined via the content attribute:
741 PASS element.setAttribute("cellspacing", undefined); element.cellSpacing is "und efined"
742 PASS element.getAttribute("cellspacing") is "undefined"
743 Setting non-string via the IDL attribute:
744 PASS element.cellSpacing = 123; element.cellSpacing is "123"
745 PASS element.getAttribute("cellspacing") is "123"
746 Setting non-string via the content attribute:
747 PASS element.setAttribute("cellspacing", 456); element.cellSpacing is "456"
748 PASS element.getAttribute("cellspacing") is "456"
749
750
751 Reflected DOMString attribute test for td/@bgcolor
752 Initial value:
753 PASS element.bgColor is ""
754 PASS element.getAttribute("bgcolor") is null
755 Setting a value via the IDL attribute:
756 PASS element.bgColor = "foo"; element.bgColor is "foo"
757 PASS element.getAttribute("bgcolor") is "foo"
758 Setting a value via the content attribute:
759 PASS element.setAttribute("bgcolor", " bar\n"); element.bgColor is " bar\n"
760 PASS element.getAttribute("bgcolor") is " bar\n"
761 Setting null via the IDL attribute:
762 PASS element.bgColor = null; element.bgColor is ""
763 PASS element.getAttribute("bgcolor") is ""
764 Setting null via the content attribute:
765 PASS element.setAttribute("bgcolor", null); element.bgColor is "null"
766 PASS element.getAttribute("bgcolor") is "null"
767 Setting undefined via the IDL attribute:
768 PASS element.bgColor = undefined; element.bgColor is "undefined"
769 PASS element.getAttribute("bgcolor") is "undefined"
770 Setting undefined via the content attribute:
771 PASS element.setAttribute("bgcolor", undefined); element.bgColor is "undefined"
772 PASS element.getAttribute("bgcolor") is "undefined"
773 Setting non-string via the IDL attribute:
774 PASS element.bgColor = 123; element.bgColor is "123"
775 PASS element.getAttribute("bgcolor") is "123"
776 Setting non-string via the content attribute:
777 PASS element.setAttribute("bgcolor", 456); element.bgColor is "456"
778 PASS element.getAttribute("bgcolor") is "456"
779
780
781 Reflected DOMString attribute test for th/@bgcolor
782 Initial value:
783 PASS element.bgColor is ""
784 PASS element.getAttribute("bgcolor") is null
785 Setting a value via the IDL attribute:
786 PASS element.bgColor = "foo"; element.bgColor is "foo"
787 PASS element.getAttribute("bgcolor") is "foo"
788 Setting a value via the content attribute:
789 PASS element.setAttribute("bgcolor", " bar\n"); element.bgColor is " bar\n"
790 PASS element.getAttribute("bgcolor") is " bar\n"
791 Setting null via the IDL attribute:
792 PASS element.bgColor = null; element.bgColor is ""
793 PASS element.getAttribute("bgcolor") is ""
794 Setting null via the content attribute:
795 PASS element.setAttribute("bgcolor", null); element.bgColor is "null"
796 PASS element.getAttribute("bgcolor") is "null"
797 Setting undefined via the IDL attribute:
798 PASS element.bgColor = undefined; element.bgColor is "undefined"
799 PASS element.getAttribute("bgcolor") is "undefined"
800 Setting undefined via the content attribute:
801 PASS element.setAttribute("bgcolor", undefined); element.bgColor is "undefined"
802 PASS element.getAttribute("bgcolor") is "undefined"
803 Setting non-string via the IDL attribute:
804 PASS element.bgColor = 123; element.bgColor is "123"
805 PASS element.getAttribute("bgcolor") is "123"
806 Setting non-string via the content attribute:
807 PASS element.setAttribute("bgcolor", 456); element.bgColor is "456"
808 PASS element.getAttribute("bgcolor") is "456"
809
810
811 Reflected DOMString attribute test for tr/@bgcolor
812 Initial value:
813 PASS element.bgColor is ""
814 PASS element.getAttribute("bgcolor") is null
815 Setting a value via the IDL attribute:
816 PASS element.bgColor = "foo"; element.bgColor is "foo"
817 PASS element.getAttribute("bgcolor") is "foo"
818 Setting a value via the content attribute:
819 PASS element.setAttribute("bgcolor", " bar\n"); element.bgColor is " bar\n"
820 PASS element.getAttribute("bgcolor") is " bar\n"
821 Setting null via the IDL attribute:
822 PASS element.bgColor = null; element.bgColor is ""
823 PASS element.getAttribute("bgcolor") is ""
824 Setting null via the content attribute:
825 PASS element.setAttribute("bgcolor", null); element.bgColor is "null"
826 PASS element.getAttribute("bgcolor") is "null"
827 Setting undefined via the IDL attribute:
828 PASS element.bgColor = undefined; element.bgColor is "undefined"
829 PASS element.getAttribute("bgcolor") is "undefined"
830 Setting undefined via the content attribute:
831 PASS element.setAttribute("bgcolor", undefined); element.bgColor is "undefined"
832 PASS element.getAttribute("bgcolor") is "undefined"
833 Setting non-string via the IDL attribute:
834 PASS element.bgColor = 123; element.bgColor is "123"
835 PASS element.getAttribute("bgcolor") is "123"
836 Setting non-string via the content attribute:
837 PASS element.setAttribute("bgcolor", 456); element.bgColor is "456"
838 PASS element.getAttribute("bgcolor") is "456"
839
840
301 PASS successfullyParsed is true 841 PASS successfullyParsed is true
302 842
303 TEST COMPLETE 843 TEST COMPLETE
304 844
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/domstring-attribute-reflection.html ('k') | Source/core/html/HTMLBodyElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698