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