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.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   * Tests the result of {@code element.childNodes.length}.
26   *
27   * @author Ahmed Ashour
28   * @author Ronald Brill
29   * @author Marc Guillemot
30   * @author Frank Danek
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       * Test {@link org.htmlunit.html.HtmlAbbreviated}.
61       *
62       * @throws Exception if the test fails
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       * Test {@link org.htmlunit.html.HtmlAcronym}.
72       *
73       * @throws Exception if the test fails
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       * Test {@link org.htmlunit.html.HtmlAnchor}.
83       *
84       * @throws Exception if the test fails
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       * Test {@link org.htmlunit.html.HtmlAddress}.
94       *
95       * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlApplet}.
105      *
106      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlArea}.
116      *
117      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlArticle}.
127      *
128      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlAside}.
138      *
139      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlAudio}.
149      *
150      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlBackgroundSound}.
160      *
161      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlBase}.
171      *
172      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlBaseFont}.
182      *
183      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlBidirectionalIsolation}.
193      *
194      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlBidirectionalOverride}.
204      *
205      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlBig}.
215      *
216      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlBlink}.
226      *
227      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlBlockQuote}.
237      *
238      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlBody}.
248      *
249      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlBold}.
259      *
260      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlBreak}.
270      *
271      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlButton}.
281      *
282      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlCanvas}.
292      *
293      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlCaption}.
303      *
304      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlCenter}.
314      *
315      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlCitation}.
325      *
326      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlCode}.
336      *
337      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlCommand}.
347      *
348      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlDataList}.
360      *
361      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlDefinition}.
371      *
372      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlDefinitionDescription}.
382      *
383      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlDeletedText}.
393      *
394      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlDetails}.
404      *
405      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlDialog}.
415      *
416      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlDirectory}.
426      *
427      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlDivision}.
437      *
438      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlDefinitionList}.
448      *
449      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlDefinitionTerm}.
459      *
460      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlEmbed}.
470      *
471      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlEmphasis}.
481      *
482      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlFieldSet}.
492      *
493      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlFigureCaption}.
503      *
504      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlFigure}.
514      *
515      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlFont}.
525      *
526      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlForm}.
536      *
537      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlFooter}.
547      *
548      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlFrame}.
558      *
559      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlFrameSet}.
569      *
570      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlHeading1}.
580      *
581      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlHeading2}.
591      *
592      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlHeading3}.
602      *
603      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlHeading4}.
613      *
614      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlHeading5}.
624      *
625      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlHeading6}.
635      *
636      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlHead}.
646      *
647      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlHeader}.
657      *
658      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlHorizontalRule}.
668      *
669      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlHtml}.
679      *
680      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlInlineFrame}.
690      *
691      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlImage}.
701      *
702      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlImage}.
712      *
713      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlInsertedText}.
723      *
724      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlIsIndex}.
734      *
735      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlItalic}.
745      *
746      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlKeyboard}.
756      *
757      * @throws Exception if the test fails
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      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlLabel}.
776      *
777      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlLayer}.
787      *
788      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlLegend}.
798      *
799      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlListing}.
809      *
810      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlListItem}.
820      *
821      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlLink}.
831      *
832      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlMain}.
842      *
843      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlMap}.
853      *
854      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlMarquee}.
864      *
865      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlMark}.
875      *
876      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlMenu}.
886      *
887      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlMenuItem}.
897      *
898      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlMeta}.
908      *
909      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlMeter}.
919      *
920      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlMultiColumn}.
930      *
931      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlNav}.
941      *
942      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlNextId}.
952      *
953      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlNoBreak}.
963      *
964      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlNoEmbed}.
974      *
975      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlNoFrames}.
985      *
986      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlNoLayer}.
996      *
997      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlNoScript}.
1007      *
1008      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlObject}.
1018      *
1019      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlOrderedList}.
1029      *
1030      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlOptionGroup}.
1040      *
1041      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlOption}.
1051      *
1052      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlOutput}.
1062      *
1063      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlParagraph}.
1073      *
1074      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlParameter}.
1084      *
1085      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlPlainText}.
1095      *
1096      * @throws Exception if the test fails
1097      */
1098     @Test
1099     @Alerts("1")
1100     public void plaintext() throws Exception {
1101         loadPageVerifyTitle2(test("plaintext"));
1102     }
1103 
1104     /**
1105      * Test {@link org.htmlunit.html.HtmlPreformattedText}.
1106      *
1107      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlProgress}.
1117      *
1118      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlInlineQuotation}.
1128      *
1129      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlRuby}.
1139      *
1140      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlRt}.
1150      *
1151      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlRtc}.
1161      *
1162      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlRb}.
1172      *
1173      * @throws Exception if the test fails
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      * Test HtmlRbc.
1183      *
1184      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlRp}.
1194      *
1195      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlS}.
1205      *
1206      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlSample}.
1216      *
1217      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlScript}.
1227      *
1228      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlSection}.
1238      *
1239      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlSelect}.
1249      *
1250      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlSmall}.
1260      *
1261      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlSource}.
1271      *
1272      * @throws Exception if the test fails
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      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlSpan}.
1291      *
1292      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlStrike}.
1302      *
1303      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlStrong}.
1313      *
1314      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlStyle}.
1324      *
1325      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlSubscript}.
1335      *
1336      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlSummary}.
1346      *
1347      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlSuperscript}.
1357      *
1358      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlSuperscript}.
1368      *
1369      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTable}.
1379      *
1380      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTableColumn}.
1394      *
1395      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTableColumnGroup}.
1405      *
1406      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTableBody}.
1416      *
1417      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTableDataCell}.
1427      *
1428      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTableHeaderCell}.
1438      *
1439      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTableRow}.
1449      *
1450      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTrack}.
1460      *
1461      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTextArea}.
1471      *
1472      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTableFooter}.
1482      *
1483      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTableHeader}.
1493      *
1494      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTeletype}.
1504      *
1505      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTime}.
1515      *
1516      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTitle}.
1526      *
1527      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlUnderlined}.
1537      *
1538      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlUnorderedList}.
1548      *
1549      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlVariable}.
1559      *
1560      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlVideo}.
1570      *
1571      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlWordBreak}.
1581      *
1582      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlExample}.
1592      *
1593      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlInput}.
1603      *
1604      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlData}.
1614      *
1615      * @throws Exception if the test fails
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      * Test HtmlContent.
1625      *
1626      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlPicture}.
1636      *
1637      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlTemplate}.
1647      *
1648      * @throws Exception if the test fails
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      * Test {@link org.htmlunit.html.HtmlSlot}.
1658      *
1659      * @throws Exception if the test fails
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      * @throws Exception if the test fails
1669      */
1670     @Test
1671     @Alerts({"3", "2", "2", "3", "2", "2"})
1672     public void arbitrary() throws Exception {
1673         loadPageVerifyTitle2(test("abcdefg"));
1674     }
1675 }