0001: /*
0002: * Java HTML Tidy - JTidy
0003: * HTML parser and pretty printer
0004: *
0005: * Copyright (c) 1998-2000 World Wide Web Consortium (Massachusetts
0006: * Institute of Technology, Institut National de Recherche en
0007: * Informatique et en Automatique, Keio University). All Rights
0008: * Reserved.
0009: *
0010: * Contributing Author(s):
0011: *
0012: * Dave Raggett <dsr@w3.org>
0013: * Andy Quick <ac.quick@sympatico.ca> (translation to Java)
0014: * Gary L Peskin <garyp@firstech.com> (Java development)
0015: * Sami Lempinen <sami@lempinen.net> (release management)
0016: * Fabrizio Giustina <fgiust at users.sourceforge.net>
0017: *
0018: * The contributing author(s) would like to thank all those who
0019: * helped with testing, bug fixes, and patience. This wouldn't
0020: * have been possible without all of you.
0021: *
0022: * COPYRIGHT NOTICE:
0023: *
0024: * This software and documentation is provided "as is," and
0025: * the copyright holders and contributing author(s) make no
0026: * representations or warranties, express or implied, including
0027: * but not limited to, warranties of merchantability or fitness
0028: * for any particular purpose or that the use of the software or
0029: * documentation will not infringe any third party patents,
0030: * copyrights, trademarks or other rights.
0031: *
0032: * The copyright holders and contributing author(s) will not be
0033: * liable for any direct, indirect, special or consequential damages
0034: * arising out of any use of the software or documentation, even if
0035: * advised of the possibility of such damage.
0036: *
0037: * Permission is hereby granted to use, copy, modify, and distribute
0038: * this source code, or portions hereof, documentation and executables,
0039: * for any purpose, without fee, subject to the following restrictions:
0040: *
0041: * 1. The origin of this source code must not be misrepresented.
0042: * 2. Altered versions must be plainly marked as such and must
0043: * not be misrepresented as being the original source.
0044: * 3. This Copyright notice may not be removed or altered from any
0045: * source or altered source distribution.
0046: *
0047: * The copyright holders and contributing author(s) specifically
0048: * permit, without fee, and encourage the use of this source code
0049: * as a component for supporting the Hypertext Markup Language in
0050: * commercial products. If you use this source code in a product,
0051: * acknowledgment is not required but would be appreciated.
0052: *
0053: */
0054: package org.w3c.tidy;
0055:
0056: /**
0057: * Testcase for Tidy resolved bugs (wrong output).
0058: * <p>
0059: * see <code>http://sourceforge.net/support/tracker.php?aid=(item number)</code>
0060: * </p>
0061: * @author fgiust
0062: * @version $Revision: 1.38 $ ($Author: fgiust $)
0063: */
0064: public class TidyOutputBugsTest extends TidyTestCase {
0065:
0066: /**
0067: * Instantiate a new Test case.
0068: * @param name test name
0069: */
0070: public TidyOutputBugsTest(String name) {
0071: super (name);
0072: }
0073:
0074: /**
0075: * test for Tidy [427812] : Reprocessing OBJECT removes PARAM.
0076: * @throws Exception any exception generated during the test
0077: */
0078: public void test427812() throws Exception {
0079: executeTidyTest("427812.xhtml");
0080: }
0081:
0082: /**
0083: * test for Tidy [427662] : BLOCK/INLINE before TABLE parsed wrong.
0084: * @throws Exception any exception generated during the test
0085: */
0086: public void test427662() throws Exception {
0087: executeTidyTest("427662.html");
0088: }
0089:
0090: /**
0091: * test for Tidy [427677] : TrimInitialSpace() can trim too much.
0092: * @throws Exception any exception generated during the test
0093: */
0094: public void test427677() throws Exception {
0095: executeTidyTest("427677.html");
0096: }
0097:
0098: /**
0099: * test for Tidy [427633] : Line endings not supported correctly.
0100: * @throws Exception any exception generated during the test
0101: */
0102: public void test427633() throws Exception {
0103: // check line endings
0104: executeTidyTest("427633.html");
0105: }
0106:
0107: /**
0108: * test for Tidy [427819] : OPTION w/illegal FONT eats whitespace.
0109: * @throws Exception any exception generated during the test
0110: */
0111: public void test427819() throws Exception {
0112: executeTidyTest("427819.html");
0113: }
0114:
0115: /**
0116: * test for Tidy [427820] : indent config options ignored for <BR>. [fixed]
0117: * @throws Exception any exception generated during the test
0118: */
0119: public void test427820() throws Exception {
0120: executeTidyTest("427820.html");
0121: }
0122:
0123: /**
0124: * test for Tidy [427821] : XHTML TRANSITIONAL doctype set wrongly.
0125: * @throws Exception any exception generated during the test
0126: */
0127: public void test427821() throws Exception {
0128: executeTidyTest("427821.html");
0129: }
0130:
0131: /**
0132: * test for Tidy [427822] : PopInLine() doesn't check stack.
0133: * @throws Exception any exception generated during the test
0134: */
0135: public void test427822() throws Exception {
0136: // should be already fixed in jtidy
0137: executeTidyTest("427822.html");
0138: }
0139:
0140: /**
0141: * test for Tidy [427823] : Multiple <BODY>'s in <NOFRAMES> allowed.
0142: * @throws Exception any exception generated during the test
0143: */
0144: public void test427823() throws Exception {
0145: executeTidyTest("427823.html");
0146: }
0147:
0148: /**
0149: * test for Tidy [427825] : Test user defined tags.
0150: * @throws Exception any exception generated during the test
0151: */
0152: public void test427825() throws Exception {
0153: executeTidyTest("427825.html");
0154: }
0155:
0156: /**
0157: * test for Tidy [427826] : Script source needs escaping/CDATA section.
0158: * @todo HIGH priority
0159: * @throws Exception any exception generated during the test
0160: */
0161: public void test427826() throws Exception {
0162: executeTidyTest("427826.html");
0163: }
0164:
0165: /**
0166: * test for Tidy [427830] : Tidy uses an incorrect XHTML 1.0 Namespace, even if the correct namespace is given.
0167: * @throws Exception any exception generated during the test
0168: */
0169: public void test427830() throws Exception {
0170: executeTidyTest("427830.html");
0171: }
0172:
0173: /**
0174: * test for Tidy [427833] : Uppercase &#X; escape sequences ignored.
0175: * @todo high priority
0176: * @throws Exception any exception generated during the test
0177: */
0178: public void test427833() throws Exception {
0179: executeTidyTest("427833.html");
0180: }
0181:
0182: /**
0183: * test for Tidy [427835] : DTD not inserted, but DTD URI Namespace.
0184: * @throws Exception any exception generated during the test
0185: */
0186: public void test427835() throws Exception {
0187: executeTidyTest("427835.html");
0188: }
0189:
0190: /**
0191: * test for Tidy [427836] : OBJECT should be wrapped in BODY.
0192: * @throws Exception any exception generated during the test
0193: */
0194: public void test427836() throws Exception {
0195: executeTidyTest("427836.html");
0196: }
0197:
0198: /**
0199: * test for Tidy [427837] : No encoding specified in XML output.
0200: * @throws Exception any exception generated during the test
0201: */
0202: public void test427837() throws Exception {
0203: executeTidyTest("427837.xml");
0204: }
0205:
0206: /**
0207: * test for Tidy [427838] : Name Anchor thrown away.
0208: * @throws Exception any exception generated during the test
0209: */
0210: public void test427838() throws Exception {
0211: executeTidyTest("427838.html");
0212: }
0213:
0214: /**
0215: * test for Tidy [427839] : Output DOCTYPE/Namespace decl separately. [fixed]
0216: * @throws Exception any exception generated during the test
0217: */
0218: public void test427839() throws Exception {
0219: executeTidyTest("427839.html");
0220: }
0221:
0222: /**
0223: * test for Tidy [427845] : Doctypes are output on multiple lines.
0224: * @throws Exception any exception generated during the test
0225: */
0226: public void test427845() throws Exception {
0227: // still 2 lines on tidy?
0228: executeTidyTest("427845.html");
0229: }
0230:
0231: /**
0232: * test for Tidy [427846] : Blank char inserted after first char. [fixed]
0233: * @throws Exception any exception generated during the test
0234: */
0235: public void test427846() throws Exception {
0236: executeTidyTest("427846.html");
0237: }
0238:
0239: /**
0240: * test for Tidy [431731] : Inline emphasis inconsistent propagation.
0241: * @throws Exception any exception generated during the test
0242: */
0243: public void test431731() throws Exception {
0244: executeTidyTest("431731.html");
0245: }
0246:
0247: /**
0248: * test for Tidy [431736] : Doctype decl added before XML decl.
0249: * @throws Exception any exception generated during the test
0250: */
0251: public void test431736() throws Exception {
0252: executeTidyTest("431736.html");
0253: }
0254:
0255: /**
0256: * test for Tidy [431739] : Spaces carried into empty block tags. [fixed]
0257: * @throws Exception any exception generated during the test
0258: */
0259: public void test431739() throws Exception {
0260: executeTidyTest("431739.html");
0261: }
0262:
0263: /**
0264: * test for Tidy [431889] : The "alt-text:" and "doctype: <fpi>" options do not work when specified in a config
0265: * file with a quoted string parameter.
0266: * @throws Exception any exception generated during the test
0267: */
0268: public void test431889() throws Exception {
0269: executeTidyTest("431889.html");
0270: }
0271:
0272: /**
0273: * test for Tidy [431898] : Tidy messes up X(HT)ML documents.
0274: * @throws Exception any exception generated during the test
0275: */
0276: public void test431898() throws Exception {
0277: executeTidyTest("431898.html");
0278: }
0279:
0280: /**
0281: * test for Tidy [431958] : Comments always indented.
0282: * @throws Exception any exception generated during the test
0283: */
0284: public void test431958() throws Exception {
0285: executeTidyTest("431958.html");
0286: }
0287:
0288: /**
0289: * test for Tidy [431965] : XHTML Strict seen as Transitional w/div.
0290: * @throws Exception any exception generated during the test
0291: */
0292: public void test431965() throws Exception {
0293: executeTidyTest("431965.xhtml");
0294: }
0295:
0296: /**
0297: * test for Tidy [432677] : Null value changed to "value" for -asxml.
0298: * @throws Exception any exception generated during the test
0299: */
0300: public void test432677() throws Exception {
0301: executeTidyTest("432677.html");
0302: }
0303:
0304: /**
0305: * test for Tidy [433012] : Illegal ampersands/character entities.
0306: * @throws Exception any exception generated during the test
0307: */
0308: public void test433012() throws Exception {
0309: executeTidyTest("433012.html");
0310: }
0311:
0312: /**
0313: * test for Tidy [433040] : Anchor tag without attributes deleted. [fixed]
0314: * @throws Exception any exception generated during the test
0315: */
0316: public void test433040() throws Exception {
0317: executeTidyTest("433040.html");
0318: }
0319:
0320: /**
0321: * test for Tidy [433359] : Empty iframe elements trimmed.
0322: * @throws Exception any exception generated during the test
0323: */
0324: public void test433359() throws Exception {
0325: executeTidyTest("433359.html");
0326: }
0327:
0328: /**
0329: * test for Tidy [433360] : Tags with missing > can't be repaired.
0330: * @throws Exception any exception generated during the test
0331: */
0332: public void test433360() throws Exception {
0333: executeTidyTest("433360.html");
0334: }
0335:
0336: /**
0337: * test for Tidy [433604] : Tidy inserts &nbsp; entity in -xml mode. [fixed]
0338: * @throws Exception any exception generated during the test
0339: */
0340: public void test433604() throws Exception {
0341: executeTidyTest("433604.xml");
0342: }
0343:
0344: /**
0345: * test for Tidy [433656] : Improve support for PHP.
0346: * @throws Exception any exception generated during the test
0347: */
0348: public void test433656() throws Exception {
0349: executeTidyTest("433656.html");
0350: }
0351:
0352: /**
0353: * test for Tidy [433666] : Attempt to repair duplicate attributes.
0354: * @throws Exception any exception generated during the test
0355: */
0356: public void test433666() throws Exception {
0357: executeTidyTest("433666.html");
0358: }
0359:
0360: /**
0361: * test for Tidy [433672] : Anchor enclosing Header tags is omitted.
0362: * @throws Exception any exception generated during the test
0363: */
0364: public void test433672() throws Exception {
0365: executeTidyTest("433672.html");
0366: }
0367:
0368: /**
0369: * test for Tidy [434940] : --show-body-only: print only body contents.
0370: * @throws Exception any exception generated during the test
0371: */
0372: public void test434940() throws Exception {
0373: executeTidyTest("434940.html");
0374: }
0375:
0376: /**
0377: * test for Tidy [434940b] : --show-body-only: print only body contents (used with output-xml).
0378: * @throws Exception any exception generated during the test
0379: */
0380: public void test434940b() throws Exception {
0381: executeTidyTest("434940b.html");
0382: }
0383:
0384: /**
0385: * test for Tidy [435903] : Script element w/body child to table bug.
0386: * @throws Exception any exception generated during the test
0387: */
0388: public void test435903() throws Exception {
0389: executeTidyTest("435903.html");
0390: }
0391:
0392: /**
0393: * test for Tidy [435909] : <noscript></noscript> in <head></head>.
0394: * @throws Exception any exception generated during the test
0395: */
0396: public void test435909() throws Exception {
0397: executeTidyTest("435909.html");
0398: }
0399:
0400: /**
0401: * test for Tidy [435919] : Nested <q></q>'s not handled correctly.
0402: * @throws Exception any exception generated during the test
0403: */
0404: public void test435919() throws Exception {
0405: executeTidyTest("435919.html");
0406: }
0407:
0408: /**
0409: * test for Tidy [435920] : Space inserted before </td> causes probs. [fixed]
0410: * @throws Exception any exception generated during the test
0411: */
0412: public void test435920() throws Exception {
0413: executeTidyTest("435920.html");
0414: }
0415:
0416: /**
0417: * test for Tidy [435923] : Preserve case of attribute names.
0418: * @throws Exception any exception generated during the test
0419: */
0420: public void test435923() throws Exception {
0421: executeTidyTest("435923.html");
0422: }
0423:
0424: /**
0425: * test for Tidy [437468] : Test input file for iso-8859-1 character entities.
0426: * @throws Exception any exception generated during the test
0427: */
0428: public void test437468() throws Exception {
0429: executeTidyTest("437468.html");
0430: }
0431:
0432: /**
0433: * test for Tidy [438650] : Newline in URL attr value becomes space. [fixed]
0434: * @throws Exception any exception generated during the test
0435: */
0436: public void test438650() throws Exception {
0437: executeTidyTest("438650.html");
0438: }
0439:
0440: /**
0441: * test for Tidy [438658] : Missing / in title endtag makes 2 titles.
0442: * @throws Exception any exception generated during the test
0443: */
0444: public void test438658() throws Exception {
0445: executeTidyTest("438658.html");
0446: }
0447:
0448: /**
0449: * test for Tidy [438954] : Body tag w/attributes omitted w/hide-end.
0450: * @throws Exception any exception generated during the test
0451: */
0452: public void test438954() throws Exception {
0453: executeTidyTest("438954.html");
0454: }
0455:
0456: /**
0457: * test for Tidy [441508] : parser.c: BadForm() function broken.
0458: * @throws Exception any exception generated during the test
0459: */
0460: public void test441508() throws Exception {
0461: executeTidyTest("441508.html");
0462: }
0463:
0464: /**
0465: * test for Tidy [441568] : Font tags handling different.
0466: * @throws Exception any exception generated during the test
0467: */
0468: public void test441568() throws Exception {
0469: executeTidyTest("441568.html");
0470: }
0471:
0472: /**
0473: * test for Tidy [441740] : XHTML 1.1 Support.
0474: * @throws Exception any exception generated during the test
0475: */
0476: public void test441740() throws Exception {
0477: executeTidyTest("441740.xhtml");
0478: assertLogContains("XHTML 1.1");
0479: }
0480:
0481: /**
0482: * test for Tidy [443381] : end tags for empty elements in XHTML.
0483: * @throws Exception any exception generated during the test
0484: */
0485: public void test443381() throws Exception {
0486: executeTidyTest("443381.xhtml");
0487: // should not complain about </img>
0488: assertNoWarnings();
0489: }
0490:
0491: /**
0492: * test for Tidy [443576] : End script tag inside scripts problem.
0493: * @throws Exception any exception generated during the test
0494: */
0495: public void test443576() throws Exception {
0496: executeTidyTest("443576.html");
0497: }
0498:
0499: /**
0500: * test for Tidy [443678] : Unclosed <script> in <head> messes Tidy.
0501: * @throws Exception any exception generated during the test
0502: */
0503: public void test443678() throws Exception {
0504: executeTidyTest("443678.html");
0505: }
0506:
0507: /**
0508: * test for Tidy [445074] : XHTML requires form method="post".
0509: * @throws Exception any exception generated during the test
0510: */
0511: public void test445074() throws Exception {
0512: executeTidyTest("445074.html");
0513: // line 8 column 1 - Warning: <form> attribute value "POST" must be lower case for XHTML
0514: assertWarnings(1);
0515: }
0516:
0517: /**
0518: * test for Tidy [445394] : Improve handling of missing trailing ". STill bad in tidy.
0519: * @throws Exception any exception generated during the test
0520: */
0521: public void test445394() throws Exception {
0522: executeTidyTest("445394.html");
0523: }
0524:
0525: /**
0526: * test for Tidy [445557] : Convert Symbol font chars to Unicode.
0527: * @throws Exception any exception generated during the test
0528: */
0529: public void test445557() throws Exception {
0530: executeTidyTest("445557.html");
0531: }
0532:
0533: /**
0534: * test for Tidy [449348] : Whitespace added/removed to inline tags.
0535: * @throws Exception any exception generated during the test
0536: */
0537: public void test449348() throws Exception {
0538: executeTidyTest("449348.html");
0539: }
0540:
0541: /**
0542: * test for Tidy [456596] : Missing attribute name garbles output.
0543: * @throws Exception any exception generated during the test
0544: */
0545: public void test456596() throws Exception {
0546: executeTidyTest("456596.html");
0547: }
0548:
0549: /**
0550: * test for Tidy [467863] : un-nest <a>.
0551: * @throws Exception any exception generated during the test
0552: */
0553: public void test467863() throws Exception {
0554: executeTidyTest("467863.html");
0555: }
0556:
0557: /**
0558: * test for Tidy [467865] : un-nesting is incorrect.
0559: * @throws Exception any exception generated during the test
0560: */
0561: public void test467865() throws Exception {
0562: executeTidyTest("467865.html");
0563: }
0564:
0565: /**
0566: * test for Tidy [470663] : Unterminated tags in <head>confuse pars.
0567: * @throws Exception any exception generated during the test
0568: */
0569: public void test470663() throws Exception {
0570: executeTidyTest("470663.html");
0571: }
0572:
0573: /**
0574: * test for Tidy [470688] : doesn't cleanup badly nested tags right.
0575: * @throws Exception any exception generated during the test
0576: */
0577: public void test470688() throws Exception {
0578: executeTidyTest("470688.html");
0579: }
0580:
0581: /**
0582: * test for Tidy [471264] : Reduce blank lines in output.
0583: * @throws Exception any exception generated during the test
0584: */
0585: public void test471264() throws Exception {
0586: executeTidyTest("471264.html");
0587: }
0588:
0589: /**
0590: * test for Tidy [473490] : DOCTYPE for Proprietary HTML to XHTML bad.
0591: * @throws Exception any exception generated during the test
0592: */
0593: public void test473490() throws Exception {
0594: executeTidyTest("473490.html");
0595: }
0596:
0597: /**
0598: * test for Tidy [480406] : Single document element discarded.
0599: * @throws Exception any exception generated during the test
0600: */
0601: public void test480406() throws Exception {
0602: executeTidyTest("480406.xml");
0603: }
0604:
0605: /**
0606: * test for Tidy [480701] : -xml conflicts with -output-xhtml.
0607: * @throws Exception any exception generated during the test
0608: */
0609: public void test480701() throws Exception {
0610: executeTidyTest("480701.xml");
0611: }
0612:
0613: /**
0614: * test for Tidy [480843] : Proposed change to FixID().
0615: * @throws Exception any exception generated during the test
0616: */
0617: public void test480843() throws Exception {
0618: // still open in tidy
0619: executeTidyTest("480843.xhtml");
0620: }
0621:
0622: /**
0623: * test for Tidy [487204] : Duplicate DIV style attribute generated.
0624: * @throws Exception any exception generated during the test
0625: */
0626: public void test487204() throws Exception {
0627: executeTidyTest("487204.html");
0628: }
0629:
0630: /**
0631: * test for Tidy [487283] : >/select< does not terminate >option<.
0632: * @throws Exception any exception generated during the test
0633: */
0634: public void test487283() throws Exception {
0635: executeTidyTest("487283.html");
0636: }
0637:
0638: /**
0639: * test for Tidy [500236] : Test case for MS Access files failing with Error: missing quote mark for attribute
0640: * value.
0641: * @throws Exception any exception generated during the test
0642: */
0643: public void test500236() throws Exception {
0644: executeTidyTest("500236.xml");
0645: }
0646:
0647: /**
0648: * test for Tidy [502346] : Leading and trailing space in attval .
0649: * @throws Exception any exception generated during the test
0650: */
0651: public void test502346() throws Exception {
0652: executeTidyTest("502346.html");
0653: // this is actually another bug, but reported doctype is wrong for this test
0654: assertLogContains("Doctype given is \"-//W3C//DTD XHTML 1.0 Strict//EN\"");
0655: }
0656:
0657: /**
0658: * test for Tidy [502348] : <br clear="none"> should be output.
0659: * @throws Exception any exception generated during the test
0660: */
0661: public void test502348() throws Exception {
0662: executeTidyTest("502348.html");
0663: assertWarnings(2);
0664: }
0665:
0666: /**
0667: * test for Tidy [503436] : Detect duplicate attribute specifications in XML docs.
0668: * @todo HIGH PRIORITY.
0669: * @throws Exception any exception generated during the test
0670: */
0671: public void test503436() throws Exception {
0672: executeTidyTest("503436.xml");
0673: }
0674:
0675: /**
0676: * test for Tidy [504206] : Tidy errors in processing forms.
0677: * @throws Exception any exception generated during the test
0678: */
0679: public void test504206() throws Exception {
0680: executeTidyTest("504206.html");
0681: }
0682:
0683: /**
0684: * test for Tidy [505770] : Unclosed %lt;option> tag causing problems.
0685: * @throws Exception any exception generated during the test
0686: */
0687: public void test505770() throws Exception {
0688: executeTidyTest("505770.html");
0689: }
0690:
0691: /**
0692: * test for Tidy [508936] : Parse CSS Selector prefix in config file.
0693: * @throws Exception any exception generated during the test
0694: */
0695: public void test508936() throws Exception {
0696: executeTidyTest("508936.html");
0697: }
0698:
0699: /**
0700: * test for Tidy [511243] : xhtml utf8 format bug.
0701: * @throws Exception any exception generated during the test
0702: */
0703: public void test511243() throws Exception {
0704: // need wrapping
0705: executeTidyTest("511243.xhtml");
0706: }
0707:
0708: /**
0709: * test for Tidy [511679] : No end tag for PRE.
0710: * @throws Exception any exception generated during the test
0711: */
0712: public void test511679() throws Exception {
0713: executeTidyTest("511679.html");
0714: }
0715:
0716: /**
0717: * test for Tidy [514348] : Incorrect wrap behaviour. [fixed]
0718: * @throws Exception any exception generated during the test
0719: */
0720: public void test514348() throws Exception {
0721: executeTidyTest("514348.html");
0722: }
0723:
0724: /**
0725: * test for Tidy [514893] : Incorrect http-equiv <meta> tag.
0726: * @throws Exception any exception generated during the test
0727: */
0728: public void test514893() throws Exception {
0729: executeTidyTest("514893.html");
0730: }
0731:
0732: /**
0733: * test for Tidy [517550] : parser misinterprets ?xml-stylesheet PI.
0734: * @throws Exception any exception generated during the test
0735: */
0736: public void test517550() throws Exception {
0737: executeTidyTest("517550.xhtml");
0738: }
0739:
0740: /**
0741: * test for Tidy [531964] : <p /> gets tidied into <p /></p>.
0742: * @throws Exception any exception generated during the test
0743: */
0744: public void test531964() throws Exception {
0745: executeTidyTest("531964.xhtml");
0746: }
0747:
0748: /**
0749: * test for Tidy [533105] : Tidy confused: HTML in VBScript.
0750: * @throws Exception any exception generated during the test
0751: */
0752: public void test533105() throws Exception {
0753: executeTidyTest("533105.html");
0754: }
0755:
0756: /**
0757: * test for Tidy [533233] : Extra newline around inline <script>.
0758: * @throws Exception any exception generated during the test
0759: */
0760: public void test533233() throws Exception {
0761: executeTidyTest("533233.html");
0762: }
0763:
0764: /**
0765: * test for Tidy [537604] : Expansion of entity references in -xml.
0766: * @throws Exception any exception generated during the test
0767: */
0768: public void test537604() throws Exception {
0769: executeTidyTest("537604.xml");
0770: }
0771:
0772: /**
0773: * test for Tidy [540045] : Tidy strips all the IMG tags out.
0774: * @throws Exception any exception generated during the test
0775: */
0776: public void test540045() throws Exception {
0777: executeTidyTest("540045.xhtml");
0778: }
0779:
0780: /**
0781: * test for Tidy [540555] : Empty title tag is trimmed.
0782: * @throws Exception any exception generated during the test
0783: */
0784: public void test540555() throws Exception {
0785: executeTidyTest("540555.html");
0786: }
0787:
0788: /**
0789: * test for Tidy [540571] : Inconsistent behaviour with span inline element.
0790: * @throws Exception any exception generated during the test
0791: */
0792: public void test540571() throws Exception {
0793: executeTidyTest("540571.html");
0794: }
0795:
0796: /**
0797: * test for Tidy [578216] : Incorrect indent of <SPAN> elements.
0798: * @throws Exception any exception generated during the test
0799: */
0800: public void test578216() throws Exception {
0801: executeTidyTest("578216.html");
0802: }
0803:
0804: /**
0805: * test for Tidy [586555] : Misplaced backslash caused by newline.
0806: * @throws Exception any exception generated during the test
0807: */
0808: public void test586555() throws Exception {
0809: executeTidyTest("586555.html");
0810: }
0811:
0812: /**
0813: * test for Tidy [586562] : Two Doctypes.
0814: * @throws Exception any exception generated during the test
0815: */
0816: public void test586562() throws Exception {
0817: executeTidyTest("586562.html");
0818: }
0819:
0820: /**
0821: * test for Tidy [593705] : Use of < comparison symbol confuses Tidy.
0822: * @throws Exception any exception generated during the test
0823: */
0824: public void test593705() throws Exception {
0825: executeTidyTest("593705.html");
0826: }
0827:
0828: /**
0829: * test for Tidy [598860] : Script parsing fails with quote chars.
0830: * @throws Exception any exception generated during the test
0831: */
0832: public void test598860() throws Exception {
0833: executeTidyTest("598860.html");
0834: }
0835:
0836: /**
0837: * test for Tidy [603128] : tidy adds newlines after </html>. [fixed]
0838: * @throws Exception any exception generated during the test
0839: */
0840: public void test603128() throws Exception {
0841: executeTidyTest("603128.html");
0842: }
0843:
0844: /**
0845: * test for Tidy [616744] : Incorrect line break after closing tag.
0846: * @throws Exception any exception generated during the test
0847: */
0848: public void test616744() throws Exception {
0849: executeTidyTest("616744.xml");
0850: }
0851:
0852: /**
0853: * test for Tidy [620531] : br in pre must not cause line break.
0854: * @throws Exception any exception generated during the test
0855: */
0856: public void test620531() throws Exception {
0857: executeTidyTest("620531.html");
0858: }
0859:
0860: /**
0861: * test for Tidy [629885] : Unbalanced quote in CSS Scrambles Doc.
0862: * @throws Exception any exception generated during the test
0863: */
0864: public void test629885() throws Exception {
0865: executeTidyTest("629885.html");
0866: }
0867:
0868: /**
0869: * test for Tidy [640473] : new-empty-tags doesn't work, breaks doc.
0870: * @throws Exception any exception generated during the test
0871: */
0872: public void test640473() throws Exception {
0873: executeTidyTest("640473.html");
0874: }
0875:
0876: /**
0877: * test for Tidy [640474] : XML decl, attributes in wrong order.
0878: * @throws Exception any exception generated during the test
0879: */
0880: public void test640474() throws Exception {
0881: executeTidyTest("640474.xml");
0882: }
0883:
0884: /**
0885: * test for Tidy [646946] : Bad doctype guessing in XML mode.
0886: * @throws Exception any exception generated during the test
0887: */
0888: public void test646946() throws Exception {
0889: executeTidyTest("646946.xml");
0890: }
0891:
0892: /**
0893: * test for Tidy [647900] : tables are incorrectly merged.
0894: * @throws Exception any exception generated during the test
0895: */
0896: public void test647900() throws Exception {
0897: executeTidyTest("647900.html");
0898: }
0899:
0900: /**
0901: * test for Tidy [655338] : Tidy leaves XML decl in wrong place.
0902: * @throws Exception any exception generated during the test
0903: */
0904: public void test655338() throws Exception {
0905: executeTidyTest("655338.html");
0906: }
0907:
0908: /**
0909: * test for Tidy [656889] : textarea text and line wrapping.
0910: * @throws Exception any exception generated during the test
0911: */
0912: public void test656889() throws Exception {
0913: executeTidyTest("656889.html");
0914: }
0915:
0916: /**
0917: * test for Tidy [663548] : Javascript and Tidy - missing code.
0918: * @throws Exception any exception generated during the test
0919: */
0920: public void test663548() throws Exception {
0921: executeTidyTest("663548.html");
0922: }
0923:
0924: /**
0925: * test for Tidy [678268] : --output-xhtml produces bad xml.
0926: * @todo HIGH PRIORITY.
0927: * @throws Exception any exception generated during the test
0928: */
0929: public void test678268() throws Exception {
0930: executeTidyTest("678268.html");
0931: }
0932:
0933: /**
0934: * test for Tidy [680664] : Malformed comment generates bad (X)HTML.
0935: * @throws Exception any exception generated during the test
0936: */
0937: public void test680664() throws Exception {
0938: executeTidyTest("680664.xhtml");
0939: }
0940:
0941: /**
0942: * test for Tidy [695408] : Empty spans getting dropped, even if they have attrs.
0943: * @todo HIGH PRIORITY.
0944: * @throws Exception any exception generated during the test
0945: */
0946: public void test695408() throws Exception {
0947: executeTidyTest("695408.html");
0948: }
0949:
0950: /**
0951: * test for Tidy [708322] : drop-proprietary-attributes leaves table height.
0952: * @throws Exception any exception generated during the test
0953: */
0954: public void test708322() throws Exception {
0955: executeTidyTest("708322.html");
0956: }
0957:
0958: /**
0959: * test for Tidy [735603] : drops attributes from declared elements.
0960: * @throws Exception any exception generated during the test
0961: */
0962: public void test735603() throws Exception {
0963: executeTidyTest("735603.html");
0964: }
0965:
0966: /**
0967: * test for Tidy [765852] : Empty tag striping.
0968: * @throws Exception any exception generated during the test
0969: */
0970: public void test765852() throws Exception {
0971: executeTidyTest("765852.html");
0972: }
0973:
0974: /**
0975: * test for Tidy [994841] : Whitespace is removed from value attributes.
0976: * @throws Exception any exception generated during the test
0977: */
0978: public void test994841() throws Exception {
0979: executeTidyTest("994841.html");
0980: assertNoWarnings();
0981: }
0982:
0983: /**
0984: * test for Tidy [996484] : Tidy add spurious space when indenting long URIs.
0985: * @throws Exception any exception generated during the test
0986: */
0987: public void test996484() throws Exception {
0988: executeTidyTest("996484.html");
0989: }
0990:
0991: /**
0992: * test for Tidy [1031865] : Script parsing warning.
0993: * @throws Exception any exception generated during the test
0994: */
0995: public void test1031865() throws Exception {
0996: executeTidyTest("1031865.html");
0997: assertNoWarnings();
0998: }
0999:
1000: }
|