1   /*
2    *  Java HTML Tidy - JTidy
3    *  HTML parser and pretty printer
4    *
5    *  Copyright (c) 1998-2000 World Wide Web Consortium (Massachusetts
6    *  Institute of Technology, Institut National de Recherche en
7    *  Informatique et en Automatique, Keio University). All Rights
8    *  Reserved.
9    *
10   *  Contributing Author(s):
11   *
12   *     Dave Raggett <dsr@w3.org>
13   *     Andy Quick <ac.quick@sympatico.ca> (translation to Java)
14   *     Gary L Peskin <garyp@firstech.com> (Java development)
15   *     Sami Lempinen <sami@lempinen.net> (release management)
16   *     Fabrizio Giustina <fgiust at users.sourceforge.net>
17   *
18   *  The contributing author(s) would like to thank all those who
19   *  helped with testing, bug fixes, and patience.  This wouldn't
20   *  have been possible without all of you.
21   *
22   *  COPYRIGHT NOTICE:
23   * 
24   *  This software and documentation is provided "as is," and
25   *  the copyright holders and contributing author(s) make no
26   *  representations or warranties, express or implied, including
27   *  but not limited to, warranties of merchantability or fitness
28   *  for any particular purpose or that the use of the software or
29   *  documentation will not infringe any third party patents,
30   *  copyrights, trademarks or other rights. 
31   *
32   *  The copyright holders and contributing author(s) will not be
33   *  liable for any direct, indirect, special or consequential damages
34   *  arising out of any use of the software or documentation, even if
35   *  advised of the possibility of such damage.
36   *
37   *  Permission is hereby granted to use, copy, modify, and distribute
38   *  this source code, or portions hereof, documentation and executables,
39   *  for any purpose, without fee, subject to the following restrictions:
40   *
41   *  1. The origin of this source code must not be misrepresented.
42   *  2. Altered versions must be plainly marked as such and must
43   *     not be misrepresented as being the original source.
44   *  3. This Copyright notice may not be removed or altered from any
45   *     source or altered source distribution.
46   * 
47   *  The copyright holders and contributing author(s) specifically
48   *  permit, without fee, and encourage the use of this source code
49   *  as a component for supporting the Hypertext Markup Language in
50   *  commercial products. If you use this source code in a product,
51   *  acknowledgment is not required but would be appreciated.
52   *
53   */
54  package org.w3c.tidy;
55  
56  /**
57   * Testcase for Tidy resolved bugs (wrong output).
58   * <p>
59   * see <code>http://sourceforge.net/support/tracker.php?aid=(item number)</code>
60   * </p>
61   * @author fgiust
62   * @version $Revision: 779 $ ($Author: fgiust $)
63   */
64  public class TidyOutputBugsTest extends TidyTestCase
65  {
66  
67      /**
68       * Instantiate a new Test case.
69       * @param name test name
70       */
71      public TidyOutputBugsTest(String name)
72      {
73          super(name);
74      }
75  
76      /**
77       * test for Tidy [427812] : Reprocessing OBJECT removes PARAM.
78       * @throws Exception any exception generated during the test
79       */
80      public void test427812() throws Exception
81      {
82          executeTidyTest("427812.xhtml");
83      }
84  
85      /**
86       * test for Tidy [427662] : BLOCK/INLINE before TABLE parsed wrong.
87       * @throws Exception any exception generated during the test
88       */
89      public void test427662() throws Exception
90      {
91          executeTidyTest("427662.html");
92      }
93  
94      /**
95       * test for Tidy [427677] : TrimInitialSpace() can trim too much.
96       * @throws Exception any exception generated during the test
97       */
98      public void test427677() throws Exception
99      {
100         executeTidyTest("427677.html");
101     }
102 
103     /**
104      * test for Tidy [427633] : Line endings not supported correctly.
105      * @throws Exception any exception generated during the test
106      */
107     public void test427633() throws Exception
108     {
109         // check line endings
110         executeTidyTest("427633.html");
111     }
112 
113     /**
114      * test for Tidy [427819] : OPTION w/illegal FONT eats whitespace.
115      * @throws Exception any exception generated during the test
116      */
117     public void test427819() throws Exception
118     {
119         executeTidyTest("427819.html");
120     }
121 
122     /**
123      * test for Tidy [427820] : indent config options ignored for &lt;BR>. [fixed]
124      * @throws Exception any exception generated during the test
125      */
126     public void test427820() throws Exception
127     {
128         executeTidyTest("427820.html");
129     }
130 
131     /**
132      * test for Tidy [427821] : XHTML TRANSITIONAL doctype set wrongly.
133      * @throws Exception any exception generated during the test
134      */
135     public void test427821() throws Exception
136     {
137         executeTidyTest("427821.html");
138     }
139 
140     /**
141      * test for Tidy [427822] : PopInLine() doesn't check stack.
142      * @throws Exception any exception generated during the test
143      */
144     public void test427822() throws Exception
145     {
146         // should be already fixed in jtidy
147         executeTidyTest("427822.html");
148     }
149 
150     /**
151      * test for Tidy [427823] : Multiple &lt;BODY&gt;'s in &lt;NOFRAMES&gt; allowed.
152      * @throws Exception any exception generated during the test
153      */
154     public void test427823() throws Exception
155     {
156         executeTidyTest("427823.html");
157     }
158 
159     /**
160      * test for Tidy [427825] : Test user defined tags.
161      * @throws Exception any exception generated during the test
162      */
163     public void test427825() throws Exception
164     {
165         executeTidyTest("427825.html");
166     }
167 
168     /**
169      * test for Tidy [427826] : Script source needs escaping/CDATA section.
170      * @todo HIGH priority
171      * @throws Exception any exception generated during the test
172      */
173     public void test427826() throws Exception
174     {
175         executeTidyTest("427826.html");
176     }
177 
178     /**
179      * test for Tidy [427830] : Tidy uses an incorrect XHTML 1.0 Namespace, even if the correct namespace is given.
180      * @throws Exception any exception generated during the test
181      */
182     public void test427830() throws Exception
183     {
184         executeTidyTest("427830.html");
185     }
186 
187     /**
188      * test for Tidy [427833] : Uppercase &amp;#X; escape sequences ignored.
189      * @todo high priority
190      * @throws Exception any exception generated during the test
191      */
192     public void test427833() throws Exception
193     {
194         executeTidyTest("427833.html");
195     }
196 
197     /**
198      * test for Tidy [427835] : DTD not inserted, but DTD URI Namespace.
199      * @throws Exception any exception generated during the test
200      */
201     public void test427835() throws Exception
202     {
203         executeTidyTest("427835.html");
204     }
205 
206     /**
207      * test for Tidy [427836] : OBJECT should be wrapped in BODY.
208      * @throws Exception any exception generated during the test
209      */
210     public void test427836() throws Exception
211     {
212         executeTidyTest("427836.html");
213     }
214 
215     /**
216      * test for Tidy [427837] : No encoding specified in XML output.
217      * @throws Exception any exception generated during the test
218      */
219     public void test427837() throws Exception
220     {
221         executeTidyTest("427837.xml");
222     }
223 
224     /**
225      * test for Tidy [427838] : Name Anchor thrown away.
226      * @throws Exception any exception generated during the test
227      */
228     public void test427838() throws Exception
229     {
230         executeTidyTest("427838.html");
231     }
232 
233     /**
234      * test for Tidy [427839] : Output DOCTYPE/Namespace decl separately. [fixed]
235      * @throws Exception any exception generated during the test
236      */
237     public void test427839() throws Exception
238     {
239         executeTidyTest("427839.html");
240     }
241 
242     /**
243      * test for Tidy [427845] : Doctypes are output on multiple lines.
244      * @throws Exception any exception generated during the test
245      */
246     public void test427845() throws Exception
247     {
248         // still 2 lines on tidy?
249         executeTidyTest("427845.html");
250     }
251 
252     /**
253      * test for Tidy [427846] : Blank char inserted after first char. [fixed]
254      * @throws Exception any exception generated during the test
255      */
256     public void test427846() throws Exception
257     {
258         executeTidyTest("427846.html");
259     }
260 
261     /**
262      * test for Tidy [431731] : Inline emphasis inconsistent propagation.
263      * @throws Exception any exception generated during the test
264      */
265     public void test431731() throws Exception
266     {
267         executeTidyTest("431731.html");
268     }
269 
270     /**
271      * test for Tidy [431736] : Doctype decl added before XML decl.
272      * @throws Exception any exception generated during the test
273      */
274     public void test431736() throws Exception
275     {
276         executeTidyTest("431736.html");
277     }
278 
279     /**
280      * test for Tidy [431739] : Spaces carried into empty block tags. [fixed]
281      * @throws Exception any exception generated during the test
282      */
283     public void test431739() throws Exception
284     {
285         executeTidyTest("431739.html");
286     }
287 
288     /**
289      * test for Tidy [431889] : The "alt-text:" and "doctype: &lt;fpi>" options do not work when specified in a config
290      * file with a quoted string parameter.
291      * @throws Exception any exception generated during the test
292      */
293     public void test431889() throws Exception
294     {
295         executeTidyTest("431889.html");
296     }
297 
298     /**
299      * test for Tidy [431898] : Tidy messes up X(HT)ML documents.
300      * @throws Exception any exception generated during the test
301      */
302     public void test431898() throws Exception
303     {
304         executeTidyTest("431898.html");
305     }
306 
307     /**
308      * test for Tidy [431958] : Comments always indented.
309      * @throws Exception any exception generated during the test
310      */
311     public void test431958() throws Exception
312     {
313         executeTidyTest("431958.html");
314     }
315 
316     /**
317      * test for Tidy [431965] : XHTML Strict seen as Transitional w/div.
318      * @throws Exception any exception generated during the test
319      */
320     public void test431965() throws Exception
321     {
322         executeTidyTest("431965.xhtml");
323     }
324 
325     /**
326      * test for Tidy [432677] : Null value changed to "value" for -asxml.
327      * @throws Exception any exception generated during the test
328      */
329     public void test432677() throws Exception
330     {
331         executeTidyTest("432677.html");
332     }
333 
334     /**
335      * test for Tidy [433012] : Illegal ampersands/character entities.
336      * @throws Exception any exception generated during the test
337      */
338     public void test433012() throws Exception
339     {
340         executeTidyTest("433012.html");
341     }
342 
343     /**
344      * test for Tidy [433040] : Anchor tag without attributes deleted. [fixed]
345      * @throws Exception any exception generated during the test
346      */
347     public void test433040() throws Exception
348     {
349         executeTidyTest("433040.html");
350     }
351 
352     /**
353      * test for Tidy [433359] : Empty iframe elements trimmed.
354      * @throws Exception any exception generated during the test
355      */
356     public void test433359() throws Exception
357     {
358         executeTidyTest("433359.html");
359     }
360 
361     /**
362      * test for Tidy [433360] : Tags with missing > can't be repaired.
363      * @throws Exception any exception generated during the test
364      */
365     public void test433360() throws Exception
366     {
367         executeTidyTest("433360.html");
368     }
369 
370     /**
371      * test for Tidy [433604] : Tidy inserts &amp;nbsp; entity in -xml mode. [fixed]
372      * @throws Exception any exception generated during the test
373      */
374     public void test433604() throws Exception
375     {
376         executeTidyTest("433604.xml");
377     }
378 
379     /**
380      * test for Tidy [433656] : Improve support for PHP.
381      * @throws Exception any exception generated during the test
382      */
383     public void test433656() throws Exception
384     {
385         executeTidyTest("433656.html");
386     }
387 
388     /**
389      * test for Tidy [433666] : Attempt to repair duplicate attributes.
390      * @throws Exception any exception generated during the test
391      */
392     public void test433666() throws Exception
393     {
394         executeTidyTest("433666.html");
395     }
396 
397     /**
398      * test for Tidy [433672] : Anchor enclosing Header tags is omitted.
399      * @throws Exception any exception generated during the test
400      */
401     public void test433672() throws Exception
402     {
403         executeTidyTest("433672.html");
404     }
405 
406     /**
407      * test for Tidy [434940] : --show-body-only: print only body contents.
408      * @throws Exception any exception generated during the test
409      */
410     public void test434940() throws Exception
411     {
412         executeTidyTest("434940.html");
413     }
414 
415     /**
416      * test for Tidy [434940b] : --show-body-only: print only body contents (used with output-xml).
417      * @throws Exception any exception generated during the test
418      */
419     public void test434940b() throws Exception
420     {
421         executeTidyTest("434940b.html");
422     }
423 
424     /**
425      * test for Tidy [435903] : Script element w/body child to table bug.
426      * @throws Exception any exception generated during the test
427      */
428     public void test435903() throws Exception
429     {
430         executeTidyTest("435903.html");
431     }
432 
433     /**
434      * test for Tidy [435909] : &lt;noscript&gt;&lt;/noscript&gt; in &lt;head&gt;&lt;/head&gt;.
435      * @throws Exception any exception generated during the test
436      */
437     public void test435909() throws Exception
438     {
439         executeTidyTest("435909.html");
440     }
441 
442     /**
443      * test for Tidy [435919] : Nested &lt;q&gt;&lt;/q&gt;'s not handled correctly.
444      * @throws Exception any exception generated during the test
445      */
446     public void test435919() throws Exception
447     {
448         executeTidyTest("435919.html");
449     }
450 
451     /**
452      * test for Tidy [435920] : Space inserted before &lt;/td&gt; causes probs. [fixed]
453      * @throws Exception any exception generated during the test
454      */
455     public void test435920() throws Exception
456     {
457         executeTidyTest("435920.html");
458     }
459 
460     /**
461      * test for Tidy [435923] : Preserve case of attribute names.
462      * @throws Exception any exception generated during the test
463      */
464     public void test435923() throws Exception
465     {
466         executeTidyTest("435923.html");
467     }
468 
469     /**
470      * test for Tidy [437468] : Test input file for iso-8859-1 character entities.
471      * @throws Exception any exception generated during the test
472      */
473     public void test437468() throws Exception
474     {
475         executeTidyTest("437468.html");
476     }
477 
478     /**
479      * test for Tidy [438650] : Newline in URL attr value becomes space. [fixed]
480      * @throws Exception any exception generated during the test
481      */
482     public void test438650() throws Exception
483     {
484         executeTidyTest("438650.html");
485     }
486 
487     /**
488      * test for Tidy [438658] : Missing / in title endtag makes 2 titles.
489      * @throws Exception any exception generated during the test
490      */
491     public void test438658() throws Exception
492     {
493         executeTidyTest("438658.html");
494     }
495 
496     /**
497      * test for Tidy [438954] : Body tag w/attributes omitted w/hide-end.
498      * @throws Exception any exception generated during the test
499      */
500     public void test438954() throws Exception
501     {
502         executeTidyTest("438954.html");
503     }
504 
505     /**
506      * test for Tidy [441508] : parser.c: BadForm() function broken.
507      * @throws Exception any exception generated during the test
508      */
509     public void test441508() throws Exception
510     {
511         executeTidyTest("441508.html");
512     }
513 
514     /**
515      * test for Tidy [441568] : Font tags handling different.
516      * @throws Exception any exception generated during the test
517      */
518     public void test441568() throws Exception
519     {
520         executeTidyTest("441568.html");
521     }
522 
523     /**
524      * test for Tidy [441740] : XHTML 1.1 Support.
525      * @throws Exception any exception generated during the test
526      */
527     public void test441740() throws Exception
528     {
529         executeTidyTest("441740.xhtml");
530         assertLogContains("XHTML 1.1");
531     }
532 
533     /**
534      * test for Tidy [443381] : end tags for empty elements in XHTML.
535      * @throws Exception any exception generated during the test
536      */
537     public void test443381() throws Exception
538     {
539         executeTidyTest("443381.xhtml");
540         // should not complain about </img>
541         assertNoWarnings();
542     }
543 
544     /**
545      * test for Tidy [443576] : End script tag inside scripts problem.
546      * @throws Exception any exception generated during the test
547      */
548     public void test443576() throws Exception
549     {
550         executeTidyTest("443576.html");
551     }
552 
553     /**
554      * test for Tidy [443678] : Unclosed &lt;script&gt; in &lt;head&gt; messes Tidy.
555      * @throws Exception any exception generated during the test
556      */
557     public void test443678() throws Exception
558     {
559         executeTidyTest("443678.html");
560     }
561 
562     /**
563      * test for Tidy [445074] : XHTML requires form method="post".
564      * @throws Exception any exception generated during the test
565      */
566     public void test445074() throws Exception
567     {
568         executeTidyTest("445074.html");
569         // line 8 column 1 - Warning: <form> attribute value "POST" must be lower case for XHTML
570         assertWarnings(1);
571     }
572 
573     /**
574      * test for Tidy [445394] : Improve handling of missing trailing ". STill bad in tidy.
575      * @throws Exception any exception generated during the test
576      */
577     public void test445394() throws Exception
578     {
579         executeTidyTest("445394.html");
580     }
581 
582     /**
583      * test for Tidy [445557] : Convert Symbol font chars to Unicode.
584      * @throws Exception any exception generated during the test
585      */
586     public void test445557() throws Exception
587     {
588         executeTidyTest("445557.html");
589     }
590 
591     /**
592      * test for Tidy [449348] : Whitespace added/removed to inline tags.
593      * @throws Exception any exception generated during the test
594      */
595     public void test449348() throws Exception
596     {
597         executeTidyTest("449348.html");
598     }
599 
600     /**
601      * test for Tidy [456596] : Missing attribute name garbles output.
602      * @throws Exception any exception generated during the test
603      */
604     public void test456596() throws Exception
605     {
606         executeTidyTest("456596.html");
607     }
608 
609     /**
610      * test for Tidy [467863] : un-nest &lt;a&gt;.
611      * @throws Exception any exception generated during the test
612      */
613     public void test467863() throws Exception
614     {
615         executeTidyTest("467863.html");
616     }
617 
618     /**
619      * test for Tidy [467865] : un-nesting is incorrect.
620      * @throws Exception any exception generated during the test
621      */
622     public void test467865() throws Exception
623     {
624         executeTidyTest("467865.html");
625     }
626 
627     /**
628      * test for Tidy [470663] : Unterminated tags in &lt;head>confuse pars.
629      * @throws Exception any exception generated during the test
630      */
631     public void test470663() throws Exception
632     {
633         executeTidyTest("470663.html");
634     }
635 
636     /**
637      * test for Tidy [470688] : doesn't cleanup badly nested tags right.
638      * @throws Exception any exception generated during the test
639      */
640     public void test470688() throws Exception
641     {
642         executeTidyTest("470688.html");
643     }
644 
645     /**
646      * test for Tidy [471264] : Reduce blank lines in output.
647      * @throws Exception any exception generated during the test
648      */
649     public void test471264() throws Exception
650     {
651         executeTidyTest("471264.html");
652     }
653 
654     /**
655      * test for Tidy [473490] : DOCTYPE for Proprietary HTML to XHTML bad.
656      * @throws Exception any exception generated during the test
657      */
658     public void test473490() throws Exception
659     {
660         executeTidyTest("473490.html");
661     }
662 
663     /**
664      * test for Tidy [480406] : Single document element discarded.
665      * @throws Exception any exception generated during the test
666      */
667     public void test480406() throws Exception
668     {
669         executeTidyTest("480406.xml");
670     }
671 
672     /**
673      * test for Tidy [480701] : -xml conflicts with -output-xhtml.
674      * @throws Exception any exception generated during the test
675      */
676     public void test480701() throws Exception
677     {
678         executeTidyTest("480701.xml");
679     }
680 
681     /**
682      * test for Tidy [480843] : Proposed change to FixID().
683      * @throws Exception any exception generated during the test
684      */
685     public void test480843() throws Exception
686     {
687         // still open in tidy
688         executeTidyTest("480843.xhtml");
689     }
690 
691     /**
692      * test for Tidy [487204] : Duplicate DIV style attribute generated.
693      * @throws Exception any exception generated during the test
694      */
695     public void test487204() throws Exception
696     {
697         executeTidyTest("487204.html");
698     }
699 
700     /**
701      * test for Tidy [487283] : &gt;/select&lt; does not terminate &gt;option&lt;.
702      * @throws Exception any exception generated during the test
703      */
704     public void test487283() throws Exception
705     {
706         executeTidyTest("487283.html");
707     }
708 
709     /**
710      * test for Tidy [500236] : Test case for MS Access files failing with Error: missing quote mark for attribute
711      * value.
712      * @throws Exception any exception generated during the test
713      */
714     public void test500236() throws Exception
715     {
716         executeTidyTest("500236.xml");
717     }
718 
719     /**
720      * test for Tidy [502346] : Leading and trailing space in attval .
721      * @throws Exception any exception generated during the test
722      */
723     public void test502346() throws Exception
724     {
725         executeTidyTest("502346.html");
726         // this is actually another bug, but reported doctype is wrong for this test
727         assertLogContains("Doctype given is \"-//W3C//DTD XHTML 1.0 Strict//EN\"");
728     }
729 
730     /**
731      * test for Tidy [502348] : &lt;br clear="none"&gt; should be output.
732      * @throws Exception any exception generated during the test
733      */
734     public void test502348() throws Exception
735     {
736         executeTidyTest("502348.html");
737         assertWarnings(2);
738     }
739 
740     /**
741      * test for Tidy [503436] : Detect duplicate attribute specifications in XML docs.
742      * @todo HIGH PRIORITY.
743      * @throws Exception any exception generated during the test
744      */
745     public void test503436() throws Exception
746     {
747         executeTidyTest("503436.xml");
748     }
749 
750     /**
751      * test for Tidy [504206] : Tidy errors in processing forms.
752      * @throws Exception any exception generated during the test
753      */
754     public void test504206() throws Exception
755     {
756         executeTidyTest("504206.html");
757     }
758 
759     /**
760      * test for Tidy [505770] : Unclosed %lt;option> tag causing problems.
761      * @throws Exception any exception generated during the test
762      */
763     public void test505770() throws Exception
764     {
765         executeTidyTest("505770.html");
766     }
767 
768     /**
769      * test for Tidy [508936] : Parse CSS Selector prefix in config file.
770      * @throws Exception any exception generated during the test
771      */
772     public void test508936() throws Exception
773     {
774         executeTidyTest("508936.html");
775     }
776 
777     /**
778      * test for Tidy [511243] : xhtml utf8 format bug.
779      * @throws Exception any exception generated during the test
780      */
781     public void test511243() throws Exception
782     {
783         // need wrapping
784         executeTidyTest("511243.xhtml");
785     }
786 
787     /**
788      * test for Tidy [511679] : No end tag for PRE.
789      * @throws Exception any exception generated during the test
790      */
791     public void test511679() throws Exception
792     {
793         executeTidyTest("511679.html");
794     }
795 
796     /**
797      * test for Tidy [514348] : Incorrect wrap behaviour. [fixed]
798      * @throws Exception any exception generated during the test
799      */
800     public void test514348() throws Exception
801     {
802         executeTidyTest("514348.html");
803     }
804 
805     /**
806      * test for Tidy [514893] : Incorrect http-equiv &lt;meta&gt; tag.
807      * @throws Exception any exception generated during the test
808      */
809     public void test514893() throws Exception
810     {
811         executeTidyTest("514893.html");
812     }
813 
814     /**
815      * test for Tidy [517550] : parser misinterprets ?xml-stylesheet PI.
816      * @throws Exception any exception generated during the test
817      */
818     public void test517550() throws Exception
819     {
820         executeTidyTest("517550.xhtml");
821     }
822 
823     /**
824      * test for Tidy [531964] : &lt;p /&gt; gets tidied into &lt;p /&gt;&lt;/p&gt;.
825      * @throws Exception any exception generated during the test
826      */
827     public void test531964() throws Exception
828     {
829         executeTidyTest("531964.xhtml");
830     }
831 
832     /**
833      * test for Tidy [533105] : Tidy confused: HTML in VBScript.
834      * @throws Exception any exception generated during the test
835      */
836     public void test533105() throws Exception
837     {
838         executeTidyTest("533105.html");
839     }
840 
841     /**
842      * test for Tidy [533233] : Extra newline around inline &lt;script>.
843      * @throws Exception any exception generated during the test
844      */
845     public void test533233() throws Exception
846     {
847         executeTidyTest("533233.html");
848     }
849 
850     /**
851      * test for Tidy [537604] : Expansion of entity references in -xml.
852      * @throws Exception any exception generated during the test
853      */
854     public void test537604() throws Exception
855     {
856         executeTidyTest("537604.xml");
857     }
858 
859     /**
860      * test for Tidy [540045] : Tidy strips all the IMG tags out.
861      * @throws Exception any exception generated during the test
862      */
863     public void test540045() throws Exception
864     {
865         executeTidyTest("540045.xhtml");
866     }
867 
868     /**
869      * test for Tidy [540555] : Empty title tag is trimmed.
870      * @throws Exception any exception generated during the test
871      */
872     public void test540555() throws Exception
873     {
874         executeTidyTest("540555.html");
875     }
876 
877     /**
878      * test for Tidy [540571] : Inconsistent behaviour with span inline element.
879      * @throws Exception any exception generated during the test
880      */
881     public void test540571() throws Exception
882     {
883         executeTidyTest("540571.html");
884     }
885 
886     /**
887      * test for Tidy [578216] : Incorrect indent of &lt;SPAN&gt; elements.
888      * @throws Exception any exception generated during the test
889      */
890     public void test578216() throws Exception
891     {
892         executeTidyTest("578216.html");
893     }
894 
895     /**
896      * test for Tidy [586555] : Misplaced backslash caused by newline.
897      * @throws Exception any exception generated during the test
898      */
899     public void test586555() throws Exception
900     {
901         executeTidyTest("586555.html");
902     }
903 
904     /**
905      * test for Tidy [586562] : Two Doctypes.
906      * @throws Exception any exception generated during the test
907      */
908     public void test586562() throws Exception
909     {
910         executeTidyTest("586562.html");
911     }
912 
913     /**
914      * test for Tidy [593705] : Use of &lt; comparison symbol confuses Tidy.
915      * @throws Exception any exception generated during the test
916      */
917     public void test593705() throws Exception
918     {
919         executeTidyTest("593705.html");
920     }
921 
922     /**
923      * test for Tidy [598860] : Script parsing fails with quote chars.
924      * @throws Exception any exception generated during the test
925      */
926     public void test598860() throws Exception
927     {
928         executeTidyTest("598860.html");
929     }
930 
931     /**
932      * test for Tidy [603128] : tidy adds newlines after &lt;/html&gt;. [fixed]
933      * @throws Exception any exception generated during the test
934      */
935     public void test603128() throws Exception
936     {
937         executeTidyTest("603128.html");
938     }
939 
940     /**
941      * test for Tidy [616744] : Incorrect line break after closing tag.
942      * @throws Exception any exception generated during the test
943      */
944     public void test616744() throws Exception
945     {
946         executeTidyTest("616744.xml");
947     }
948 
949     /**
950      * test for Tidy [620531] : br in pre must not cause line break.
951      * @throws Exception any exception generated during the test
952      */
953     public void test620531() throws Exception
954     {
955         executeTidyTest("620531.html");
956     }
957 
958     /**
959      * test for Tidy [629885] : Unbalanced quote in CSS Scrambles Doc.
960      * @throws Exception any exception generated during the test
961      */
962     public void test629885() throws Exception
963     {
964         executeTidyTest("629885.html");
965     }
966 
967     /**
968      * test for Tidy [640473] : new-empty-tags doesn't work, breaks doc.
969      * @throws Exception any exception generated during the test
970      */
971     public void test640473() throws Exception
972     {
973         executeTidyTest("640473.html");
974     }
975 
976     /**
977      * test for Tidy [640474] : XML decl, attributes in wrong order.
978      * @throws Exception any exception generated during the test
979      */
980     public void test640474() throws Exception
981     {
982         executeTidyTest("640474.xml");
983     }
984 
985     /**
986      * test for Tidy [646946] : Bad doctype guessing in XML mode.
987      * @throws Exception any exception generated during the test
988      */
989     public void test646946() throws Exception
990     {
991         executeTidyTest("646946.xml");
992     }
993 
994     /**
995      * test for Tidy [647900] : tables are incorrectly merged.
996      * @throws Exception any exception generated during the test
997      */
998     public void test647900() throws Exception
999     {
1000         executeTidyTest("647900.html");
1001     }
1002 
1003     /**
1004      * test for Tidy [655338] : Tidy leaves XML decl in wrong place.
1005      * @throws Exception any exception generated during the test
1006      */
1007     public void test655338() throws Exception
1008     {
1009         executeTidyTest("655338.html");
1010     }
1011 
1012     /**
1013      * test for Tidy [656889] : textarea text and line wrapping.
1014      * @throws Exception any exception generated during the test
1015      */
1016     public void test656889() throws Exception
1017     {
1018         executeTidyTest("656889.html");
1019     }
1020 
1021     /**
1022      * test for Tidy [663548] : Javascript and Tidy - missing code.
1023      * @throws Exception any exception generated during the test
1024      */
1025     public void test663548() throws Exception
1026     {
1027         executeTidyTest("663548.html");
1028     }
1029 
1030     /**
1031      * test for Tidy [678268] : --output-xhtml produces bad xml.
1032      * @todo HIGH PRIORITY.
1033      * @throws Exception any exception generated during the test
1034      */
1035     public void test678268() throws Exception
1036     {
1037         executeTidyTest("678268.html");
1038     }
1039 
1040     /**
1041      * test for Tidy [680664] : Malformed comment generates bad (X)HTML.
1042      * @throws Exception any exception generated during the test
1043      */
1044     public void test680664() throws Exception
1045     {
1046         executeTidyTest("680664.xhtml");
1047     }
1048 
1049     /**
1050      * test for Tidy [695408] : Empty spans getting dropped, even if they have attrs.
1051      * @todo HIGH PRIORITY.
1052      * @throws Exception any exception generated during the test
1053      */
1054     public void test695408() throws Exception
1055     {
1056         executeTidyTest("695408.html");
1057     }
1058 
1059     /**
1060      * test for Tidy [708322] : drop-proprietary-attributes leaves table height.
1061      * @throws Exception any exception generated during the test
1062      */
1063     public void test708322() throws Exception
1064     {
1065         executeTidyTest("708322.html");
1066     }
1067 
1068     /**
1069      * test for Tidy [735603] : drops attributes from declared elements.
1070      * @throws Exception any exception generated during the test
1071      */
1072     public void test735603() throws Exception
1073     {
1074         executeTidyTest("735603.html");
1075     }
1076 
1077     /**
1078      * test for Tidy [765852] : Empty tag striping.
1079      * @throws Exception any exception generated during the test
1080      */
1081     public void test765852() throws Exception
1082     {
1083         executeTidyTest("765852.html");
1084     }
1085 
1086     /**
1087      * test for Tidy [994841] : Whitespace is removed from value attributes.
1088      * @throws Exception any exception generated during the test
1089      */
1090     public void test994841() throws Exception
1091     {
1092         executeTidyTest("994841.html");
1093         assertNoWarnings();
1094     }
1095 
1096     /**
1097      * test for Tidy [996484] : Tidy add spurious space when indenting long URIs.
1098      * @throws Exception any exception generated during the test
1099      */
1100     public void test996484() throws Exception
1101     {
1102         executeTidyTest("996484.html");
1103     }
1104 
1105     /**
1106      * test for Tidy [1031865] : Script parsing warning.
1107      * @throws Exception any exception generated during the test
1108      */
1109     public void test1031865() throws Exception
1110     {
1111         executeTidyTest("1031865.html");
1112         assertNoWarnings();
1113     }
1114 
1115 }