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 (encodings). 58 * <p> 59 * see <code>http://sourceforge.net/support/tracker.php?aid=(item number)</code> 60 * </p> 61 * @author Fabrizio Giustina 62 * @version $Revision: 1.10 $ ($Author: fgiust $) 63 */ 64 public class TidyEncodingBugsTest extends TidyTestCase 65 { 66 67 /*** 68 * Instantiate a new Test case. 69 * @param name test name 70 */ 71 public TidyEncodingBugsTest(String name) 72 { 73 super(name); 74 } 75 76 /*** 77 * test for Tidy [647255] : UTF16. 78 * @throws Exception any exception generated during the test 79 */ 80 public void test647255() throws Exception 81 { 82 executeTidyTest("647255.html"); 83 } 84 85 /*** 86 * test for Tidy [649812] : Does TidyLib correctly handle Mac files?. (test is UTF16) 87 * @throws Exception any exception generated during the test 88 */ 89 public void test649812() throws Exception 90 { 91 // doesn't work for missing encoding support in test case! 92 executeTidyTest("649812.html"); 93 } 94 95 /*** 96 * test for Tidy [658230] : Big5. 97 * @throws Exception any exception generated during the test 98 */ 99 public void test658230() throws Exception 100 { 101 executeTidyTest("658230.html"); 102 } 103 104 /*** 105 * test for Tidy [660397] : Add support for IBM-858 and ISO-8859-15. 106 * @throws Exception any exception generated during the test 107 */ 108 public void test660397() throws Exception 109 { 110 executeTidyTest("660397.html"); 111 } 112 113 /*** 114 * test for Tidy [676156] : tidy --input-encoding is broken. 115 * @throws Exception any exception generated during the test 116 */ 117 public void test676156() throws Exception 118 { 119 executeTidyTest("676156.html"); 120 assertWarnings(4); 121 } 122 123 /*** 124 * test for Tidy [688746] : incorrect charset value for utf-8. 125 * @throws Exception any exception generated during the test 126 */ 127 public void test688746() throws Exception 128 { 129 executeTidyTest("688746.html"); 130 } 131 132 }