diff options
Diffstat (limited to 'tests/org.eclipse.wst.css.tests.encoding')
32 files changed, 0 insertions, 1124 deletions
diff --git a/tests/org.eclipse.wst.css.tests.encoding/.classpath b/tests/org.eclipse.wst.css.tests.encoding/.classpath deleted file mode 100644 index ce7393340..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/.classpath +++ /dev/null @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<classpath> - <classpathentry kind="src" path="src"/> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/> - <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> - <classpathentry kind="output" path="bin"/> -</classpath> diff --git a/tests/org.eclipse.wst.css.tests.encoding/.cvsignore b/tests/org.eclipse.wst.css.tests.encoding/.cvsignore deleted file mode 100644 index f8471d82a..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/.cvsignore +++ /dev/null @@ -1,5 +0,0 @@ -bin -build.xml -temp.folder -cssencodingtests.jar -javaCompiler.cssencodingtests.jar.args diff --git a/tests/org.eclipse.wst.css.tests.encoding/.project b/tests/org.eclipse.wst.css.tests.encoding/.project deleted file mode 100644 index ea358d590..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/.project +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>org.eclipse.wst.css.tests.encoding</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.ManifestBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.SchemaBuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.pde.PluginNature</nature> - <nature>org.eclipse.jdt.core.javanature</nature> - </natures> -</projectDescription> diff --git a/tests/org.eclipse.wst.css.tests.encoding/.settings/org.eclipse.core.resources.prefs b/tests/org.eclipse.wst.css.tests.encoding/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index afa5c9135..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,3 +0,0 @@ -#Tue Apr 04 03:36:32 EDT 2006 -eclipse.preferences.version=1 -encoding/<project>=ISO-8859-1 diff --git a/tests/org.eclipse.wst.css.tests.encoding/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.wst.css.tests.encoding/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 2dd8b5cef..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,80 +0,0 @@ -#Sun Apr 16 14:37:21 EDT 2006 -eclipse.preferences.version=1 -org.eclipse.jdt.core.builder.cleanOutputFolder=clean -org.eclipse.jdt.core.builder.duplicateResourceTask=warning -org.eclipse.jdt.core.builder.invalidClasspath=ignore -org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch -org.eclipse.jdt.core.circularClasspath=error -org.eclipse.jdt.core.classpath.exclusionPatterns=enabled -org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=disabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.4 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.doc.comment.support=enabled -org.eclipse.jdt.core.compiler.maxProblemPerUnit=100 -org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning -org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning -org.eclipse.jdt.core.compiler.problem.autoboxing=ignore -org.eclipse.jdt.core.compiler.problem.deprecation=warning -org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled -org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled -org.eclipse.jdt.core.compiler.problem.discouragedReference=ignore -org.eclipse.jdt.core.compiler.problem.emptyStatement=warning -org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning -org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore -org.eclipse.jdt.core.compiler.problem.finalParameterBound=ignore -org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=error -org.eclipse.jdt.core.compiler.problem.forbiddenReference=error -org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning -org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning -org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore -org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=error -org.eclipse.jdt.core.compiler.problem.invalidJavadoc=ignore -org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled -org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled -org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=private -org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore -org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=error -org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore -org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore -org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=enabled -org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public -org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore -org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=enabled -org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=private -org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore -org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning -org.eclipse.jdt.core.compiler.problem.noEffectAssignment=error -org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning -org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore -org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning -org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning -org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=enabled -org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=error -org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled -org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=warning -org.eclipse.jdt.core.compiler.problem.typeParameterHiding=ignore -org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning -org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore -org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning -org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore -org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=error -org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore -org.eclipse.jdt.core.compiler.problem.unsafeTypeOperation=warning -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled -org.eclipse.jdt.core.compiler.problem.unusedImport=error -org.eclipse.jdt.core.compiler.problem.unusedLabel=error -org.eclipse.jdt.core.compiler.problem.unusedLocal=error -org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore -org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled -org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled -org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=error -org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning -org.eclipse.jdt.core.compiler.source=1.3 -org.eclipse.jdt.core.incompatibleJDKLevel=ignore -org.eclipse.jdt.core.incompleteClasspath=error diff --git a/tests/org.eclipse.wst.css.tests.encoding/.settings/org.eclipse.jdt.ui.prefs b/tests/org.eclipse.wst.css.tests.encoding/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index ef2ac6532..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,3 +0,0 @@ -#Tue Apr 04 03:36:39 EDT 2006 -eclipse.preferences.version=1 -internal.default.compliance=default diff --git a/tests/org.eclipse.wst.css.tests.encoding/.settings/org.eclipse.ltk.core.refactoring.prefs b/tests/org.eclipse.wst.css.tests.encoding/.settings/org.eclipse.ltk.core.refactoring.prefs deleted file mode 100644 index c59368c5e..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/.settings/org.eclipse.ltk.core.refactoring.prefs +++ /dev/null @@ -1,3 +0,0 @@ -#Tue Apr 04 03:36:32 EDT 2006 -eclipse.preferences.version=1 -org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false diff --git a/tests/org.eclipse.wst.css.tests.encoding/.settings/org.eclipse.pde.prefs b/tests/org.eclipse.wst.css.tests.encoding/.settings/org.eclipse.pde.prefs deleted file mode 100644 index f72495846..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/.settings/org.eclipse.pde.prefs +++ /dev/null @@ -1,15 +0,0 @@ -#Sun Apr 16 14:05:29 EDT 2006 -compilers.p.build=0 -compilers.p.deprecated=1 -compilers.p.illegal-att-value=0 -compilers.p.no-required-att=0 -compilers.p.not-externalized-att=0 -compilers.p.unknown-attribute=0 -compilers.p.unknown-class=0 -compilers.p.unknown-element=0 -compilers.p.unknown-resource=0 -compilers.p.unresolved-ex-points=0 -compilers.p.unresolved-import=0 -compilers.p.unused-element-or-attribute=0 -compilers.use-project=true -eclipse.preferences.version=1 diff --git a/tests/org.eclipse.wst.css.tests.encoding/META-INF/MANIFEST.MF b/tests/org.eclipse.wst.css.tests.encoding/META-INF/MANIFEST.MF deleted file mode 100644 index 5821701af..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/META-INF/MANIFEST.MF +++ /dev/null @@ -1,19 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: %Bundle-Name.0 -Bundle-SymbolicName: org.eclipse.wst.css.tests.encoding -Bundle-Version: 1.0.500.qualifier -Bundle-ClassPath: cssencodingtests.jar -Bundle-Activator: org.eclipse.wst.css.tests.encoding.CSSEncodingTestsPlugin -Bundle-Vendor: %Bundle-Vendor.0 -Bundle-Localization: plugin -Export-Package: org.eclipse.wst.css.tests.encoding, - org.eclipse.wst.css.tests.encoding.css -Require-Bundle: org.eclipse.core.resources, - org.eclipse.core.runtime, - org.eclipse.wst.css.core, - org.junit;bundle-version=3.8.2, - org.eclipse.wst.sse.core, - org.eclipse.wst.xml.tests.encoding -Bundle-ActivationPolicy: lazy -Bundle-RequiredExecutionEnvironment: J2SE-1.4 diff --git a/tests/org.eclipse.wst.css.tests.encoding/about.html b/tests/org.eclipse.wst.css.tests.encoding/about.html deleted file mode 100644 index 2199df3f0..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/about.html +++ /dev/null @@ -1,34 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> -<HTML> - -<head> -<title>About</title> -<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1"> -</head> - -<BODY lang="EN-US"> - -<H3>About This Content</H3> - -<P>June, 2008</P> - -<H3>License</H3> - -<P>The Eclipse Foundation makes available all content in this plug-in -("Content"). Unless otherwise indicated below, the Content is provided to you -under the terms and conditions of the Eclipse Public License Version 1.0 -("EPL"). A copy of the EPL is available at -<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>. -For purposes of the EPL, "Program" will mean the Content.</P> - -<P>If you did not receive this Content directly from the Eclipse Foundation, the -Content is being redistributed by another party ("Redistributor") and different -terms and conditions may apply to your use of any object code in the Content. -Check the Redistributor’s license that was provided with the Content. If no such -license exists, contact the Redistributor. Unless otherwise indicated below, the -terms and conditions of the EPL still apply to any source code in the Content -and such source code may be obtained at -<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P> - -</BODY> -</HTML> diff --git a/tests/org.eclipse.wst.css.tests.encoding/build.properties b/tests/org.eclipse.wst.css.tests.encoding/build.properties deleted file mode 100644 index 3c69e5174..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/build.properties +++ /dev/null @@ -1,20 +0,0 @@ -############################################################################### -# Copyright (c) 2005, 2006 IBM Corporation and others. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# IBM Corporation - initial API and implementation -############################################################################### -bin.includes = cssencodingtests.jar,\ - testfiles/,\ - test.xml,\ - META-INF/,\ - about.html,\ - plugin.properties -src.includes = cssencodingtests.jar -source.cssencodingtests.jar = src/ -output.cssencodingtests.jar = bin/ -
\ No newline at end of file diff --git a/tests/org.eclipse.wst.css.tests.encoding/plugin.properties b/tests/org.eclipse.wst.css.tests.encoding/plugin.properties deleted file mode 100644 index 334342cc9..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/plugin.properties +++ /dev/null @@ -1,13 +0,0 @@ -############################################################################### -# Copyright (c) 2005, 2006 IBM Corporation and others. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# IBM Corporation - initial API and implementation -############################################################################### -# properties file for org.eclipse.wst.css.tests.encoding -Bundle-Vendor.0 = Eclipse Web Tools Platform -Bundle-Name.0 = CSS Encoding Tests Plug-in
\ No newline at end of file diff --git a/tests/org.eclipse.wst.css.tests.encoding/src/org/eclipse/wst/css/tests/encoding/CSSEncodingTestSuite.java b/tests/org.eclipse.wst.css.tests.encoding/src/org/eclipse/wst/css/tests/encoding/CSSEncodingTestSuite.java deleted file mode 100644 index 290d54b39..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/src/org/eclipse/wst/css/tests/encoding/CSSEncodingTestSuite.java +++ /dev/null @@ -1,56 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.css.tests.encoding; - -import junit.framework.Test; -import junit.framework.TestSuite; - -import org.eclipse.wst.css.tests.encoding.css.CSSEncodingTester; -import org.eclipse.wst.css.tests.encoding.css.CSSHeadTokenizerTester; -import org.eclipse.wst.css.tests.encoding.css.TestContentTypeDetectionForCSS; - -public class CSSEncodingTestSuite extends TestSuite { - - private static Class[] classes = new Class[]{CSSEncodingTester.class, CSSHeadTokenizerTester.class, TestContentTypeDetectionForCSS.class}; - - public static Test suite() { - return new CSSEncodingTestSuite(); - } - - public CSSEncodingTestSuite() { - super("CSS Encoding Test Suite"); - for (int i = 0; i < classes.length; i++) { - addTest(new TestSuite(classes[i], classes[i].getName())); - } - } - - /** - * @param theClass - */ - public CSSEncodingTestSuite(Class theClass) { - super(theClass); - } - - /** - * @param theClass - * @param name - */ - public CSSEncodingTestSuite(Class theClass, String name) { - super(theClass, name); - } - - /** - * @param name - */ - public CSSEncodingTestSuite(String name) { - super(name); - } -} diff --git a/tests/org.eclipse.wst.css.tests.encoding/src/org/eclipse/wst/css/tests/encoding/CSSEncodingTestsPlugin.java b/tests/org.eclipse.wst.css.tests.encoding/src/org/eclipse/wst/css/tests/encoding/CSSEncodingTestsPlugin.java deleted file mode 100644 index da799c007..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/src/org/eclipse/wst/css/tests/encoding/CSSEncodingTestsPlugin.java +++ /dev/null @@ -1,141 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.css.tests.encoding; - -import java.io.File; -import java.io.FileNotFoundException; -import java.io.FileReader; -import java.io.IOException; -import java.io.Reader; -import java.net.URL; -import java.util.ArrayList; -import java.util.List; -import java.util.MissingResourceException; -import java.util.ResourceBundle; - -import org.eclipse.core.resources.IWorkspace; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.FileLocator; -import org.eclipse.core.runtime.Platform; -import org.eclipse.core.runtime.Plugin; - -/** - * The main plugin class to be used in the desktop. - */ -public class CSSEncodingTestsPlugin extends Plugin { - // The shared instance. - private static CSSEncodingTestsPlugin plugin; - - public static List getAllTestFiles(String topDirName) { - List result = null; - URL installURL = getInstallLocation(); - // String scheme = installURL.getProtocol(); - String path = installURL.getPath(); - String location = path + topDirName; - File topDir = new File(location); - if (!topDir.isDirectory()) { - throw new IllegalArgumentException(topDirName + " is not a directory"); - } - result = getFilesInDir(topDir); - return result; - } - - /** - * Returns the shared instance. - */ - public static CSSEncodingTestsPlugin getDefault() { - return plugin; - } - - private static List getFilesInDir(File topDir) { - List files = new ArrayList(); - File[] topFiles = topDir.listFiles(); - for (int i = 0; i < topFiles.length; i++) { - File file = topFiles[i]; - if (file.isFile()) { - files.add(file); - } - else if (file.isDirectory() && !file.getName().endsWith("CVS")) { - List innerFiles = getFilesInDir(file); - files.addAll(innerFiles); - } - } - return files; - } - - public static URL getInstallLocation() { - URL installLocation = Platform.getBundle("org.eclipse.wst.css.tests.encoding").getEntry("/"); - URL resolvedLocation = null; - try { - resolvedLocation = FileLocator.resolve(installLocation); - } - catch (IOException e) { - // impossible - throw new Error(e); - } - return resolvedLocation; - } - - /** - * Returns the string from the plugin's resource bundle, or 'key' if not - * found. - */ - public static String getResourceString(String key) { - ResourceBundle bundle = CSSEncodingTestsPlugin.getDefault().getResourceBundle(); - try { - return (bundle != null ? bundle.getString(key) : key); - } - catch (MissingResourceException e) { - return key; - } - } - - public static File getTestFile(String filepath) { - URL installURL = getInstallLocation(); - // String scheme = installURL.getProtocol(); - String path = installURL.getPath(); - String location = path + filepath; - File result = new File(location); - return result; - } - - public static Reader getTestReader(String filepath) throws FileNotFoundException { - URL installURL = getInstallLocation(); - // String scheme = installURL.getProtocol(); - String path = installURL.getPath(); - String location = path + filepath; - Reader result = new FileReader(location); - return result; - } - - /** - * Returns the workspace instance. - */ - public static IWorkspace getWorkspace() { - return ResourcesPlugin.getWorkspace(); - } - - /** - * The constructor. - */ - public CSSEncodingTestsPlugin() { - super(); - plugin = this; - } - - /** - * Returns the plugin's resource bundle, - */ - public ResourceBundle getResourceBundle() { - return null; - } - -} diff --git a/tests/org.eclipse.wst.css.tests.encoding/src/org/eclipse/wst/css/tests/encoding/css/CSSEncodingTester.java b/tests/org.eclipse.wst.css.tests.encoding/src/org/eclipse/wst/css/tests/encoding/css/CSSEncodingTester.java deleted file mode 100644 index 94e48ca55..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/src/org/eclipse/wst/css/tests/encoding/css/CSSEncodingTester.java +++ /dev/null @@ -1,196 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004, 2008 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.css.tests.encoding.css; - -import java.io.BufferedInputStream; -import java.io.File; -import java.io.FileInputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.Reader; -import java.nio.charset.Charset; -import java.nio.charset.CharsetDecoder; -import java.nio.charset.CodingErrorAction; - -import junit.framework.TestCase; - -import org.eclipse.wst.css.core.internal.contenttype.CSSResourceEncodingDetector; -import org.eclipse.wst.css.tests.encoding.CSSEncodingTestsPlugin; -import org.eclipse.wst.sse.core.internal.encoding.EncodingMemento; -import org.eclipse.wst.sse.core.internal.encoding.IResourceCharsetDetector; - -public class CSSEncodingTester extends TestCase { - - /** - * Ensures that an InputStream has mark/reset support. - */ - private static InputStream getMarkSupportedStream(InputStream original) { - if (original == null) - return null; - if (original.markSupported()) - return original; - return new BufferedInputStream(original); - } - private boolean DEBUG = false; - private final String fileDir = "css/"; - // private final String pluginLocation = - // TestsPlugin.getInstallLocation().toString(); - private final String fileHome = "testfiles/"; - private final String fileLocation = fileHome + fileDir; - private int READ_BUFFER_SIZE = 8000; - - private void doTestFileStream(String filename, String expectedIANAEncoding, IResourceCharsetDetector detector) throws IOException { - File file = CSSEncodingTestsPlugin.getTestFile(filename); - if (!file.exists()) - throw new IllegalArgumentException(filename + " was not found"); - InputStream inputStream = new FileInputStream(file); - // InputStream inStream = getClass().getResourceAsStream(filename); - InputStream istream = getMarkSupportedStream(inputStream); - try { - detector.set(istream); - EncodingMemento encodingMemento = ((CSSResourceEncodingDetector)detector).getEncodingMemento(); - - String foundIANAEncoding = null; - - if (encodingMemento != null) { - foundIANAEncoding = encodingMemento.getDetectedCharsetName(); - } - // I changed many "equals" to "equalsIgnoreCase" on 11/4/2002, - // since - // some issues with SHIFT_JIS vs. Shift_JIS were causing failures. - // We do want to be tolerant on input, and accept either, but I - // think - // that SupportedJavaEncodings needs to be changed to "recommend" - // Shift_JIS. - boolean expectedIANAResult = false; - if (expectedIANAEncoding == null) { - expectedIANAResult = expectedIANAEncoding == foundIANAEncoding; - } - else { - expectedIANAResult = expectedIANAEncoding.equalsIgnoreCase(foundIANAEncoding); - } - - assertTrue("encoding test file " + filename + " expected: " + expectedIANAEncoding + " found: " + foundIANAEncoding, expectedIANAResult); - // a very simple read test ... will cause JUnit error (not fail) - // if - // throws exception. - if (foundIANAEncoding != null) { - ensureCanRead(filename, foundIANAEncoding, istream); - } - } - finally { - if (istream != null) { - istream.close(); - } - if (inputStream != null) { - inputStream.close(); - } - } - } - - /** - * This method just reads to stream, to be sure it can be read per - * encoding, without exception. - */ - private void ensureCanRead(String filename, String encoding, InputStream inputStream) throws IOException { - Charset charset = Charset.forName(encoding); - CharsetDecoder charsetDecoder = charset.newDecoder(); - charsetDecoder.onMalformedInput(CodingErrorAction.REPORT); - charsetDecoder.onUnmappableCharacter(CodingErrorAction.REPORT); - - InputStreamReader reader = new InputStreamReader(inputStream, charsetDecoder); - StringBuffer stringBuffer = readInputStream(reader); - if (DEBUG) { - System.out.println(); - System.out.println(filename); - System.out.println(stringBuffer.toString()); - } - } - - private StringBuffer readInputStream(Reader reader) throws IOException { - - StringBuffer buffer = new StringBuffer(); - int numRead = 0; - char tBuff[] = new char[READ_BUFFER_SIZE]; - while ((numRead = reader.read(tBuff, 0, tBuff.length)) != -1) { - buffer.append(tBuff, 0, numRead); - } - return buffer; - } - - public void testBestCase() throws IOException { - String filename = fileLocation + "nonStandard.css"; - doTestFileStream(filename, "ISO-8859-6", new CSSResourceEncodingDetector()); - - } - - public void testEmptyFile() throws IOException { - String filename = fileLocation + "emptyFile.css"; - doTestFileStream(filename, null, new CSSResourceEncodingDetector()); - } - - public void testEUCJP() throws IOException { - String filename = fileLocation + "encoding_test_eucjp.css"; - doTestFileStream(filename, "EUC-JP", new CSSResourceEncodingDetector()); - } - - public void testJIS() throws IOException { - String filename = fileLocation + "encoding_test_jis.css"; - doTestFileStream(filename, "ISO-2022-JP", new CSSResourceEncodingDetector()); - } - - public void testNoEncoding() throws IOException { - String filename = fileLocation + "noEncoding.css"; - doTestFileStream(filename, null, new CSSResourceEncodingDetector()); - } - - public void testnonStandardIllFormed() throws IOException { - String filename = fileLocation + "nonStandardIllFormed.css"; - doTestFileStream(filename, "ISO-8859-6", new CSSResourceEncodingDetector()); - } - - public void testnonStandardIllFormed2() throws IOException { - String filename = fileLocation + "nonStandardIllFormed2.css"; - doTestFileStream(filename, "ISO-8859-6", new CSSResourceEncodingDetector()); - } - - public void testShiftJIS() throws IOException { - String filename = fileLocation + "encoding_test_sjis.css"; - doTestFileStream(filename, "SHIFT_JIS", new CSSResourceEncodingDetector()); - } - - public void testUTF16be() throws IOException { - String filename = fileLocation + "utf16be.css"; - doTestFileStream(filename, "UTF-16BE", new CSSResourceEncodingDetector()); - } - - public void testUTF16le() throws IOException { - String filename = fileLocation + "utf16le.css"; - doTestFileStream(filename, "UTF-16LE", new CSSResourceEncodingDetector()); - } - - public void testUTF16beMalformed() throws IOException { - String filename = fileLocation + "utf16beMalformed.css"; - doTestFileStream(filename, "UTF-16BE", new CSSResourceEncodingDetector()); - } - - public void testUTF16leMalformed() throws IOException { - String filename = fileLocation + "utf16leMalformed.css"; - doTestFileStream(filename, "UTF-16LE", new CSSResourceEncodingDetector()); - } - - public void testUTF16BOM() throws IOException { - String filename = fileLocation + "utf16BOM.css"; - doTestFileStream(filename, "UTF-16", new CSSResourceEncodingDetector()); - } - -} diff --git a/tests/org.eclipse.wst.css.tests.encoding/src/org/eclipse/wst/css/tests/encoding/css/CSSHeadTokenizerTester.java b/tests/org.eclipse.wst.css.tests.encoding/src/org/eclipse/wst/css/tests/encoding/css/CSSHeadTokenizerTester.java deleted file mode 100644 index 4aff6a617..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/src/org/eclipse/wst/css/tests/encoding/css/CSSHeadTokenizerTester.java +++ /dev/null @@ -1,205 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004, 2008 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.css.tests.encoding.css; - -import java.io.IOException; -import java.io.Reader; - -import junit.framework.TestCase; - -import org.eclipse.wst.css.core.internal.contenttype.CSSHeadTokenizer; -import org.eclipse.wst.css.core.internal.contenttype.CSSHeadTokenizerConstants; -import org.eclipse.wst.css.core.internal.contenttype.HeadParserToken; -import org.eclipse.wst.css.tests.encoding.CSSEncodingTestsPlugin; - -public class CSSHeadTokenizerTester extends TestCase { - private boolean DEBUG = false; - private String fcharset; - private final String fileDir = "css/"; - private final String fileHome = "testfiles/"; - private final String fileLocation = this.fileHome + this.fileDir; - - private void doTestFile(String filename, String expectedName) throws IOException { - doTestFile(filename, expectedName, null); - } - - private void doTestFile(String filename, String expectedName, String finalTokenType) throws IOException { - CSSHeadTokenizer tokenizer = null; - Reader fileReader = null; - try { - if (this.DEBUG) { - System.out.println(); - System.out.println(" " + filename); - System.out.println(); - } - fileReader = CSSEncodingTestsPlugin.getTestReader(filename); - tokenizer = new CSSHeadTokenizer(fileReader); - } - catch (IOException e) { - System.out.println("Error opening file \"" + filename + "\""); - throw e; - } - - HeadParserToken resultToken = null; - HeadParserToken token = parseHeader(tokenizer); - String resultValue = this.fcharset; - fileReader.close(); - if (finalTokenType != null) { - assertTrue("did not end as expected. found: " + token.getType(), finalTokenType.equals(token.getType())); - } - else { - if (expectedName == null) { - assertTrue("expected no encoding, but found: " + resultValue, resultToken == null); - } - else { - assertTrue("expected " + expectedName + " but found " + resultValue, expectedName.equals(resultValue)); - } - } - - } - - private boolean isLegalString(String tokenType) { - boolean result = false; - if (tokenType == null) { - result = false; - } - else { - result = tokenType.equals(EncodingParserConstants.StringValue) || tokenType.equals(EncodingParserConstants.UnDelimitedStringValue) || tokenType.equals(EncodingParserConstants.InvalidTerminatedStringValue) || tokenType.equals(EncodingParserConstants.InvalidTermintatedUnDelimitedStringValue); - } - return result; - } - - /** - * Give's priority to encoding value, if found else, looks for contentType - * value; - */ - private HeadParserToken parseHeader(CSSHeadTokenizer tokenizer) throws IOException { - HeadParserToken token = null; - HeadParserToken finalToken = null; - do { - token = tokenizer.getNextToken(); - String tokenType = token.getType(); - if(canHandleAsUnicodeStream(tokenType)) { - - } - if (tokenType == CSSHeadTokenizerConstants.CHARSET_RULE) { - if (tokenizer.hasMoreTokens()) { - HeadParserToken valueToken = tokenizer.getNextToken(); - String valueTokenType = valueToken.getType(); - if (isLegalString(valueTokenType)) { - this.fcharset = valueToken.getText(); - - } - } - } - } - while (tokenizer.hasMoreTokens()); - finalToken = token; - return finalToken; - - } - - private boolean canHandleAsUnicodeStream(String tokenType) { - boolean canHandleAsUnicode = false; - if (tokenType == EncodingParserConstants.UTF83ByteBOM) { - canHandleAsUnicode = true; - this.fcharset = "UTF-8"; //$NON-NLS-1$ - } - else if (tokenType == EncodingParserConstants.UTF16BE || tokenType == EncodingParserConstants.UTF16LE) { - canHandleAsUnicode = true; - this.fcharset = "UTF-16"; //$NON-NLS-1$ - } - return canHandleAsUnicode; - } - - public void testBestCase() throws IOException { - String filename = this.fileLocation + "nonStandard.css"; - doTestFile(filename, "ISO-8859-6"); - - } - - public void testEmptyFile() throws IOException { - String filename = this.fileLocation + "emptyFile.css"; - doTestFile(filename, null); - } - - public void _testEUCJP() throws IOException { - String filename = this.fileLocation + "encoding_test_eucjp.css"; - doTestFile(filename, "EUC-JP"); - } - - public void testJIS() throws IOException { - String filename = this.fileLocation + "encoding_test_jis.css"; - doTestFile(filename, "ISO-2022-JP"); - } - - public void testNoEncoding() throws IOException { - String filename = this.fileLocation + "noEncoding.css"; - doTestFile(filename, null); - } - - public void testnonStandardIllFormed() throws IOException { - String filename = this.fileLocation + "nonStandardIllFormed.css"; - doTestFile(filename, "ISO-8859-6"); - } - - public void testnonStandardIllFormed2() throws IOException { - String filename = this.fileLocation + "nonStandardIllFormed2.css"; - doTestFile(filename, "ISO-8859-6"); - } - - public void _testShiftJIS() throws IOException { - String filename = this.fileLocation + "encoding_test_sjis.css"; - doTestFile(filename, "SHIFT_JIS"); - } - - public void testUTF16be() throws IOException { - String filename = fileLocation + "utf16be.css"; - doTestFile(filename, "UTF-16BE"); - } - - public void testUTF16le() throws IOException { - String filename = fileLocation + "utf16le.css"; - doTestFile(filename, "UTF-16LE"); - } - - public void testUTF16beMalformed() throws IOException { - String filename = fileLocation + "utf16beMalformed.css"; - doTestFile(filename, "UTF-16BE"); - } - - public void testUTF16leMalformed() throws IOException { - String filename = fileLocation + "utf16leMalformed.css"; - doTestFile(filename, "UTF-16LE"); - } - - /* - sun.io.MalformedInputException - at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java:262) - at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java:314) - at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:364) - at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:250) - at java.io.InputStreamReader.read(InputStreamReader.java:212) - at org.eclipse.wst.css.core.internal.contenttype.CSSHeadTokenizer.yy_advance(CSSHeadTokenizer.java:337) - at org.eclipse.wst.css.core.internal.contenttype.CSSHeadTokenizer.primGetNextToken(CSSHeadTokenizer.java:470) - at org.eclipse.wst.css.core.internal.contenttype.CSSHeadTokenizer.getNextToken(CSSHeadTokenizer.java:229) - at org.eclipse.wst.css.tests.encoding.css.CSSHeadTokenizerTester.parseHeader(CSSHeadTokenizerTester.java:88) - at org.eclipse.wst.css.tests.encoding.css.CSSHeadTokenizerTester.doTestFile(CSSHeadTokenizerTester.java:52) - at org.eclipse.wst.css.tests.encoding.css.CSSHeadTokenizerTester.doTestFile(CSSHeadTokenizerTester.java:31) - at org.eclipse.wst.css.tests.encoding.css.CSSHeadTokenizerTester.testUTF16BOM(CSSHeadTokenizerTester.java:186) - */ - - public void testUTF16BOM() throws IOException { - // https://bugs.eclipse.org/bugs/show_bug.cgi?id=243735 -// String filename = fileLocation + "utf16BOM.css"; -// doTestFile(filename, "UTF-16"); - } -} diff --git a/tests/org.eclipse.wst.css.tests.encoding/src/org/eclipse/wst/css/tests/encoding/css/EncodingParserConstants.java b/tests/org.eclipse.wst.css.tests.encoding/src/org/eclipse/wst/css/tests/encoding/css/EncodingParserConstants.java deleted file mode 100644 index c4144a7b9..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/src/org/eclipse/wst/css/tests/encoding/css/EncodingParserConstants.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Jens Lukowski/Innoopract - initial renaming/restructuring - * - *******************************************************************************/ -package org.eclipse.wst.css.tests.encoding.css; - - -public interface EncodingParserConstants { - - final String EOF = "EOF"; //$NON-NLS-1$ - final String InvalidTerminatedStringValue = "InvalidTerminatedStringValue"; //$NON-NLS-1$ - final String InvalidTermintatedUnDelimitedStringValue = "InvalidTermintatedUnDelimitedStringValue"; //$NON-NLS-1$ - final String MAX_CHARS_REACHED = "MAX_CHARS_REACHED"; //$NON-NLS-1$ - final String StringValue = "strval"; //$NON-NLS-1$ - final String UnDelimitedStringValue = "UnDelimitedStringValue"; //$NON-NLS-1$ - public final String UTF16BE = "UTF16BE"; //$NON-NLS-1$ - public final String UTF16LE = "UTF16LE"; //$NON-NLS-1$ - - - public final String UTF83ByteBOM = "UTF83ByteBOM"; //$NON-NLS-1$ - -} diff --git a/tests/org.eclipse.wst.css.tests.encoding/src/org/eclipse/wst/css/tests/encoding/css/TestContentTypeDetectionForCSS.java b/tests/org.eclipse.wst.css.tests.encoding/src/org/eclipse/wst/css/tests/encoding/css/TestContentTypeDetectionForCSS.java deleted file mode 100644 index 515d15980..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/src/org/eclipse/wst/css/tests/encoding/css/TestContentTypeDetectionForCSS.java +++ /dev/null @@ -1,73 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005, 2008 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * - *******************************************************************************/ - -package org.eclipse.wst.css.tests.encoding.css; - -import java.io.IOException; - -import org.eclipse.core.runtime.CoreException; -import org.eclipse.wst.xml.tests.encoding.read.TestContentTypeDetection; - -public class TestContentTypeDetectionForCSS extends TestContentTypeDetection { - public void testFile7() throws CoreException, IOException { - doTest("org.eclipse.wst.css.core.csssource", "testfiles/css/nonStandardIllFormed.css", null); - } - - public void testFile1001() throws CoreException, IOException { - doTest("org.eclipse.wst.css.core.csssource", "testfiles/css/emptyFile.css", null); - } - - public void testFile1002() throws CoreException, IOException { - doTest("org.eclipse.wst.css.core.csssource", "testfiles/css/encoding_test_eucjp.css", null); - } - - public void testFile1003() throws CoreException, IOException { - doTest("org.eclipse.wst.css.core.csssource", "testfiles/css/encoding_test_jis.css", null); - } - - public void testFile4() throws CoreException, IOException { - doTest("org.eclipse.wst.css.core.csssource", "testfiles/css/encoding_test_sjis.css", null); - } - - - public void testFile5() throws CoreException, IOException { - doTest("org.eclipse.wst.css.core.csssource", "testfiles/css/noEncoding.css", null); - } - - public void testFile6() throws CoreException, IOException { - doTest("org.eclipse.wst.css.core.csssource", "testfiles/css/nonStandard.css", null); - } - - public void testFile8() throws CoreException, IOException { - doTest("org.eclipse.wst.css.core.csssource", "testfiles/css/nonStandardIllFormed2.css", null); - } - - public void testUTF16be() throws CoreException, IOException { - doTest("org.eclipse.wst.css.core.csssource", "testfiles/css/utf16be.css", null); - } - - public void testUTF16le() throws CoreException, IOException { - doTest("org.eclipse.wst.css.core.csssource", "testfiles/css/utf16le.css", null); - } - - public void testUTF16beMalformed() throws CoreException, IOException { - doTest("org.eclipse.wst.css.core.csssource", "testfiles/css/utf16beMalformed.css", null); - } - - public void testUTF16leMalformed() throws CoreException, IOException { - doTest("org.eclipse.wst.css.core.csssource", "testfiles/css/utf16leMalformed.css", null); - } - - public void testUTF16BOM() throws CoreException, IOException { - doTest("org.eclipse.wst.css.core.csssource", "testfiles/css/utf16BOM.css", null); - } -} diff --git a/tests/org.eclipse.wst.css.tests.encoding/test.xml b/tests/org.eclipse.wst.css.tests.encoding/test.xml deleted file mode 100644 index 8d6533761..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/test.xml +++ /dev/null @@ -1,115 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<project - name="testsuite" - default="run" - basedir="."> - - <!-- The following properties should be passed into this script --> - <!-- ${eclipse-home} --> - <!-- ${buildDirectory} --> - <!-- ${buildLabel} --> - - <!-- should be little need to change what's above --> - - <property - name="plugin-name" - value="org.eclipse.wst.css.tests.encoding" /> - <property - name="classname" - value="org.eclipse.wst.css.tests.encoding.CSSEncodingTestSuite" /> - <property - name="testType" - value="core-test" /> - - <!-- should be little need to change what's below --> - - <echo message="basedir: ${basedir}" /> - <echo message="eclipse-home: ${eclipse-home}" /> - <echo message="buildDirectory: ${buildDirectory}" /> - <echo message="plugin-name: ${plugin-name}" /> - <echo message="classname: ${classname}" /> - <echo message="testType ${testType}" /> - - - <property - name="library-file" - value="${eclipse-home}/plugins/org.eclipse.test_3.1.0/library.xml" /> - <property - name="workspace" - value="${eclipse-home}/junitworkspaces/${plugin-name}" /> - - <!-- This target holds all initialization code that needs to be done for --> - <!-- all tests that are to be run. Initialization for individual tests --> - <!-- should be done within the body of the suite target. --> - <target name="init"> - <tstamp /> - <delete> - <fileset - dir="${eclipse-home}" - includes="${plugin-name}.*xml" /> - </delete> - <!-- make directory, in case path doesn't exist yet --> - <mkdir dir="${workspace}" /> - <!-- but delete to make sure fresh contents--> - <delete - dir="${workspace}" - quiet="true" /> - - </target> - - <!-- This target defines the tests that need to be run. --> - <target name="suite"> - - <ant - target="${testType}" - antfile="${library-file}" - dir="${eclipse-home}"> - <property - name="data-dir" - value="${workspace}" /> - <property - name="plugin-name" - value="${plugin-name}" /> - <property - name="classname" - value="${classname}" /> - <property - name="plugin-path" - value="${eclipse-home}/plugins/${plugin-name}" /> - </ant> - - <copy - failonerror="false" - file="${workspace}/.metadata/.log" - tofile="${buildDirectory}/${buildLabel}/testResults/consolelogs/${plugin-name}.consolelog.txt" /> - - </target> - - <!-- This target holds code to cleanup the testing environment after --> - <!-- after all of the tests have been run. You can use this target to --> - <!-- delete temporary files that have been created. --> - <target name="cleanup"> - <!-- usually no need to delete workspace until next run, and leaving it allows inspection --> - <!-- <delete dir="${workspace}" quiet="true" /> --> - </target> - - <!-- This target runs the test suite. Any actions that need to happen --> - <!-- after all the tests have been run should go here. --> - <target - name="run" - depends="init,suite,cleanup"> - <ant - target="collect" - antfile="${library-file}" - dir="${eclipse-home}"> - <property - name="includes" - value="${plugin-name}.*xml" /> - <property - name="output-file" - value="${plugin-name}.xml" /> - </ant> - </target> - -</project>
\ No newline at end of file diff --git a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/emptyFile.css b/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/emptyFile.css deleted file mode 100644 index e69de29bb..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/emptyFile.css +++ /dev/null diff --git a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/encoding_test_eucjp.css b/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/encoding_test_eucjp.css deleted file mode 100644 index 1e256e7ca..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/encoding_test_eucjp.css +++ /dev/null @@ -1,5 +0,0 @@ -@charset "EUC-JP";
-
-BODY {
- font-family : "£Í£Ó £Ð¥´¥·¥Ã¥¯";
-}
\ No newline at end of file diff --git a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/encoding_test_jis.css b/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/encoding_test_jis.css deleted file mode 100644 index 384768beb..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/encoding_test_jis.css +++ /dev/null @@ -1,5 +0,0 @@ -@charset "ISO-2022-JP";
-
-BODY {
- font-family : "$B#M#S(B $B#P%4%7%C%/(B";
-}
\ No newline at end of file diff --git a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/encoding_test_sjis.css b/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/encoding_test_sjis.css deleted file mode 100644 index e529cda9e..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/encoding_test_sjis.css +++ /dev/null @@ -1,5 +0,0 @@ -@charset "SHIFT_JIS";
-
-BODY {
- font-family : "‚l‚r ‚oƒSƒVƒbƒN";
-}
\ No newline at end of file diff --git a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/noEncoding.css b/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/noEncoding.css deleted file mode 100644 index f3f06bc9e..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/noEncoding.css +++ /dev/null @@ -1,46 +0,0 @@ -BODY {
- font-family: "Times New Roman", "MS Sans Serif";
- text-decoration: none;
- background-color: white;
-}
-
-TD {
- font-family: "Times New Roman";
- font-size: 12pt;
- color: black;
- font-style: normal;
- text-align: left;
-}
-
-TH {
- font-family: "Times New Roman";
- font-size: 12pt;
- color: black;
- font-style: normal;
- font-weight: bolder;
- text-align: left;
-}
-
-H1 {
- font-family: "Times New Roman";
- font-size: 14pt;
- color: black;
- font-style: normal;
- font-weight: bolder;
- text-align: center
-}
-
-H2 {
- font-family: "Times New Roman";
- font-size: 12pt;
- color: black;
- font-style: normal;
- font-weight: bolder
-}
-
-H3 {
- font-family: "Times New Roman";
- font-size: 12pt;
- color: black;
- font-style: italic
-}
\ No newline at end of file diff --git a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/nonStandard.css b/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/nonStandard.css deleted file mode 100644 index dc997ebbc..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/nonStandard.css +++ /dev/null @@ -1,5 +0,0 @@ -@charset "ISO-8859-6";
-
-
-
-
diff --git a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/nonStandardIllFormed.css b/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/nonStandardIllFormed.css deleted file mode 100644 index f1a4e44ab..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/nonStandardIllFormed.css +++ /dev/null @@ -1,5 +0,0 @@ -@charset "ISO-8859-6;
-
-
-
-
diff --git a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/nonStandardIllFormed2.css b/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/nonStandardIllFormed2.css deleted file mode 100644 index 53c8a1fd0..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/nonStandardIllFormed2.css +++ /dev/null @@ -1,7 +0,0 @@ -
-
- @charset "ISO-8859-6";
-
-
-
-
diff --git a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/utf16BOM.css b/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/utf16BOM.css Binary files differdeleted file mode 100644 index 0ba338908..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/utf16BOM.css +++ /dev/null diff --git a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/utf16be.css b/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/utf16be.css Binary files differdeleted file mode 100644 index f8c05d586..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/utf16be.css +++ /dev/null diff --git a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/utf16beMalformed.css b/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/utf16beMalformed.css Binary files differdeleted file mode 100644 index d8527c155..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/utf16beMalformed.css +++ /dev/null diff --git a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/utf16le.css b/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/utf16le.css Binary files differdeleted file mode 100644 index 6c94ffbfb..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/utf16le.css +++ /dev/null diff --git a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/utf16leMalformed.css b/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/utf16leMalformed.css Binary files differdeleted file mode 100644 index c7dd67819..000000000 --- a/tests/org.eclipse.wst.css.tests.encoding/testfiles/css/utf16leMalformed.css +++ /dev/null |