diff options
Diffstat (limited to 'tests/org.eclipse.wst.html.ui.tests')
15 files changed, 0 insertions, 1267 deletions
diff --git a/tests/org.eclipse.wst.html.ui.tests/.classpath b/tests/org.eclipse.wst.html.ui.tests/.classpath deleted file mode 100644 index 065ac06e1..000000000 --- a/tests/org.eclipse.wst.html.ui.tests/.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.pde.core.requiredPlugins"/> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> - <classpathentry kind="output" path="bin"/> -</classpath> diff --git a/tests/org.eclipse.wst.html.ui.tests/.cvsignore b/tests/org.eclipse.wst.html.ui.tests/.cvsignore deleted file mode 100644 index ec1ea6044..000000000 --- a/tests/org.eclipse.wst.html.ui.tests/.cvsignore +++ /dev/null @@ -1,5 +0,0 @@ -bin -bin.project -build.xml -htmluitests.jar -temp.folder diff --git a/tests/org.eclipse.wst.html.ui.tests/.project b/tests/org.eclipse.wst.html.ui.tests/.project deleted file mode 100644 index a9f401f39..000000000 --- a/tests/org.eclipse.wst.html.ui.tests/.project +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>org.eclipse.wst.html.ui.tests</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.html.ui.tests/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.wst.html.ui.tests/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 2c5ed0153..000000000 --- a/tests/org.eclipse.wst.html.ui.tests/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,48 +0,0 @@ -#Wed Jan 12 16:48:38 EST 2005 -org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning -org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=warning -org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning -org.eclipse.jdt.core.compiler.problem.unsafeTypeOperation=warning -org.eclipse.jdt.core.compiler.problem.forbiddenReference=error -org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=enabled -org.eclipse.jdt.core.compiler.problem.unusedImport=error -org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore -org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=error -org.eclipse.jdt.core.builder.invalidClasspath=abort -org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch -org.eclipse.jdt.core.compiler.problem.unusedLocal=warning -org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=warning -org.eclipse.jdt.core.compiler.problem.deprecation=warning -org.eclipse.jdt.core.compiler.problem.finalParameterBound=ignore -org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore -org.eclipse.jdt.core.compiler.problem.unnecessaryElse=warning -org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning -org.eclipse.jdt.core.compiler.problem.emptyStatement=warning -org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled -org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning -org.eclipse.jdt.core.builder.cleanOutputFolder=clean -org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning -org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning -org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=error -org.eclipse.jdt.core.compiler.problem.fieldHiding=warning -org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning -org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=error -org.eclipse.jdt.core.classpath.exclusionPatterns=enabled -org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled -org.eclipse.jdt.core.compiler.problem.localVariableHiding=warning -org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning -org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled -org.eclipse.jdt.core.incompatibleJDKLevel=ignore -eclipse.preferences.version=1 -org.eclipse.jdt.core.circularClasspath=error -org.eclipse.jdt.core.compiler.maxProblemPerUnit=100 -org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=warning -org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore -org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=error -org.eclipse.jdt.core.compiler.problem.noEffectAssignment=error -org.eclipse.jdt.core.incompleteClasspath=error -org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled -org.eclipse.jdt.core.builder.duplicateResourceTask=warning -org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled diff --git a/tests/org.eclipse.wst.html.ui.tests/build.properties b/tests/org.eclipse.wst.html.ui.tests/build.properties deleted file mode 100644 index 1c2357191..000000000 --- a/tests/org.eclipse.wst.html.ui.tests/build.properties +++ /dev/null @@ -1,16 +0,0 @@ -############################################################################### -# Copyright (c) 2004 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 = plugin.xml,\ - test.xml,\ - htmluitests.jar -jars.compile.order = htmluitests.jar -source.htmluitests.jar = src/ -output.htmluitests.jar = bin/ diff --git a/tests/org.eclipse.wst.html.ui.tests/icons/sourceEditor.gif b/tests/org.eclipse.wst.html.ui.tests/icons/sourceEditor.gif Binary files differdeleted file mode 100644 index 75ebdb858..000000000 --- a/tests/org.eclipse.wst.html.ui.tests/icons/sourceEditor.gif +++ /dev/null diff --git a/tests/org.eclipse.wst.html.ui.tests/plugin.xml b/tests/org.eclipse.wst.html.ui.tests/plugin.xml deleted file mode 100644 index 5bd39b460..000000000 --- a/tests/org.eclipse.wst.html.ui.tests/plugin.xml +++ /dev/null @@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<?eclipse version="3.0"?> -<plugin - id="org.eclipse.wst.html.ui.tests" - name="Structured Source Editor for HTML Tests" - version="1.0.0" - provider-name="Eclipse.org" - class="org.eclipse.wst.html.ui.tests.HTMLUITestsPlugin"> - - <runtime> - <library name="htmluitests.jar"> - <export name="*"/> - </library> - </runtime> - <requires> - <import plugin="org.eclipse.ui"/> - <import plugin="org.eclipse.jface.text"/> - <import plugin="org.eclipse.wst.html.ui"/> - <import plugin="org.eclipse.wst.sse.ui"/> - <import plugin="org.eclipse.wst.xml.ui"/> - <import plugin="org.eclipse.ui.editors"/> - <import plugin="org.eclipse.ui.ide"/> - <import plugin="org.eclipse.ui.workbench.texteditor"/> - <import plugin="org.eclipse.core.resources"/> - <import plugin="org.eclipse.wst.sse.core"/> - <import plugin="org.eclipse.wst.xml.core"/> - <import plugin="org.junit"/> - <import plugin="org.eclipse.wst.html.core"/> - <import plugin="org.eclipse.ui.views"/> - <import plugin="org.eclipse.core.runtime"/> - </requires> - - <extension - point="org.eclipse.ui.views"> - <view - name="Embedded HTML Structured Text Viewer" - icon="icons/sourceEditor.gif" - category="org.eclipse.wst.sse.ui.tests" - class="org.eclipse.wst.html.ui.tests.viewer.ViewerTestHTML" - id="org.eclipse.wst.html.ui.tests.viewer.ViewerTestHTML"> - </view> - </extension> - -</plugin> diff --git a/tests/org.eclipse.wst.html.ui.tests/src/org/eclipse/wst/html/ui/tests/HTMLUIPreferencesTest.java b/tests/org.eclipse.wst.html.ui.tests/src/org/eclipse/wst/html/ui/tests/HTMLUIPreferencesTest.java deleted file mode 100644 index 2a662aff2..000000000 --- a/tests/org.eclipse.wst.html.ui.tests/src/org/eclipse/wst/html/ui/tests/HTMLUIPreferencesTest.java +++ /dev/null @@ -1,114 +0,0 @@ -/******************************************************************************* - * Copyright (c) 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.html.ui.tests; - -import junit.framework.TestCase; - -import org.eclipse.core.runtime.Platform; -import org.eclipse.jface.preference.IPreferenceStore; -import org.eclipse.wst.html.ui.internal.HTMLUIPlugin; -import org.eclipse.wst.html.ui.internal.preferences.HTMLUIPreferenceNames; -import org.osgi.framework.Bundle; -import org.osgi.framework.BundleException; - -/** - * The purpose of this test is to verify the validity of the HTML Source - * editor preferences. Tests include setting/getting preferences. - * - * NOTE: This test should be preformed on a clean workspace. If performed on - * an existing workspace, this test will manipulate preferences in the - * workspace, though attempts will be made to restore original values after - * testing. - */ -public class HTMLUIPreferencesTest extends TestCase { - /** - * Tests existance of preference values when getting preference values - * through Platform.getPreferencesService() - */ - public void testBundleGetPreferences() { - final String bundleName = "org.eclipse.wst.html.ui"; - - // need to start up bundle for default values to be loaded - Bundle bundle = Platform.getBundle(bundleName); - try { - if (bundle != null) - bundle.start(); - else - fail("Get preference value failed because could not find bundle: " + bundleName); - } catch (BundleException e) { - fail("Get preference value failed because of exception starting bundle: " + bundleName + " exception: " + e); - } - - bundleGetPreference(bundleName, HTMLUIPreferenceNames.AUTO_PROPOSE); - bundleGetPreference(bundleName, HTMLUIPreferenceNames.AUTO_PROPOSE_CODE); - } - - private void bundleGetPreference(String bundleName, String prefKey) { - String defaultValue = Long.toString(System.currentTimeMillis()); // random - // string - - String value = Platform.getPreferencesService().getString(bundleName, prefKey, defaultValue, null); - assertNotSame("Get preference value failed using Platform.getPreferencesService. Key: " + prefKey, defaultValue, value); - } - - /** - * Tests default values of preferences. - * - * NOTE: Expected default values are hard-coded, so if default values do - * get changed, assertions need to be updated as well - */ - public void testPluginGetDefaultPreferences() { - IPreferenceStore store = HTMLUIPlugin.getDefault().getPreferenceStore(); - - pluginGetDefaultPreference(store, HTMLUIPreferenceNames.AUTO_PROPOSE, Boolean.toString(true)); - pluginGetDefaultPreference(store, HTMLUIPreferenceNames.AUTO_PROPOSE_CODE, "<"); - } - - private void pluginGetDefaultPreference(IPreferenceStore store, String prefKey, String expected) { - String defaultValue = store.getDefaultString(prefKey); - assertEquals("Get default preference value failed using plugin.getPreferenceStore. Key: " + prefKey, expected, defaultValue); - } - - /** - * Tests setting preference values by setting preference value to be a - * certain value, then getting the preference value to verify it was set. - */ - public void testPluginSetPreferences() { - IPreferenceStore store = HTMLUIPlugin.getDefault().getPreferenceStore(); - - pluginSetPreferenceBoolean(store, HTMLUIPreferenceNames.AUTO_PROPOSE); - pluginSetPreferenceString(store, HTMLUIPreferenceNames.AUTO_PROPOSE_CODE); - } - - private void pluginSetPreferenceBoolean(IPreferenceStore store, String prefKey) { - boolean originalValue = store.getBoolean(prefKey); - boolean expectedValue = !originalValue; - store.setValue(prefKey, expectedValue); - boolean foundValue = store.getBoolean(prefKey); - assertEquals("Set preference value failed using plugin.getPreferenceStore. Key: " + prefKey + " expected: " + expectedValue + " found: " + foundValue, expectedValue, foundValue); - - // attempt to restore original preference value - store.setValue(prefKey, originalValue); - } - - private void pluginSetPreferenceString(IPreferenceStore store, String prefKey) { - String originalValue = store.getString(prefKey); - String expectedValue = Long.toString(System.currentTimeMillis()); // random - // string - store.setValue(prefKey, expectedValue); - String foundValue = store.getString(prefKey); - assertEquals("Set preference value failed using plugin.getPreferenceStore. Key: " + prefKey + " expected: " + expectedValue + " found: " + foundValue, expectedValue, foundValue); - - // attempt to restore original preference value - store.setValue(prefKey, originalValue); - } -} diff --git a/tests/org.eclipse.wst.html.ui.tests/src/org/eclipse/wst/html/ui/tests/HTMLUITestSuite.java b/tests/org.eclipse.wst.html.ui.tests/src/org/eclipse/wst/html/ui/tests/HTMLUITestSuite.java deleted file mode 100644 index e17455ad4..000000000 --- a/tests/org.eclipse.wst.html.ui.tests/src/org/eclipse/wst/html/ui/tests/HTMLUITestSuite.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004 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.html.ui.tests; - -import org.eclipse.wst.html.ui.tests.viewer.TestViewerConfigurationHTML; - -import junit.framework.Test; -import junit.framework.TestSuite; - - - -public class HTMLUITestSuite extends junit.framework.TestSuite { - public static Test suite() { - return new HTMLUITestSuite(); - } - - public HTMLUITestSuite() { - super("HTML UI TestSuite"); - addTest(new TestSuite(VerifyEditorPlugin.class)); - addTest(new TestSuite(HTMLUIPreferencesTest.class)); - addTest(new TestSuite(TestViewerConfigurationHTML.class)); - // addTest(new SSEModelTestSuite()); - - } -}
\ No newline at end of file diff --git a/tests/org.eclipse.wst.html.ui.tests/src/org/eclipse/wst/html/ui/tests/HTMLUITestsPlugin.java b/tests/org.eclipse.wst.html.ui.tests/src/org/eclipse/wst/html/ui/tests/HTMLUITestsPlugin.java deleted file mode 100644 index cecaec3c5..000000000 --- a/tests/org.eclipse.wst.html.ui.tests/src/org/eclipse/wst/html/ui/tests/HTMLUITestsPlugin.java +++ /dev/null @@ -1,68 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004 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.html.ui.tests; - -import java.util.MissingResourceException; -import java.util.ResourceBundle; - -import org.eclipse.core.runtime.Plugin; - -/** - * The main plugin class to be used in the desktop. - */ -public class HTMLUITestsPlugin extends Plugin { - //The shared instance. - private static HTMLUITestsPlugin plugin; - //Resource bundle. - private ResourceBundle resourceBundle; - - /** - * The constructor. - */ - public HTMLUITestsPlugin() { - super(); - plugin = this; - try { - resourceBundle = ResourceBundle.getBundle("org.eclipse.wst.html.ui.tests.SSEForHTMLTestsPluginResources"); - } - catch (MissingResourceException x) { - resourceBundle = null; - } - } - - /** - * Returns the shared instance. - */ - public static HTMLUITestsPlugin getDefault() { - return plugin; - } - - /** - * Returns the string from the plugin's resource bundle, - * or 'key' if not found. - */ - public static String getResourceString(String key) { - ResourceBundle bundle = HTMLUITestsPlugin.getDefault().getResourceBundle(); - try { - return (bundle != null) ? bundle.getString(key) : key; - } - catch (MissingResourceException e) { - return key; - } - } - - /** - * Returns the plugin's resource bundle, - */ - public ResourceBundle getResourceBundle() { - return resourceBundle; - } -}
\ No newline at end of file diff --git a/tests/org.eclipse.wst.html.ui.tests/src/org/eclipse/wst/html/ui/tests/Logger.java b/tests/org.eclipse.wst.html.ui.tests/src/org/eclipse/wst/html/ui/tests/Logger.java deleted file mode 100644 index 9e41b20fc..000000000 --- a/tests/org.eclipse.wst.html.ui.tests/src/org/eclipse/wst/html/ui/tests/Logger.java +++ /dev/null @@ -1,144 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004 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.html.ui.tests; - -import java.util.StringTokenizer; - -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Platform; -import org.eclipse.core.runtime.Status; -import org.osgi.framework.Bundle; - -/** - * Small convenience class to log messages to plugin's log file and also, if desired, - * the console. This class should only be used by classes in this plugin. Other - * plugins should make their own copy, with appropriate ID. - */ -public class Logger { - private static final String PLUGIN_ID = "org.eclipse.wst.html.ui.tests"; //$NON-NLS-1$ - - private static final String TRACEFILTER_LOCATION = "/debug/tracefilter"; //$NON-NLS-1$ - - public static final int OK = IStatus.OK; // 0 - public static final int INFO = IStatus.INFO; // 1 - public static final int WARNING = IStatus.WARNING; // 2 - public static final int ERROR = IStatus.ERROR; // 4 - - public static final int OK_DEBUG = 200 + OK; - public static final int INFO_DEBUG = 200 + INFO; - public static final int WARNING_DEBUG = 200 + WARNING; - public static final int ERROR_DEBUG = 200 + ERROR; - - /** - * Adds message to log. - * @param level severity level of the message (OK, INFO, WARNING, ERROR, OK_DEBUG, INFO_DEBUG, WARNING_DEBUG, ERROR_DEBUG) - * @param message text to add to the log - * @param exception exception thrown - */ - protected static void _log(int level, String message, Throwable exception) { - if (level == OK_DEBUG || level == INFO_DEBUG || level == WARNING_DEBUG || level == ERROR_DEBUG) { - if (!isDebugging()) - return; - } - - int severity = IStatus.OK; - switch (level) { - case INFO_DEBUG : - case INFO : - severity = IStatus.INFO; - break; - case WARNING_DEBUG : - case WARNING : - severity = IStatus.WARNING; - break; - case ERROR_DEBUG : - case ERROR : - severity = IStatus.ERROR; - } - message = (message != null) ? message : "null"; //$NON-NLS-1$ - Status statusObj = new Status(severity, PLUGIN_ID, severity, message, exception); - Bundle bundle = Platform.getBundle(PLUGIN_ID); - if (bundle != null) - Platform.getLog(bundle).log(statusObj); - } - - /** - * Prints message to log if category matches /debug/tracefilter option. - * @param message text to print - * @param category category of the message, to be compared with /debug/tracefilter - */ - protected static void _trace(String category, String message, Throwable exception) { - if (isTracing(category)) { - message = (message != null) ? message : "null"; //$NON-NLS-1$ - Status statusObj = new Status(IStatus.OK, PLUGIN_ID, IStatus.OK, message, exception); - Bundle bundle = Platform.getBundle(PLUGIN_ID); - if (bundle != null) - Platform.getLog(bundle).log(statusObj); - } - } - - /** - * @return true if the platform is debugging - */ - public static boolean isDebugging() { - return Platform.inDebugMode(); - } - - /** - * Determines if currently tracing a category - * @param category - * @return true if tracing category, false otherwise - */ - public static boolean isTracing(String category) { - if (!isDebugging()) - return false; - - String traceFilter = Platform.getDebugOption(PLUGIN_ID + TRACEFILTER_LOCATION); - if (traceFilter != null) { - StringTokenizer tokenizer = new StringTokenizer(traceFilter, ","); //$NON-NLS-1$ - while (tokenizer.hasMoreTokens()) { - String cat = tokenizer.nextToken().trim(); - if (category.equals(cat)) { - return true; - } - } - } - return false; - } - - public static void log(int level, String message) { - _log(level, message, null); - } - - public static void log(int level, String message, Throwable exception) { - _log(level, message, exception); - } - - public static void logException(String message, Throwable exception) { - _log(ERROR, message, exception); - } - - public static void logException(Throwable exception) { - _log(ERROR, exception.getMessage(), exception); - } - - public static void traceException(String category, String message, Throwable exception) { - _trace(category, message, exception); - } - - public static void traceException(String category, Throwable exception) { - _trace(category, exception.getMessage(), exception); - } - - public static void trace(String category, String message) { - _trace(category, message, null); - } -}
\ No newline at end of file diff --git a/tests/org.eclipse.wst.html.ui.tests/src/org/eclipse/wst/html/ui/tests/VerifyEditorPlugin.java b/tests/org.eclipse.wst.html.ui.tests/src/org/eclipse/wst/html/ui/tests/VerifyEditorPlugin.java deleted file mode 100644 index f3a0bbf00..000000000 --- a/tests/org.eclipse.wst.html.ui.tests/src/org/eclipse/wst/html/ui/tests/VerifyEditorPlugin.java +++ /dev/null @@ -1,32 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2004 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.html.ui.tests; - -import junit.framework.TestCase; - -import org.eclipse.core.runtime.Plugin; -import org.eclipse.wst.html.ui.internal.HTMLUIPlugin; - - -public class VerifyEditorPlugin extends TestCase { - - public void testPluginExists() { - // TODO: see https://bugs.eclipse.org/bugs/show_bug.cgi?id=81527 - assertTrue(true); - Plugin plugin = null; - try { - plugin = HTMLUIPlugin.getInstance(); - } - catch (Exception e) { - plugin = null; - } - assertNotNull("editor plugin could not be instantiated", plugin); - } -} diff --git a/tests/org.eclipse.wst.html.ui.tests/src/org/eclipse/wst/html/ui/tests/viewer/TestViewerConfigurationHTML.java b/tests/org.eclipse.wst.html.ui.tests/src/org/eclipse/wst/html/ui/tests/viewer/TestViewerConfigurationHTML.java deleted file mode 100644 index b9f3dd010..000000000 --- a/tests/org.eclipse.wst.html.ui.tests/src/org/eclipse/wst/html/ui/tests/viewer/TestViewerConfigurationHTML.java +++ /dev/null @@ -1,227 +0,0 @@ -package org.eclipse.wst.html.ui.tests.viewer; - -import junit.framework.TestCase; - -import org.eclipse.jface.preference.IPreferenceStore; -import org.eclipse.jface.text.IAutoEditStrategy; -import org.eclipse.jface.text.ITextDoubleClickStrategy; -import org.eclipse.jface.text.ITextHover; -import org.eclipse.jface.text.contentassist.IContentAssistant; -import org.eclipse.jface.text.formatter.IContentFormatter; -import org.eclipse.jface.text.hyperlink.IHyperlinkDetector; -import org.eclipse.jface.text.information.IInformationPresenter; -import org.eclipse.jface.text.reconciler.IReconciler; -import org.eclipse.jface.text.source.IAnnotationHover; -import org.eclipse.swt.SWT; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Display; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.ui.PlatformUI; -import org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants; -import org.eclipse.wst.html.core.text.IHTMLPartitionTypes; -import org.eclipse.wst.html.ui.StructuredTextViewerConfigurationHTML; -import org.eclipse.wst.html.ui.internal.HTMLUIPlugin; -import org.eclipse.wst.html.ui.tests.Logger; -import org.eclipse.wst.sse.ui.internal.StructuredTextViewer; -import org.eclipse.wst.sse.ui.style.IHighlighter; - -/** - * @author pavery - */ -public class TestViewerConfigurationHTML extends TestCase { - - private StructuredTextViewer fViewer = null; - private StructuredTextViewerConfigurationHTML fConfig = null; - private IPreferenceStore fPreferenceStore = null; - private boolean fDisplayExists = true; - private boolean isSetup = false; - - public TestViewerConfigurationHTML() { - super("TestViewerConfigurationHTML"); - } - protected void setUp() throws Exception { - - super.setUp(); - if(!this.isSetup){ - setUpPreferences(); - setUpViewerConfiguration(); - this.isSetup = true; - } - } - - private void setUpPreferences() { - fPreferenceStore = HTMLUIPlugin.getDefault().getPreferenceStore(); - fPreferenceStore.setValue(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_HYPERLINKS_ENABLED, true); - } - - private void setUpViewerConfiguration() { - - if(Display.getCurrent() != null) { - - Shell shell = null; - Composite parent = null; - - if(PlatformUI.isWorkbenchRunning()) { - shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); - } - else { - shell = new Shell(Display.getCurrent()); - } - parent = new Composite(shell, SWT.NONE); - - // dummy viewer - fViewer = new StructuredTextViewer(parent, null, null, false, SWT.NONE); - fConfig = new StructuredTextViewerConfigurationHTML(fPreferenceStore); - } - else { - fDisplayExists = false; - Logger.log(Logger.INFO, "TestViewerConfigurationHTML tests cannot run because there is no DISPLAY available"); - } - } - - public void testGetAutoEditStrategies() { - - // probably no display - if(!fDisplayExists) - return; - - IAutoEditStrategy[] strategies = fConfig.getAutoEditStrategies(fViewer, IHTMLPartitionTypes.HTML_DEFAULT); - assertNotNull(strategies); - assertTrue("there are no auto edit strategies", strategies.length>0); - } - - public void testGetConfiguredContentTypes() { - - // probably no display - if(!fDisplayExists) - return; - - String[] configuredContentTypes = fConfig.getConfiguredContentTypes(fViewer); - assertNotNull(configuredContentTypes); - assertTrue("there are no configured content types", configuredContentTypes.length > 1); - } - - public void testGetContentAssistant() { - - // probably no display - if(!fDisplayExists) - return; - - IContentAssistant ca = fConfig.getContentAssistant(fViewer); - assertNotNull("there is no content assistant", ca); - } - - public void testGetCorrectionAssistant() { - - // probably no display - if(!fDisplayExists) - return; - - IContentAssistant ca = fConfig.getCorrectionAssistant(fViewer); - assertNotNull("there is no correction assistant", ca); - } - - public void testGetContentFormatter() { - - // probably no display - if(!fDisplayExists) - return; - - IContentFormatter cf = fConfig.getContentFormatter(fViewer); - assertNotNull("there is no content formatter", cf); - } - - public void testGetDoubleClickStrategy() { - - // probably no display - if(!fDisplayExists) - return; - - String[] contentTypes = fConfig.getConfiguredContentTypes(fViewer); - for (int i = 0; i < contentTypes.length; i++) { - ITextDoubleClickStrategy strategy = fConfig.getDoubleClickStrategy(fViewer, contentTypes[i]); - if(strategy != null) { - return; - } - } - assertTrue("there are no configured double click strategies", false); - } - - public void testGetHighlighter() { - - // probably no display - if(!fDisplayExists) - return; - - IHighlighter highlighter = fConfig.getHighlighter(fViewer); - assertNotNull("Highlighter is null", highlighter); - } - - public void testGetInformationPresenter() { - - // probably no display - if(!fDisplayExists) - return; - - IInformationPresenter presenter = fConfig.getInformationPresenter(fViewer); - assertNotNull("InformationPresenter is null", presenter); - } - - public void testGetAnnotationHover() { - - // probably no display - if(!fDisplayExists) - return; - - IAnnotationHover hover = fConfig.getAnnotationHover(fViewer); - assertNotNull("AnnotationHover is null", hover); - } - - public void testUnconfigure() { - - // probably no display - if(!fDisplayExists) - return; - - fConfig.unConfigure(fViewer); - // need a good test here to make sure thing are really unconfigured - - // need to re-set up since it's likely - // more tests are called after this one - setUpViewerConfiguration(); - } - - public void testGetReconciler() { - - // probably no display - if(!fDisplayExists) - return; - - IReconciler r = fConfig.getReconciler(fViewer); - assertNotNull("Reconciler is null", r); - } - - public void testGetHyperlinkDetectors() { - - // probably no display - if(!fDisplayExists) - return; - - IHyperlinkDetector[] detectors = fConfig.getHyperlinkDetectors(fViewer); - assertNotNull(detectors); - assertTrue("there are no hyperlink detectors", detectors.length > 1); - } - - public void testGetTextHover() { - - // probably no display - if(!fDisplayExists) - return; - - String[] hoverPartitions = new String[]{IHTMLPartitionTypes.HTML_DEFAULT, IHTMLPartitionTypes.SCRIPT}; - for (int i = 0; i < hoverPartitions.length; i++) { - ITextHover hover = fConfig.getTextHover(fViewer, hoverPartitions[i], SWT.NONE); - assertNotNull("hover was null for partition: " + hoverPartitions[i], hover); - } - } -} diff --git a/tests/org.eclipse.wst.html.ui.tests/src/org/eclipse/wst/html/ui/tests/viewer/ViewerTestHTML.java b/tests/org.eclipse.wst.html.ui.tests/src/org/eclipse/wst/html/ui/tests/viewer/ViewerTestHTML.java deleted file mode 100644 index b331513fd..000000000 --- a/tests/org.eclipse.wst.html.ui.tests/src/org/eclipse/wst/html/ui/tests/viewer/ViewerTestHTML.java +++ /dev/null @@ -1,447 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004 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.html.ui.tests.viewer; - -import org.eclipse.jface.action.Action; -import org.eclipse.jface.action.IContributionManager; -import org.eclipse.jface.action.Separator; -import org.eclipse.jface.dialogs.Dialog; -import org.eclipse.jface.resource.JFaceResources; -import org.eclipse.jface.text.IDocument; -import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.jface.window.Window; -import org.eclipse.swt.SWT; -import org.eclipse.swt.custom.BusyIndicator; -import org.eclipse.swt.layout.GridData; -import org.eclipse.swt.layout.GridLayout; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Control; -import org.eclipse.swt.widgets.Label; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.swt.widgets.Text; -import org.eclipse.ui.IEditorPart; -import org.eclipse.ui.IMemento; -import org.eclipse.ui.IViewSite; -import org.eclipse.ui.PartInitException; -import org.eclipse.ui.part.ViewPart; -import org.eclipse.ui.texteditor.ITextEditor; -import org.eclipse.ui.views.contentoutline.IContentOutlinePage; -import org.eclipse.wst.html.core.contenttype.ContentTypeIdForHTML; -import org.eclipse.wst.html.ui.StructuredTextViewerConfigurationHTML; -import org.eclipse.wst.sse.core.IModelManager; -import org.eclipse.wst.sse.core.IndexedRegion; -import org.eclipse.wst.sse.core.StructuredModelManager; -import org.eclipse.wst.sse.ui.StructuredTextViewerConfiguration; -import org.eclipse.wst.sse.ui.internal.StructuredTextViewer; -import org.eclipse.wst.sse.ui.internal.contentoutline.StructuredTextEditorContentOutlinePage; -import org.eclipse.wst.sse.ui.view.events.INodeSelectionListener; -import org.eclipse.wst.sse.ui.view.events.NodeSelectionChangedEvent; -import org.w3c.dom.Attr; - -public class ViewerTestHTML extends ViewPart { - private final String SSE_EDITOR_FONT = "com.ibm.sse.editor.textfont"; - private final String DEFAULT_VIEWER_CONTENTS = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<HTML>\n <HEAD>\n <META http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n <TITLE>place title here</TITLE>\n </HEAD>\n <BODY>\n place content here \n<script>\n\"text\";\n</SCRIPT>\n</BODY>\n</HTML>"; - - private StructuredTextViewer fSourceViewer = null; - private StructuredTextViewerConfiguration fConfig = null; - private IContentOutlinePage fContentOutlinePage = null; - private INodeSelectionListener fHighlightRangeListener = null; - - /** - * Sets the viewer's highlighting text range to the text range indicated - * by the selected Nodes. - */ - protected class NodeRangeSelectionListener implements INodeSelectionListener { - public void nodeSelectionChanged(NodeSelectionChangedEvent event) { - if (!event.getSelectedNodes().isEmpty()) { - IndexedRegion startNode = (IndexedRegion) event.getSelectedNodes().get(0); - IndexedRegion endNode = (IndexedRegion) event.getSelectedNodes().get(event.getSelectedNodes().size() - 1); - - if (startNode instanceof Attr) - startNode = (IndexedRegion) ((Attr) startNode).getOwnerElement(); - if (endNode instanceof Attr) - endNode = (IndexedRegion) ((Attr) endNode).getOwnerElement(); - - int start = startNode.getStartOffset(); - int end = endNode.getEndOffset(); - - fSourceViewer.resetVisibleRegion(); - fSourceViewer.setVisibleRegion(start, end - start); - fSourceViewer.setSelectedRange(start, 0); - } - else { - fSourceViewer.resetVisibleRegion(); - } - } - } - - protected class NumberInputDialog extends Dialog { - public NumberInputDialog(Shell shell) { - super(shell); - } - - public Text start; - int startValue; - public Text length; - int lengthValue; - - protected Control createDialogArea(Composite parent) { - Composite composite = (Composite) super.createDialogArea(parent); - Composite container = new Composite(composite, SWT.NULL); - container.setLayoutData(new GridData(GridData.FILL_BOTH)); - container.setLayout(new GridLayout(2, true)); - setShellStyle(getShell().getStyle() | SWT.RESIZE); - - Label label = new Label(container, SWT.NULL); - label.setText("Start"); - label.setLayoutData(new GridData(GridData.FILL_BOTH)); - - label = new Label(container, SWT.NULL); - label.setText("Length"); - label.setLayoutData(new GridData(GridData.FILL_BOTH)); - - start = new Text(container, SWT.BORDER); - startValue = fSourceViewer.getVisibleRegion().getOffset(); - start.setText("" + startValue); - start.setLayoutData(new GridData(GridData.FILL_BOTH)); - - length = new Text(container, SWT.BORDER); - lengthValue = fSourceViewer.getVisibleRegion().getLength(); - length.setText("" + lengthValue); - length.setLayoutData(new GridData(GridData.FILL_BOTH)); - - // start.addModifyListener(new ModifyListener() { - // public void modifyText(ModifyEvent e) { - // if (e.widget == start) { - // try { - // startValue = Integer.decode(start.getText()).intValue(); - // } - // catch (NumberFormatException e2) { - // startValue = 0; - // } - // } - // } - // }); - // length.addModifyListener(new ModifyListener() { - // public void modifyText(ModifyEvent e) { - // if (e.widget == length) { - // try { - // lengthValue = Integer.decode(length.getText()).intValue(); - // } - // catch (NumberFormatException e2) { - // lengthValue = 0; - // } - // } - // } - // }); - - return composite; - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.jface.dialogs.Dialog#okPressed() - */ - protected void okPressed() { - try { - startValue = Integer.decode(start.getText()).intValue(); - } - catch (NumberFormatException e2) { - startValue = 0; - } - try { - lengthValue = Integer.decode(length.getText()).intValue(); - } - catch (NumberFormatException e2) { - lengthValue = 0; - } - super.okPressed(); - } - } - - protected void addActions(IContributionManager mgr) { - if (mgr != null) { - mgr.add(new Action() { - public String getText() { - return getToolTipText(); - } - - public String getToolTipText() { - return "New HTML"; - } - - public void run() { - super.run(); - BusyIndicator.showWhile(getSite().getShell().getDisplay(), new Runnable() { - public void run() { - setupViewerForNew(); - fSourceViewer.setEditable(true); - } - }); - } - }); - mgr.add(new Separator()); - mgr.add(new Action() { - public String getText() { - return getToolTipText(); - } - - public String getToolTipText() { - return "Change Visibility"; - } - - public void run() { - super.run(); - NumberInputDialog dlg = new NumberInputDialog(fSourceViewer.getControl().getShell()); - int proceed = dlg.open(); - if (proceed == Window.CANCEL) - return; - fSourceViewer.resetVisibleRegion(); - fSourceViewer.setVisibleRegion(dlg.startValue, dlg.lengthValue); - } - }); - mgr.add(new Action() { - public String getText() { - return getToolTipText(); - } - - public String getToolTipText() { - return "Show All"; - } - - public void run() { - super.run(); - fSourceViewer.resetVisibleRegion(); - } - }); - mgr.add(new Separator()); - // no longer able to set input to NULL - // mgr.add(new Action() { - // public String getText() { - // return getToolTipText(); - // } - // - // public String getToolTipText() { - // return "Set Input to NULL"; - // } - // public void run() { - // super.run(); - // viewer.setInput(null); - // } - // }); - mgr.add(new Action() { - public String getText() { - return getToolTipText(); - } - - public String getToolTipText() { - return "Take Input from Active Editor"; - } - - public void run() { - super.run(); - ITextEditor textEditor = getActiveEditor(); - if (textEditor != null) { - setupViewerForEditor(textEditor); - fSourceViewer.setEditable(true); - } - } - }); - mgr.add(new Action() { - public String getText() { - return getToolTipText(); - } - - public String getToolTipText() { - return "Take Input and Follow Selection"; - } - - public void run() { - super.run(); - followSelection(); - fSourceViewer.setEditable(true); - } - }); - mgr.add(new Action() { - public String getText() { - return getToolTipText(); - } - - public String getToolTipText() { - return "Take Input and Follow Selection As ReadOnly"; - } - - public void run() { - super.run(); - followSelection(); - fSourceViewer.setEditable(false); - } - }); - mgr.add(new Action() { - public String getText() { - return getToolTipText(); - } - - public String getToolTipText() { - return "Stop Following Selection"; - } - - public void run() { - super.run(); - stopFollowSelection(); - } - }); - } - } - - /** - * @see org.eclipse.ui.IWorkbenchPart#createPartControl(Composite) - */ - public void createPartControl(Composite parent) { - IContributionManager mgr = getViewSite().getActionBars().getMenuManager(); - addActions(mgr); - - // create source viewer & its content type-specific viewer - // configuration - fSourceViewer = new StructuredTextViewer(parent, null, null, false, SWT.NONE); - fConfig = new StructuredTextViewerConfigurationHTML(); - - // set up the viewer with a document & viewer config - setupViewerForNew(); - - setupViewerPreferences(); - } - - /** - * @see org.eclipse.ui.IWorkbenchPart#dispose() - */ - public void dispose() { - stopFollowSelection(); - fSourceViewer.unconfigure(); - } - - /** - * @see org.eclipse.ui.IWorkbenchPart#setFocus() - */ - public void setFocus() { - if (fSourceViewer.getControl() != null && !fSourceViewer.getControl().isDisposed()) - fSourceViewer.getControl().setFocus(); - } - - /** - * @see org.eclipse.ui.IViewPart#init(IViewSite, IMemento) - */ - public void init(IViewSite site, IMemento memento) throws PartInitException { - super.init(site, memento); - } - - /** - * Set up source viewer with any additional preferences it should have Ex: - * font, tab width - */ - private void setupViewerPreferences() { - fSourceViewer.getTextWidget().setFont(JFaceResources.getFont(SSE_EDITOR_FONT)); - } - - /** - * Set up source viewer with a new document & configure it - */ - private void setupViewerForNew() { - stopFollowSelection(); // if was following selection, stop - - IModelManager modelManager = StructuredModelManager.getModelManager(); - IDocument doc = modelManager.createStructuredDocumentFor(ContentTypeIdForHTML.ContentTypeID_HTML); - doc.set(DEFAULT_VIEWER_CONTENTS); - - fSourceViewer.setDocument(doc); - // need to reconfigure after set document just so highlighter works - fSourceViewer.configure(fConfig); - } - - /** - * Returns the current active text editor if possible - * - * @return ITextEditor - */ - private ITextEditor getActiveEditor() { - ITextEditor editor = null; - IEditorPart editorPart = getSite().getWorkbenchWindow().getActivePage().getActiveEditor(); - if (editorPart instanceof ITextEditor) - editor = (ITextEditor) editorPart; - if (editor == null && editorPart != null) - editor = (ITextEditor) editorPart.getAdapter(ITextEditor.class); - return editor; - } - - /** - * Sets up the viewer with the same document/input as the given editor - * - * @param ITextEditor - * editor - the editor to use *cannot to be null* - */ - private void setupViewerForEditor(ITextEditor editor) { - stopFollowSelection(); // if was following selection, stop - IDocument doc = editor.getDocumentProvider().getDocument(editor.getEditorInput()); - fSourceViewer.setDocument(doc); - - // need to reconfigure after set document just so highlighter works - fSourceViewer.configure(new StructuredTextViewerConfigurationHTML()); - } - - /** - * Hooks up the viewer to follow the selection made in the active editor - */ - private void followSelection() { - ITextEditor editor = getActiveEditor(); - if (editor != null) { - setupViewerForEditor(editor); - if (fHighlightRangeListener == null) - fHighlightRangeListener = new NodeRangeSelectionListener(); - - fContentOutlinePage = ((IContentOutlinePage) editor.getAdapter(IContentOutlinePage.class)); - if (fContentOutlinePage != null && fContentOutlinePage instanceof StructuredTextEditorContentOutlinePage) { - ((StructuredTextEditorContentOutlinePage) fContentOutlinePage).getViewerSelectionManager().addNodeSelectionListener(fHighlightRangeListener); - - if (!fContentOutlinePage.getSelection().isEmpty() && fContentOutlinePage.getSelection() instanceof IStructuredSelection) { - fSourceViewer.resetVisibleRegion(); - - Object[] nodes = ((IStructuredSelection) fContentOutlinePage.getSelection()).toArray(); - IndexedRegion startNode = (IndexedRegion) nodes[0]; - IndexedRegion endNode = (IndexedRegion) nodes[nodes.length - 1]; - - if (startNode instanceof Attr) - startNode = (IndexedRegion) ((Attr) startNode).getOwnerElement(); - if (endNode instanceof Attr) - endNode = (IndexedRegion) ((Attr) endNode).getOwnerElement(); - - int start = startNode.getStartOffset(); - int end = endNode.getEndOffset(); - - fSourceViewer.setVisibleRegion(start, end - start); - fSourceViewer.setSelectedRange(start, 0); - } - } - } - } - - /** - * Cease following the selection made in the editor - */ - private void stopFollowSelection() { - if (fContentOutlinePage != null && fContentOutlinePage instanceof StructuredTextEditorContentOutlinePage) { - ((StructuredTextEditorContentOutlinePage) fContentOutlinePage).getViewerSelectionManager().removeNodeSelectionListener(fHighlightRangeListener); - fSourceViewer.resetVisibleRegion(); - fContentOutlinePage = null; - } - } - -}
\ No newline at end of file diff --git a/tests/org.eclipse.wst.html.ui.tests/test.xml b/tests/org.eclipse.wst.html.ui.tests/test.xml deleted file mode 100644 index e8574456b..000000000 --- a/tests/org.eclipse.wst.html.ui.tests/test.xml +++ /dev/null @@ -1,54 +0,0 @@ -<?xml version="1.0"?> - -<project name="testsuite" default="run" basedir="."> - <!-- The property ${eclipse-home} should be passed into this script --> - <!-- Set a meaningful default value for when it is not. --> - <!-- <property name="eclipse-home" value="${basedir}\..\.." /> --> - - <echo message="basedir ${basedir}" /> - <echo message="eclipse place ${eclipse-home}" /> - - <!-- sets the properties plugin-name, and library-file --> - <property name="plugin-name" value="org.eclipse.wst.html.ui.tests" /> - <property name="library-file" value="${eclipse-home}/plugins/org.eclipse.test_3.1.0/library.xml" /> - - <!-- 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="org.eclipse.wst.html.ui.tests.*xml" /> - </delete> - </target> - - <!-- This target defines the tests that need to be run. --> - <target name="suite"> - <property name="wst-folder" value="${eclipse-home}/wst_folder"/> - <delete dir="${wst-folder}" quiet="true"/> - <ant target="core-test" antfile="${library-file}" dir="${eclipse-home}"> - <property name="data-dir" value="${wst-folder}"/> - <property name="plugin-name" value="${plugin-name}"/> - <property name="classname" value="org.eclipse.wst.html.ui.tests.HTMLUITestSuite" /> - <property name="plugin-path" value="${eclipse-home}/plugins/${plugin-name}"/> - </ant> - </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"> - <!--<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="org.eclipse.wst.html.ui.tests.*xml" /> - <property name="output-file" value="${plugin-name}.xml" /> - </ant> - <!-- <emailResults resultsFile="${wsad-home}/${plugin-name}.xml" addresslist="david_williams@us.ibm.com,kitlo@us.ibm.com" /> --> - </target> - -</project>
\ No newline at end of file |