View Javadoc
1   /*
2    * Copyright (c) 2002-2025 Gargoyle Software Inc.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * https://www.apache.org/licenses/LICENSE-2.0
8    *
9    * Unless required by applicable law or agreed to in writing, software
10   * distributed under the License is distributed on an "AS IS" BASIS,
11   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12   * See the License for the specific language governing permissions and
13   * limitations under the License.
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   * Tests the result of {@code element.childNodes.length}.
24   *
25   * @author Ahmed Ashour
26   * @author Ronald Brill
27   * @author Marc Guillemot
28   * @author Frank Danek
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       * Test {@link org.htmlunit.html.HtmlAbbreviated}.
58       *
59       * @throws Exception if the test fails
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       * Test {@link org.htmlunit.html.HtmlAcronym}.
69       *
70       * @throws Exception if the test fails
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       * Test {@link org.htmlunit.html.HtmlAnchor}.
80       *
81       * @throws Exception if the test fails
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       * Test {@link org.htmlunit.html.HtmlAddress}.
91       *
92       * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlApplet}.
102      *
103      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlArea}.
113      *
114      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlArticle}.
124      *
125      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlAside}.
135      *
136      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlAudio}.
146      *
147      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlBackgroundSound}.
157      *
158      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlBase}.
168      *
169      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlBaseFont}.
179      *
180      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlBidirectionalIsolation}.
190      *
191      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlBidirectionalOverride}.
201      *
202      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlBig}.
212      *
213      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlBlink}.
223      *
224      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlBlockQuote}.
234      *
235      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlBody}.
245      *
246      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlBold}.
256      *
257      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlBreak}.
267      *
268      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlButton}.
278      *
279      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlCanvas}.
289      *
290      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlCaption}.
300      *
301      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlCenter}.
311      *
312      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlCitation}.
322      *
323      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlCode}.
333      *
334      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlCommand}.
344      *
345      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlDataList}.
357      *
358      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlDefinition}.
368      *
369      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlDefinitionDescription}.
379      *
380      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlDeletedText}.
390      *
391      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlDetails}.
401      *
402      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlDialog}.
412      *
413      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlDirectory}.
423      *
424      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlDivision}.
434      *
435      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlDefinitionList}.
445      *
446      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlDefinitionTerm}.
456      *
457      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlEmbed}.
467      *
468      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlEmphasis}.
478      *
479      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlFieldSet}.
489      *
490      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlFigureCaption}.
500      *
501      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlFigure}.
511      *
512      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlFont}.
522      *
523      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlForm}.
533      *
534      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlFooter}.
544      *
545      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlFrame}.
555      *
556      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlFrameSet}.
566      *
567      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlHeading1}.
577      *
578      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlHeading2}.
588      *
589      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlHeading3}.
599      *
600      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlHeading4}.
610      *
611      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlHeading5}.
621      *
622      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlHeading6}.
632      *
633      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlHead}.
643      *
644      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlHeader}.
654      *
655      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlHorizontalRule}.
665      *
666      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlHtml}.
676      *
677      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlInlineFrame}.
687      *
688      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlImage}.
698      *
699      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlImage}.
709      *
710      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlInsertedText}.
720      *
721      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlIsIndex}.
731      *
732      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlItalic}.
742      *
743      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlKeyboard}.
753      *
754      * @throws Exception if the test fails
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      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlLabel}.
773      *
774      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlLayer}.
784      *
785      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlLegend}.
795      *
796      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlListing}.
806      *
807      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlListItem}.
817      *
818      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlLink}.
828      *
829      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlMain}.
839      *
840      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlMap}.
850      *
851      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlMarquee}.
861      *
862      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlMark}.
872      *
873      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlMenu}.
883      *
884      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlMenuItem}.
894      *
895      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlMeta}.
905      *
906      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlMeter}.
916      *
917      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlMultiColumn}.
927      *
928      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlNav}.
938      *
939      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlNextId}.
949      *
950      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlNoBreak}.
960      *
961      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlNoEmbed}.
971      *
972      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlNoFrames}.
982      *
983      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlNoLayer}.
993      *
994      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlNoScript}.
1004      *
1005      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlObject}.
1015      *
1016      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlOrderedList}.
1026      *
1027      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlOptionGroup}.
1037      *
1038      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlOption}.
1048      *
1049      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlOutput}.
1059      *
1060      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlParagraph}.
1070      *
1071      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlParameter}.
1081      *
1082      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlPlainText}.
1092      *
1093      * @throws Exception if the test fails
1094      */
1095     @Test
1096     @Alerts("1")
1097     public void plaintext() throws Exception {
1098         loadPageVerifyTitle2(test("plaintext"));
1099     }
1100 
1101     /**
1102      * Test {@link org.htmlunit.html.HtmlPreformattedText}.
1103      *
1104      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlProgress}.
1114      *
1115      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlInlineQuotation}.
1125      *
1126      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlRuby}.
1136      *
1137      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlRt}.
1147      *
1148      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlRtc}.
1158      *
1159      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlRb}.
1169      *
1170      * @throws Exception if the test fails
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      * Test HtmlRbc.
1180      *
1181      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlRp}.
1191      *
1192      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlS}.
1202      *
1203      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlSample}.
1213      *
1214      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlScript}.
1224      *
1225      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlSection}.
1235      *
1236      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlSelect}.
1246      *
1247      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlSmall}.
1257      *
1258      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlSource}.
1268      *
1269      * @throws Exception if the test fails
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      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlSpan}.
1288      *
1289      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlStrike}.
1299      *
1300      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlStrong}.
1310      *
1311      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlStyle}.
1321      *
1322      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlSubscript}.
1332      *
1333      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlSummary}.
1343      *
1344      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlSuperscript}.
1354      *
1355      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlSuperscript}.
1365      *
1366      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTable}.
1376      *
1377      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTableColumn}.
1391      *
1392      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTableColumnGroup}.
1402      *
1403      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTableBody}.
1413      *
1414      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTableDataCell}.
1424      *
1425      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTableHeaderCell}.
1435      *
1436      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTableRow}.
1446      *
1447      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTrack}.
1457      *
1458      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTextArea}.
1468      *
1469      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTableFooter}.
1479      *
1480      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTableHeader}.
1490      *
1491      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTeletype}.
1501      *
1502      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTime}.
1512      *
1513      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTitle}.
1523      *
1524      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlUnderlined}.
1534      *
1535      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlUnorderedList}.
1545      *
1546      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlVariable}.
1556      *
1557      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlVideo}.
1567      *
1568      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlWordBreak}.
1578      *
1579      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlExample}.
1589      *
1590      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlInput}.
1600      *
1601      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlData}.
1611      *
1612      * @throws Exception if the test fails
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      * Test HtmlContent.
1622      *
1623      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlPicture}.
1633      *
1634      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTemplate}.
1644      *
1645      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlSlot}.
1655      *
1656      * @throws Exception if the test fails
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      * @throws Exception if the test fails
1666      */
1667     @Test
1668     @Alerts({"3", "2", "2", "3", "2", "2"})
1669     public void arbitrary() throws Exception {
1670         loadPageVerifyTitle2(test("abcdefg"));
1671     }
1672 }