1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package org.htmlunit.general;
16
17 import org.htmlunit.WebDriverTestCase;
18 import org.htmlunit.junit.BrowserRunner;
19 import org.htmlunit.junit.annotation.Alerts;
20 import org.htmlunit.junit.annotation.HtmlUnitNYI;
21 import org.junit.Test;
22 import org.junit.runner.RunWith;
23
24
25
26
27
28
29
30
31
32 @RunWith(BrowserRunner.class)
33 public class ElementChildNodesTest extends WebDriverTestCase {
34
35 private static String test(final String tagName) {
36 return DOCTYPE_HTML
37 + "<html><head>\n"
38 + "<script>\n"
39 + LOG_TITLE_FUNCTION
40 + "function test() {\n"
41 + " for (var i = 1; i <= 6; i++) {\n"
42 + " var element = document.getElementById('p' + i);\n"
43 + " if (element) {\n"
44 + " log(element.childNodes.length);\n"
45 + " }\n"
46 + " }\n"
47 + "}\n"
48 + "</script>\n"
49 + "</head><body onload='test()'>\n"
50 + "<p id='p1'> <" + tagName + "></" + tagName + "> </p>\n"
51 + "<p id='p2'><" + tagName + "></" + tagName + "> </p>\n"
52 + "<p id='p3'> <" + tagName + "></" + tagName + "></p>\n"
53 + "<p id='p4'> <" + tagName + ">var x</" + tagName + "> </p>\n"
54 + "<p id='p5'><" + tagName + ">var x</" + tagName + "> </p>\n"
55 + "<p id='p6'> <" + tagName + ">var x</" + tagName + "></p>\n"
56 + "</body></html>";
57 }
58
59
60
61
62
63
64 @Test
65 @Alerts({"3", "2", "2", "3", "2", "2"})
66 public void abbr() throws Exception {
67 loadPageVerifyTitle2(test("abbr"));
68 }
69
70
71
72
73
74
75 @Test
76 @Alerts({"3", "2", "2", "3", "2", "2"})
77 public void acronym() throws Exception {
78 loadPageVerifyTitle2(test("acronym"));
79 }
80
81
82
83
84
85
86 @Test
87 @Alerts({"3", "2", "2", "3", "2", "2"})
88 public void a() throws Exception {
89 loadPageVerifyTitle2(test("a"));
90 }
91
92
93
94
95
96
97 @Test
98 @Alerts({"1", "0", "1", "1", "0", "1"})
99 public void address() throws Exception {
100 loadPageVerifyTitle2(test("address"));
101 }
102
103
104
105
106
107
108 @Test
109 @Alerts({"3", "2", "2", "3", "2", "2"})
110 public void applet() throws Exception {
111 loadPageVerifyTitle2(test("applet"));
112 }
113
114
115
116
117
118
119 @Test
120 @Alerts({"3", "2", "2", "3", "2", "3"})
121 public void area() throws Exception {
122 loadPageVerifyTitle2(test("area"));
123 }
124
125
126
127
128
129
130 @Test
131 @Alerts({"1", "0", "1", "1", "0", "1"})
132 public void article() throws Exception {
133 loadPageVerifyTitle2(test("article"));
134 }
135
136
137
138
139
140
141 @Test
142 @Alerts({"1", "0", "1", "1", "0", "1"})
143 public void aside() throws Exception {
144 loadPageVerifyTitle2(test("aside"));
145 }
146
147
148
149
150
151
152 @Test
153 @Alerts({"3", "2", "2", "3", "2", "2"})
154 public void audio() throws Exception {
155 loadPageVerifyTitle2(test("audio"));
156 }
157
158
159
160
161
162
163 @Test
164 @Alerts({"3", "2", "2", "3", "2", "3"})
165 public void bgsound() throws Exception {
166 loadPageVerifyTitle2(test("bgsound"));
167 }
168
169
170
171
172
173
174 @Test
175 @Alerts({"3", "2", "2", "3", "2", "3"})
176 public void base() throws Exception {
177 loadPageVerifyTitle2(test("base"));
178 }
179
180
181
182
183
184
185 @Test
186 @Alerts({"3", "2", "2", "3", "2", "3"})
187 public void basefont() throws Exception {
188 loadPageVerifyTitle2(test("basefont"));
189 }
190
191
192
193
194
195
196 @Test
197 @Alerts({"3", "2", "2", "3", "2", "2"})
198 public void bdi() throws Exception {
199 loadPageVerifyTitle2(test("bdi"));
200 }
201
202
203
204
205
206
207 @Test
208 @Alerts({"3", "2", "2", "3", "2", "2"})
209 public void bdo() throws Exception {
210 loadPageVerifyTitle2(test("bdo"));
211 }
212
213
214
215
216
217
218 @Test
219 @Alerts({"3", "2", "2", "3", "2", "2"})
220 public void big() throws Exception {
221 loadPageVerifyTitle2(test("big"));
222 }
223
224
225
226
227
228
229 @Test
230 @Alerts({"3", "2", "2", "3", "2", "2"})
231 public void blink() throws Exception {
232 loadPageVerifyTitle2(test("blink"));
233 }
234
235
236
237
238
239
240 @Test
241 @Alerts({"1", "0", "1", "1", "0", "1"})
242 public void blockquote() throws Exception {
243 loadPageVerifyTitle2(test("blockquote"));
244 }
245
246
247
248
249
250
251 @Test
252 @Alerts({"1", "1", "1", "1", "1", "1"})
253 public void body() throws Exception {
254 loadPageVerifyTitle2(test("body"));
255 }
256
257
258
259
260
261
262 @Test
263 @Alerts({"3", "2", "2", "3", "2", "2"})
264 public void b() throws Exception {
265 loadPageVerifyTitle2(test("b"));
266 }
267
268
269
270
271
272
273 @Test
274 @Alerts({"4", "3", "3", "5", "4", "4"})
275 public void br() throws Exception {
276 loadPageVerifyTitle2(test("br"));
277 }
278
279
280
281
282
283
284 @Test
285 @Alerts({"3", "2", "2", "3", "2", "2"})
286 public void button() throws Exception {
287 loadPageVerifyTitle2(test("button"));
288 }
289
290
291
292
293
294
295 @Test
296 @Alerts({"3", "2", "2", "3", "2", "2"})
297 public void canvas() throws Exception {
298 loadPageVerifyTitle2(test("canvas"));
299 }
300
301
302
303
304
305
306 @Test
307 @Alerts({"1", "1", "1", "1", "1", "1"})
308 public void caption() throws Exception {
309 loadPageVerifyTitle2(test("caption"));
310 }
311
312
313
314
315
316
317 @Test
318 @Alerts({"1", "0", "1", "1", "0", "1"})
319 public void center() throws Exception {
320 loadPageVerifyTitle2(test("center"));
321 }
322
323
324
325
326
327
328 @Test
329 @Alerts({"3", "2", "2", "3", "2", "2"})
330 public void cite() throws Exception {
331 loadPageVerifyTitle2(test("cite"));
332 }
333
334
335
336
337
338
339 @Test
340 @Alerts({"3", "2", "2", "3", "2", "2"})
341 public void code() throws Exception {
342 loadPageVerifyTitle2(test("code"));
343 }
344
345
346
347
348
349
350 @Test
351 @Alerts(DEFAULT = {"3", "2", "2", "3", "2", "3"},
352 FF = {"3", "2", "2", "3", "2", "2"},
353 FF_ESR = {"3", "2", "2", "3", "2", "2"})
354 public void command() throws Exception {
355 loadPageVerifyTitle2(test("command"));
356 }
357
358
359
360
361
362
363 @Test
364 @Alerts({"3", "2", "2", "3", "2", "2"})
365 public void datalist() throws Exception {
366 loadPageVerifyTitle2(test("datalist"));
367 }
368
369
370
371
372
373
374 @Test
375 @Alerts({"3", "2", "2", "3", "2", "2"})
376 public void dfn() throws Exception {
377 loadPageVerifyTitle2(test("dfn"));
378 }
379
380
381
382
383
384
385 @Test
386 @Alerts({"1", "0", "1", "1", "0", "1"})
387 public void dd() throws Exception {
388 loadPageVerifyTitle2(test("dd"));
389 }
390
391
392
393
394
395
396 @Test
397 @Alerts({"3", "2", "2", "3", "2", "2"})
398 public void del() throws Exception {
399 loadPageVerifyTitle2(test("del"));
400 }
401
402
403
404
405
406
407 @Test
408 @Alerts({"1", "0", "1", "1", "0", "1"})
409 public void details() throws Exception {
410 loadPageVerifyTitle2(test("details"));
411 }
412
413
414
415
416
417
418 @Test
419 @Alerts({"1", "0", "1", "1", "0", "1"})
420 public void dialog() throws Exception {
421 loadPageVerifyTitle2(test("dialog"));
422 }
423
424
425
426
427
428
429 @Test
430 @Alerts({"1", "0", "1", "1", "0", "1"})
431 public void dir() throws Exception {
432 loadPageVerifyTitle2(test("dir"));
433 }
434
435
436
437
438
439
440 @Test
441 @Alerts({"1", "0", "1", "1", "0", "1"})
442 public void div() throws Exception {
443 loadPageVerifyTitle2(test("div"));
444 }
445
446
447
448
449
450
451 @Test
452 @Alerts({"1", "0", "1", "1", "0", "1"})
453 public void dl() throws Exception {
454 loadPageVerifyTitle2(test("dl"));
455 }
456
457
458
459
460
461
462 @Test
463 @Alerts({"1", "0", "1", "1", "0", "1"})
464 public void dt() throws Exception {
465 loadPageVerifyTitle2(test("dt"));
466 }
467
468
469
470
471
472
473 @Test
474 @Alerts({"3", "2", "2", "3", "2", "3"})
475 public void embed() throws Exception {
476 loadPageVerifyTitle2(test("embed"));
477 }
478
479
480
481
482
483
484 @Test
485 @Alerts({"3", "2", "2", "3", "2", "2"})
486 public void em() throws Exception {
487 loadPageVerifyTitle2(test("em"));
488 }
489
490
491
492
493
494
495 @Test
496 @Alerts({"1", "0", "1", "1", "0", "1"})
497 public void fieldset() throws Exception {
498 loadPageVerifyTitle2(test("fieldset"));
499 }
500
501
502
503
504
505
506 @Test
507 @Alerts({"1", "0", "1", "1", "0", "1"})
508 public void figcaption() throws Exception {
509 loadPageVerifyTitle2(test("figcaption"));
510 }
511
512
513
514
515
516
517 @Test
518 @Alerts({"1", "0", "1", "1", "0", "1"})
519 public void figure() throws Exception {
520 loadPageVerifyTitle2(test("figure"));
521 }
522
523
524
525
526
527
528 @Test
529 @Alerts({"3", "2", "2", "3", "2", "2"})
530 public void font() throws Exception {
531 loadPageVerifyTitle2(test("font"));
532 }
533
534
535
536
537
538
539 @Test
540 @Alerts({"1", "0", "1", "1", "0", "1"})
541 public void form() throws Exception {
542 loadPageVerifyTitle2(test("form"));
543 }
544
545
546
547
548
549
550 @Test
551 @Alerts({"1", "0", "1", "1", "0", "1"})
552 public void footer() throws Exception {
553 loadPageVerifyTitle2(test("footer"));
554 }
555
556
557
558
559
560
561 @Test
562 @Alerts({"1", "1", "1", "1", "1", "1"})
563 public void frame() throws Exception {
564 loadPageVerifyTitle2(test("frame"));
565 }
566
567
568
569
570
571
572 @Test
573 @Alerts({"1", "1", "1", "1", "1", "1"})
574 public void frameset() throws Exception {
575 loadPageVerifyTitle2(test("frameset"));
576 }
577
578
579
580
581
582
583 @Test
584 @Alerts({"1", "0", "1", "1", "0", "1"})
585 public void h1() throws Exception {
586 loadPageVerifyTitle2(test("h1"));
587 }
588
589
590
591
592
593
594 @Test
595 @Alerts({"1", "0", "1", "1", "0", "1"})
596 public void h2() throws Exception {
597 loadPageVerifyTitle2(test("h2"));
598 }
599
600
601
602
603
604
605 @Test
606 @Alerts({"1", "0", "1", "1", "0", "1"})
607 public void h3() throws Exception {
608 loadPageVerifyTitle2(test("h3"));
609 }
610
611
612
613
614
615
616 @Test
617 @Alerts({"1", "0", "1", "1", "0", "1"})
618 public void h4() throws Exception {
619 loadPageVerifyTitle2(test("h4"));
620 }
621
622
623
624
625
626
627 @Test
628 @Alerts({"1", "0", "1", "1", "0", "1"})
629 public void h5() throws Exception {
630 loadPageVerifyTitle2(test("h5"));
631 }
632
633
634
635
636
637
638 @Test
639 @Alerts({"1", "0", "1", "1", "0", "1"})
640 public void h6() throws Exception {
641 loadPageVerifyTitle2(test("h6"));
642 }
643
644
645
646
647
648
649 @Test
650 @Alerts({"1", "1", "1", "1", "1", "1"})
651 public void head() throws Exception {
652 loadPageVerifyTitle2(test("head"));
653 }
654
655
656
657
658
659
660 @Test
661 @Alerts({"1", "0", "1", "1", "0", "1"})
662 public void header() throws Exception {
663 loadPageVerifyTitle2(test("header"));
664 }
665
666
667
668
669
670
671 @Test
672 @Alerts({"1", "0", "1", "1", "0", "1"})
673 public void hr() throws Exception {
674 loadPageVerifyTitle2(test("hr"));
675 }
676
677
678
679
680
681
682 @Test
683 @Alerts({"1", "1", "1", "1", "1", "1"})
684 public void html() throws Exception {
685 loadPageVerifyTitle2(test("html"));
686 }
687
688
689
690
691
692
693 @Test
694 @Alerts({"3", "2", "2", "3", "2", "2"})
695 public void iframe() throws Exception {
696 loadPageVerifyTitle2(test("iframe"));
697 }
698
699
700
701
702
703
704 @Test
705 @Alerts({"3", "2", "2", "3", "2", "3"})
706 public void image() throws Exception {
707 loadPageVerifyTitle2(test("image"));
708 }
709
710
711
712
713
714
715 @Test
716 @Alerts({"3", "2", "2", "3", "2", "3"})
717 public void img() throws Exception {
718 loadPageVerifyTitle2(test("img"));
719 }
720
721
722
723
724
725
726 @Test
727 @Alerts({"3", "2", "2", "3", "2", "2"})
728 public void ins() throws Exception {
729 loadPageVerifyTitle2(test("ins"));
730 }
731
732
733
734
735
736
737 @Test
738 @Alerts({"3", "2", "2", "3", "2", "2"})
739 public void isindex() throws Exception {
740 loadPageVerifyTitle2(test("isindex"));
741 }
742
743
744
745
746
747
748 @Test
749 @Alerts({"3", "2", "2", "3", "2", "2"})
750 public void i() throws Exception {
751 loadPageVerifyTitle2(test("i"));
752 }
753
754
755
756
757
758
759 @Test
760 @Alerts({"3", "2", "2", "3", "2", "2"})
761 public void kbd() throws Exception {
762 loadPageVerifyTitle2(test("kbd"));
763 }
764
765
766
767
768 @Test
769 @Alerts({"3", "2", "2", "3", "2", "3"})
770 public void keygen() throws Exception {
771 loadPageVerifyTitle2(test("keygen"));
772 }
773
774
775
776
777
778
779 @Test
780 @Alerts({"3", "2", "2", "3", "2", "2"})
781 public void label() throws Exception {
782 loadPageVerifyTitle2(test("label"));
783 }
784
785
786
787
788
789
790 @Test
791 @Alerts({"3", "2", "2", "3", "2", "2"})
792 public void layer() throws Exception {
793 loadPageVerifyTitle2(test("layer"));
794 }
795
796
797
798
799
800
801 @Test
802 @Alerts({"3", "2", "2", "3", "2", "2"})
803 public void legend() throws Exception {
804 loadPageVerifyTitle2(test("legend"));
805 }
806
807
808
809
810
811
812 @Test
813 @Alerts({"1", "0", "1", "1", "0", "1"})
814 public void listing() throws Exception {
815 loadPageVerifyTitle2(test("listing"));
816 }
817
818
819
820
821
822
823 @Test
824 @Alerts({"1", "0", "1", "1", "0", "1"})
825 public void li() throws Exception {
826 loadPageVerifyTitle2(test("li"));
827 }
828
829
830
831
832
833
834 @Test
835 @Alerts({"3", "2", "2", "3", "2", "3"})
836 public void link() throws Exception {
837 loadPageVerifyTitle2(test("link"));
838 }
839
840
841
842
843
844
845 @Test
846 @Alerts({"1", "0", "1", "1", "0", "1"})
847 public void main() throws Exception {
848 loadPageVerifyTitle2(test("main"));
849 }
850
851
852
853
854
855
856 @Test
857 @Alerts({"3", "2", "2", "3", "2", "2"})
858 public void map() throws Exception {
859 loadPageVerifyTitle2(test("map"));
860 }
861
862
863
864
865
866
867 @Test
868 @Alerts({"3", "2", "2", "3", "2", "2"})
869 public void marquee() throws Exception {
870 loadPageVerifyTitle2(test("marquee"));
871 }
872
873
874
875
876
877
878 @Test
879 @Alerts({"3", "2", "2", "3", "2", "2"})
880 public void mark() throws Exception {
881 loadPageVerifyTitle2(test("mark"));
882 }
883
884
885
886
887
888
889 @Test
890 @Alerts({"1", "0", "1", "1", "0", "1"})
891 public void menu() throws Exception {
892 loadPageVerifyTitle2(test("menu"));
893 }
894
895
896
897
898
899
900 @Test
901 @Alerts({"3", "2", "2", "3", "2", "2"})
902 public void menuitem() throws Exception {
903 loadPageVerifyTitle2(test("menuitem"));
904 }
905
906
907
908
909
910
911 @Test
912 @Alerts({"3", "2", "2", "3", "2", "3"})
913 public void meta() throws Exception {
914 loadPageVerifyTitle2(test("meta"));
915 }
916
917
918
919
920
921
922 @Test
923 @Alerts({"3", "2", "2", "3", "2", "2"})
924 public void meter() throws Exception {
925 loadPageVerifyTitle2(test("meter"));
926 }
927
928
929
930
931
932
933 @Test
934 @Alerts({"3", "2", "2", "3", "2", "2"})
935 public void multicol() throws Exception {
936 loadPageVerifyTitle2(test("multicol"));
937 }
938
939
940
941
942
943
944 @Test
945 @Alerts({"1", "0", "1", "1", "0", "1"})
946 public void nav() throws Exception {
947 loadPageVerifyTitle2(test("nav"));
948 }
949
950
951
952
953
954
955 @Test
956 @Alerts({"3", "2", "2", "3", "2", "2"})
957 public void nextid() throws Exception {
958 loadPageVerifyTitle2(test("nextid"));
959 }
960
961
962
963
964
965
966 @Test
967 @Alerts({"3", "2", "2", "3", "2", "2"})
968 public void nobr() throws Exception {
969 loadPageVerifyTitle2(test("nobr"));
970 }
971
972
973
974
975
976
977 @Test
978 @Alerts({"3", "2", "2", "3", "2", "2"})
979 public void noembed() throws Exception {
980 loadPageVerifyTitle2(test("noembed"));
981 }
982
983
984
985
986
987
988 @Test
989 @Alerts({"3", "2", "2", "3", "2", "2"})
990 public void noframes() throws Exception {
991 loadPageVerifyTitle2(test("noframes"));
992 }
993
994
995
996
997
998
999 @Test
1000 @Alerts({"3", "2", "2", "3", "2", "2"})
1001 public void nolayer() throws Exception {
1002 loadPageVerifyTitle2(test("nolayer"));
1003 }
1004
1005
1006
1007
1008
1009
1010 @Test
1011 @Alerts({"3", "2", "2", "3", "2", "2"})
1012 public void noscript() throws Exception {
1013 loadPageVerifyTitle2(test("noscript"));
1014 }
1015
1016
1017
1018
1019
1020
1021 @Test
1022 @Alerts({"3", "2", "2", "3", "2", "2"})
1023 public void object() throws Exception {
1024 loadPageVerifyTitle2(test("object"));
1025 }
1026
1027
1028
1029
1030
1031
1032 @Test
1033 @Alerts({"1", "0", "1", "1", "0", "1"})
1034 public void ol() throws Exception {
1035 loadPageVerifyTitle2(test("ol"));
1036 }
1037
1038
1039
1040
1041
1042
1043 @Test
1044 @Alerts({"3", "2", "2", "3", "2", "2"})
1045 public void optgroup() throws Exception {
1046 loadPageVerifyTitle2(test("optgroup"));
1047 }
1048
1049
1050
1051
1052
1053
1054 @Test
1055 @Alerts({"3", "2", "2", "3", "2", "2"})
1056 public void option() throws Exception {
1057 loadPageVerifyTitle2(test("option"));
1058 }
1059
1060
1061
1062
1063
1064
1065 @Test
1066 @Alerts({"3", "2", "2", "3", "2", "2"})
1067 public void output() throws Exception {
1068 loadPageVerifyTitle2(test("output"));
1069 }
1070
1071
1072
1073
1074
1075
1076 @Test
1077 @Alerts({"1", "0", "1", "1", "0", "1"})
1078 public void p() throws Exception {
1079 loadPageVerifyTitle2(test("p"));
1080 }
1081
1082
1083
1084
1085
1086
1087 @Test
1088 @Alerts({"3", "2", "2", "3", "2", "3"})
1089 public void param() throws Exception {
1090 loadPageVerifyTitle2(test("param"));
1091 }
1092
1093
1094
1095
1096
1097
1098 @Test
1099 @Alerts("1")
1100 public void plaintext() throws Exception {
1101 loadPageVerifyTitle2(test("plaintext"));
1102 }
1103
1104
1105
1106
1107
1108
1109 @Test
1110 @Alerts({"1", "0", "1", "1", "0", "1"})
1111 public void pre() throws Exception {
1112 loadPageVerifyTitle2(test("pre"));
1113 }
1114
1115
1116
1117
1118
1119
1120 @Test
1121 @Alerts({"3", "2", "2", "3", "2", "2"})
1122 public void progress() throws Exception {
1123 loadPageVerifyTitle2(test("progress"));
1124 }
1125
1126
1127
1128
1129
1130
1131 @Test
1132 @Alerts({"3", "2", "2", "3", "2", "2"})
1133 public void q() throws Exception {
1134 loadPageVerifyTitle2(test("q"));
1135 }
1136
1137
1138
1139
1140
1141
1142 @Test
1143 @Alerts({"3", "2", "2", "3", "2", "2"})
1144 public void ruby() throws Exception {
1145 loadPageVerifyTitle2(test("ruby"));
1146 }
1147
1148
1149
1150
1151
1152
1153 @Test
1154 @Alerts({"3", "2", "2", "3", "2", "2"})
1155 public void rt() throws Exception {
1156 loadPageVerifyTitle2(test("rt"));
1157 }
1158
1159
1160
1161
1162
1163
1164 @Test
1165 @Alerts({"3", "2", "2", "3", "2", "2"})
1166 public void rtc() throws Exception {
1167 loadPageVerifyTitle2(test("rtc"));
1168 }
1169
1170
1171
1172
1173
1174
1175 @Test
1176 @Alerts({"3", "2", "2", "3", "2", "2"})
1177 public void rb() throws Exception {
1178 loadPageVerifyTitle2(test("rb"));
1179 }
1180
1181
1182
1183
1184
1185
1186 @Test
1187 @Alerts({"3", "2", "2", "3", "2", "2"})
1188 public void rbc() throws Exception {
1189 loadPageVerifyTitle2(test("rbc"));
1190 }
1191
1192
1193
1194
1195
1196
1197 @Test
1198 @Alerts({"3", "2", "2", "3", "2", "2"})
1199 public void rp() throws Exception {
1200 loadPageVerifyTitle2(test("rp"));
1201 }
1202
1203
1204
1205
1206
1207
1208 @Test
1209 @Alerts({"3", "2", "2", "3", "2", "2"})
1210 public void s() throws Exception {
1211 loadPageVerifyTitle2(test("s"));
1212 }
1213
1214
1215
1216
1217
1218
1219 @Test
1220 @Alerts({"3", "2", "2", "3", "2", "2"})
1221 public void samp() throws Exception {
1222 loadPageVerifyTitle2(test("samp"));
1223 }
1224
1225
1226
1227
1228
1229
1230 @Test
1231 @Alerts({"3", "2", "2", "3", "2", "2"})
1232 public void script() throws Exception {
1233 loadPageVerifyTitle2(test("script"));
1234 }
1235
1236
1237
1238
1239
1240
1241 @Test
1242 @Alerts({"1", "0", "1", "1", "0", "1"})
1243 public void section() throws Exception {
1244 loadPageVerifyTitle2(test("section"));
1245 }
1246
1247
1248
1249
1250
1251
1252 @Test
1253 @Alerts({"3", "2", "2", "3", "2", "2"})
1254 public void select() throws Exception {
1255 loadPageVerifyTitle2(test("select"));
1256 }
1257
1258
1259
1260
1261
1262
1263 @Test
1264 @Alerts({"3", "2", "2", "3", "2", "2"})
1265 public void small() throws Exception {
1266 loadPageVerifyTitle2(test("small"));
1267 }
1268
1269
1270
1271
1272
1273
1274 @Test
1275 @Alerts({"3", "2", "2", "3", "2", "3"})
1276 public void source() throws Exception {
1277 loadPageVerifyTitle2(test("source"));
1278 }
1279
1280
1281
1282
1283 @Test
1284 @Alerts({"3", "2", "2", "3", "2", "2"})
1285 public void spacer() throws Exception {
1286 loadPageVerifyTitle2(test("spacer"));
1287 }
1288
1289
1290
1291
1292
1293
1294 @Test
1295 @Alerts({"3", "2", "2", "3", "2", "2"})
1296 public void span() throws Exception {
1297 loadPageVerifyTitle2(test("span"));
1298 }
1299
1300
1301
1302
1303
1304
1305 @Test
1306 @Alerts({"3", "2", "2", "3", "2", "2"})
1307 public void strike() throws Exception {
1308 loadPageVerifyTitle2(test("strike"));
1309 }
1310
1311
1312
1313
1314
1315
1316 @Test
1317 @Alerts({"3", "2", "2", "3", "2", "2"})
1318 public void strong() throws Exception {
1319 loadPageVerifyTitle2(test("strong"));
1320 }
1321
1322
1323
1324
1325
1326
1327 @Test
1328 @Alerts({"3", "2", "2", "3", "2", "2"})
1329 public void style() throws Exception {
1330 loadPageVerifyTitle2(test("style"));
1331 }
1332
1333
1334
1335
1336
1337
1338 @Test
1339 @Alerts({"3", "2", "2", "3", "2", "2"})
1340 public void sub() throws Exception {
1341 loadPageVerifyTitle2(test("sub"));
1342 }
1343
1344
1345
1346
1347
1348
1349 @Test
1350 @Alerts({"1", "0", "1", "1", "0", "1"})
1351 public void summary() throws Exception {
1352 loadPageVerifyTitle2(test("summary"));
1353 }
1354
1355
1356
1357
1358
1359
1360 @Test
1361 @Alerts({"3", "2", "2", "3", "2", "2"})
1362 public void sup() throws Exception {
1363 loadPageVerifyTitle2(test("sup"));
1364 }
1365
1366
1367
1368
1369
1370
1371 @Test
1372 @Alerts({"3", "2", "2", "3", "2", "2"})
1373 public void svg() throws Exception {
1374 loadPageVerifyTitle2(test("svg"));
1375 }
1376
1377
1378
1379
1380
1381
1382 @Test
1383 @Alerts({"1", "0", "1", "1", "0", "1"})
1384 @HtmlUnitNYI(CHROME = {"3", "2", "2", "3", "3", "2"},
1385 EDGE = {"3", "2", "2", "3", "3", "2"},
1386 FF = {"3", "2", "2", "3", "3", "2"},
1387 FF_ESR = {"3", "2", "2", "3", "3", "2"})
1388 public void table() throws Exception {
1389 loadPageVerifyTitle2(test("table"));
1390 }
1391
1392
1393
1394
1395
1396
1397 @Test
1398 @Alerts({"1", "1", "1", "1", "1", "1"})
1399 public void col() throws Exception {
1400 loadPageVerifyTitle2(test("col"));
1401 }
1402
1403
1404
1405
1406
1407
1408 @Test
1409 @Alerts({"1", "1", "1", "1", "1", "1"})
1410 public void colgroup() throws Exception {
1411 loadPageVerifyTitle2(test("colgroup"));
1412 }
1413
1414
1415
1416
1417
1418
1419 @Test
1420 @Alerts({"1", "1", "1", "1", "1", "1"})
1421 public void tbody() throws Exception {
1422 loadPageVerifyTitle2(test("tbody"));
1423 }
1424
1425
1426
1427
1428
1429
1430 @Test
1431 @Alerts({"1", "1", "1", "1", "1", "1"})
1432 public void td() throws Exception {
1433 loadPageVerifyTitle2(test("td"));
1434 }
1435
1436
1437
1438
1439
1440
1441 @Test
1442 @Alerts({"1", "1", "1", "1", "1", "1"})
1443 public void th() throws Exception {
1444 loadPageVerifyTitle2(test("th"));
1445 }
1446
1447
1448
1449
1450
1451
1452 @Test
1453 @Alerts({"1", "1", "1", "1", "1", "1"})
1454 public void tr() throws Exception {
1455 loadPageVerifyTitle2(test("tr"));
1456 }
1457
1458
1459
1460
1461
1462
1463 @Test
1464 @Alerts({"3", "2", "2", "3", "2", "3"})
1465 public void track() throws Exception {
1466 loadPageVerifyTitle2(test("track"));
1467 }
1468
1469
1470
1471
1472
1473
1474 @Test
1475 @Alerts({"3", "2", "2", "3", "2", "2"})
1476 public void textarea() throws Exception {
1477 loadPageVerifyTitle2(test("textarea"));
1478 }
1479
1480
1481
1482
1483
1484
1485 @Test
1486 @Alerts({"1", "1", "1", "1", "1", "1"})
1487 public void tfoot() throws Exception {
1488 loadPageVerifyTitle2(test("tfoot"));
1489 }
1490
1491
1492
1493
1494
1495
1496 @Test
1497 @Alerts({"1", "1", "1", "1", "1", "1"})
1498 public void thead() throws Exception {
1499 loadPageVerifyTitle2(test("thead"));
1500 }
1501
1502
1503
1504
1505
1506
1507 @Test
1508 @Alerts({"3", "2", "2", "3", "2", "2"})
1509 public void tt() throws Exception {
1510 loadPageVerifyTitle2(test("tt"));
1511 }
1512
1513
1514
1515
1516
1517
1518 @Test
1519 @Alerts({"3", "2", "2", "3", "2", "2"})
1520 public void time() throws Exception {
1521 loadPageVerifyTitle2(test("time"));
1522 }
1523
1524
1525
1526
1527
1528
1529 @Test
1530 @Alerts({"3", "2", "2", "3", "2", "2"})
1531 public void title() throws Exception {
1532 loadPageVerifyTitle2(test("title"));
1533 }
1534
1535
1536
1537
1538
1539
1540 @Test
1541 @Alerts({"3", "2", "2", "3", "2", "2"})
1542 public void u() throws Exception {
1543 loadPageVerifyTitle2(test("u"));
1544 }
1545
1546
1547
1548
1549
1550
1551 @Test
1552 @Alerts({"1", "0", "1", "1", "0", "1"})
1553 public void ul() throws Exception {
1554 loadPageVerifyTitle2(test("ul"));
1555 }
1556
1557
1558
1559
1560
1561
1562 @Test
1563 @Alerts({"3", "2", "2", "3", "2", "2"})
1564 public void var() throws Exception {
1565 loadPageVerifyTitle2(test("var"));
1566 }
1567
1568
1569
1570
1571
1572
1573 @Test
1574 @Alerts({"3", "2", "2", "3", "2", "2"})
1575 public void video() throws Exception {
1576 loadPageVerifyTitle2(test("video"));
1577 }
1578
1579
1580
1581
1582
1583
1584 @Test
1585 @Alerts({"3", "2", "2", "3", "2", "3"})
1586 public void wbr() throws Exception {
1587 loadPageVerifyTitle2(test("wbr"));
1588 }
1589
1590
1591
1592
1593
1594
1595 @Test
1596 @Alerts({"1", "0", "1", "1", "0", "1"})
1597 public void xmp() throws Exception {
1598 loadPageVerifyTitle2(test("xmp"));
1599 }
1600
1601
1602
1603
1604
1605
1606 @Test
1607 @Alerts({"3", "2", "2", "3", "2", "3"})
1608 public void input() throws Exception {
1609 loadPageVerifyTitle2(test("input"));
1610 }
1611
1612
1613
1614
1615
1616
1617 @Test
1618 @Alerts({"3", "2", "2", "3", "2", "2"})
1619 public void data() throws Exception {
1620 loadPageVerifyTitle2(test("data"));
1621 }
1622
1623
1624
1625
1626
1627
1628 @Test
1629 @Alerts({"3", "2", "2", "3", "2", "2"})
1630 public void content() throws Exception {
1631 loadPageVerifyTitle2(test("content"));
1632 }
1633
1634
1635
1636
1637
1638
1639 @Test
1640 @Alerts({"3", "2", "2", "3", "2", "2"})
1641 public void picture() throws Exception {
1642 loadPageVerifyTitle2(test("picture"));
1643 }
1644
1645
1646
1647
1648
1649
1650 @Test
1651 @Alerts({"3", "2", "2", "3", "2", "2"})
1652 public void template() throws Exception {
1653 loadPageVerifyTitle2(test("template"));
1654 }
1655
1656
1657
1658
1659
1660
1661 @Test
1662 @Alerts({"3", "2", "2", "3", "2", "2"})
1663 public void slot() throws Exception {
1664 loadPageVerifyTitle2(test("slot"));
1665 }
1666
1667
1668
1669
1670 @Test
1671 @Alerts({"3", "2", "2", "3", "2", "2"})
1672 public void arbitrary() throws Exception {
1673 loadPageVerifyTitle2(test("abcdefg"));
1674 }
1675 }