This commit was manufactured by cvs2svn to create tag 'v20050215_1740'.
diff --git a/tests/org.eclipse.wst.css.core.tests/.classpath b/tests/org.eclipse.wst.css.core.tests/.classpath
deleted file mode 100644
index 065ac06..0000000
--- a/tests/org.eclipse.wst.css.core.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.css.core.tests/.compatibility b/tests/org.eclipse.wst.css.core.tests/.compatibility
deleted file mode 100644
index 3f6bc6e..0000000
--- a/tests/org.eclipse.wst.css.core.tests/.compatibility
+++ /dev/null
@@ -1,2 +0,0 @@
-#Wed Mar 24 13:53:52 EST 2004
-.project=9770
diff --git a/tests/org.eclipse.wst.css.core.tests/.cvsignore b/tests/org.eclipse.wst.css.core.tests/.cvsignore
deleted file mode 100644
index 28e041b..0000000
--- a/tests/org.eclipse.wst.css.core.tests/.cvsignore
+++ /dev/null
@@ -1,5 +0,0 @@
-bin
-build.xml
-dev.properties
-temp.folder
-csscoretests.jar
diff --git a/tests/org.eclipse.wst.css.core.tests/.project b/tests/org.eclipse.wst.css.core.tests/.project
deleted file mode 100644
index 34797db..0000000
--- a/tests/org.eclipse.wst.css.core.tests/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.css.core.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.css.core.tests/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.wst.css.core.tests/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index fa6199e..0000000
--- a/tests/org.eclipse.wst.css.core.tests/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,48 +0,0 @@
-#Wed Jan 12 16:47:25 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.css.core.tests/build.properties b/tests/org.eclipse.wst.css.core.tests/build.properties
deleted file mode 100644
index 81bd36a..0000000
--- a/tests/org.eclipse.wst.css.core.tests/build.properties
+++ /dev/null
@@ -1,20 +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,\
- csscoretests.jar,\
- src/
-src.includes = plugin.xml,\
- src/,\
- test.xml
-jars.compile.order = csscoretests.jar
-source.csscoretests.jar = src/
-output.csscoretests.jar = bin/
diff --git a/tests/org.eclipse.wst.css.core.tests/plugin.xml b/tests/org.eclipse.wst.css.core.tests/plugin.xml
deleted file mode 100644
index 12f30c1..0000000
--- a/tests/org.eclipse.wst.css.core.tests/plugin.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.0"?>
-<plugin
- id="org.eclipse.wst.css.core.tests"
- name="CSS Core Tests Plug-in"
- version="1.0.0"
- provider-name="Eclipse.org"
- class="org.eclipse.wst.css.core.tests.CSSCoreTestsPlugin">
-
- <runtime>
- <library name="csscoretests.jar">
- <export name="*" />
- </library>
- </runtime>
- <requires>
- <import plugin="org.eclipse.wst.css.core" />
- <import plugin="org.junit" />
- <import plugin="org.eclipse.wst.sse.core" />
- <import plugin="org.eclipse.core.resources"/>
- <import plugin="org.eclipse.wst.common.encoding"/>
- <import plugin="org.eclipse.core.runtime"/>
- </requires>
-
-</plugin>
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/CSSAllTests.java b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/CSSAllTests.java
deleted file mode 100644
index df96f22..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/CSSAllTests.java
+++ /dev/null
@@ -1,55 +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.css.core.tests;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.eclipse.wst.css.core.tests.model.BUG73990SelectorFormatTest;
-import org.eclipse.wst.css.core.tests.model.CSSCharsetRuleTest;
-import org.eclipse.wst.css.core.tests.model.CSSFontFaceRuleTest;
-import org.eclipse.wst.css.core.tests.model.CSSImportRuleTest;
-import org.eclipse.wst.css.core.tests.model.CSSMediaRuleTest;
-import org.eclipse.wst.css.core.tests.model.CSSPageRuleTest;
-import org.eclipse.wst.css.core.tests.model.CSSStyleRuleTest;
-import org.eclipse.wst.css.core.tests.model.CSSStyleSheetTest;
-import org.eclipse.wst.css.core.tests.source.CSSSelectorTest;
-import org.eclipse.wst.css.core.tests.source.CSSSourceParserTest;
-import org.eclipse.wst.css.core.tests.source.CSSTextParserTest;
-import org.eclipse.wst.css.core.tests.source.CSSUrlTest;
-
-
-public class CSSAllTests extends TestSuite {
- public static Test suite() {
- TestSuite suite = new TestSuite("SSE Model CSS Tests");
-
- addSourceTests(suite);
- addModelTests(suite);
-
- return suite;
- }
-
- private static void addSourceTests(TestSuite suite) {
- suite.addTestSuite(CSSSourceParserTest.class);
- suite.addTestSuite(CSSTextParserTest.class);
- suite.addTestSuite(CSSSelectorTest.class);
- suite.addTestSuite(CSSUrlTest.class);
- }
-
- private static void addModelTests(TestSuite suite) {
- suite.addTestSuite(CSSStyleSheetTest.class);
- suite.addTestSuite(CSSCharsetRuleTest.class);
- suite.addTestSuite(CSSImportRuleTest.class);
- suite.addTestSuite(CSSStyleRuleTest.class);
- suite.addTestSuite(CSSMediaRuleTest.class);
- suite.addTestSuite(CSSPageRuleTest.class);
- suite.addTestSuite(CSSFontFaceRuleTest.class);
- suite.addTestSuite(BUG73990SelectorFormatTest.class);
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/CSSCoreTestSuite.java b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/CSSCoreTestSuite.java
deleted file mode 100644
index edb47a2..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/CSSCoreTestSuite.java
+++ /dev/null
@@ -1,31 +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.css.core.tests;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-
-/**
- * @author pavery
- */
-public class CSSCoreTestSuite extends TestSuite {
-
- public static Test suite() {
- return new CSSCoreTestSuite();
- }
-
- public CSSCoreTestSuite() {
- super("CSS Core Tests");
-
- addTest(CSSAllTests.suite());
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/CSSCoreTestsPlugin.java b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/CSSCoreTestsPlugin.java
deleted file mode 100644
index 19dc516..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/CSSCoreTestsPlugin.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.css.core.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 CSSCoreTestsPlugin extends Plugin {
- // The shared instance.
- private static CSSCoreTestsPlugin plugin;
- // Resource bundle.
- private ResourceBundle resourceBundle;
-
- /**
- * The constructor.
- */
- public CSSCoreTestsPlugin() {
- super();
- plugin = this;
- try {
- resourceBundle = ResourceBundle.getBundle("org.eclipse.wst.css.core.tests.CSSModelTestsPluginResources");
- }
- catch (MissingResourceException x) {
- resourceBundle = null;
- }
- }
-
- /**
- * Returns the shared instance.
- */
- public static CSSCoreTestsPlugin 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 = CSSCoreTestsPlugin.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.css.core.tests/src/org/eclipse/wst/css/core/tests/model/AbstractModelTest.java b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/AbstractModelTest.java
deleted file mode 100644
index 90d5623..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/AbstractModelTest.java
+++ /dev/null
@@ -1,174 +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.css.core.tests.model;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.runtime.Preferences;
-import org.eclipse.wst.css.core.document.ICSSModel;
-import org.eclipse.wst.css.core.document.ICSSStyleSheet;
-import org.eclipse.wst.css.core.internal.CSSCorePlugin;
-import org.eclipse.wst.css.core.preferences.CSSModelPreferenceNames;
-import org.eclipse.wst.css.core.tests.util.FileUtil;
-import org.eclipse.wst.sse.core.preferences.CommonModelPreferenceNames;
-import org.w3c.dom.css.CSSPrimitiveValue;
-import org.w3c.dom.css.CSSValue;
-import org.w3c.dom.css.Counter;
-import org.w3c.dom.css.RGBColor;
-import org.w3c.dom.css.Rect;
-
-public class AbstractModelTest extends TestCase {
- protected ICSSModel fModel = null;
-
- protected void setUp() throws Exception {
- super.setUp();
-
- Preferences prefs = CSSCorePlugin.getDefault().getPluginPreferences();
- prefs.setValue(CSSModelPreferenceNames.CASE_IDENTIFIER, CommonModelPreferenceNames.LOWER);
- prefs.setValue(CSSModelPreferenceNames.CASE_PROPERTY_NAME, CommonModelPreferenceNames.LOWER);
- prefs.setValue(CSSModelPreferenceNames.CASE_PROPERTY_VALUE, CommonModelPreferenceNames.LOWER);
-
- fModel = FileUtil.createModel();
- }
-
- protected void tearDown() throws Exception {
- if (fModel != null) {
- fModel.releaseFromEdit();
- fModel = null;
- }
- super.tearDown();
- }
-
- protected ICSSModel getModel() {
- return fModel;
- }
-
- protected ICSSStyleSheet getStyleSheet() {
- return (ICSSStyleSheet) fModel.getDocument();
- }
-
- class PrimitiveNumber {
- short type;
- float value;
-
- PrimitiveNumber(short newType, float newValue) {
- type = newType;
- value = newValue;
- }
- }
-
- class PrimitiveString {
- short type;
- String value;
-
- PrimitiveString(short newType, String newValue) {
- type = newType;
- value = newValue;
- }
- }
-
- /* for int, float */
- protected void checkPrimitiveNumber(CSSValue actual, PrimitiveNumber expected) {
- assertTrue(actual instanceof CSSPrimitiveValue);
- assertEquals(expected.type, ((CSSPrimitiveValue) actual).getPrimitiveType());
- assertEquals(expected.value, ((CSSPrimitiveValue) actual).getFloatValue(expected.type), 0);
- }
-
- /* for string */
- protected void checkPrimitiveString(CSSValue actual, PrimitiveString expected) {
- assertTrue(actual instanceof CSSPrimitiveValue);
- assertEquals(expected.type, ((CSSPrimitiveValue) actual).getPrimitiveType());
- assertEquals(expected.value, ((CSSPrimitiveValue) actual).getStringValue());
- }
-
- /* for counter */
- protected void checkPrimitiveCounter(CSSValue actual, String identifier, String listStyle, String separator) {
- assertTrue(actual instanceof CSSPrimitiveValue);
- assertEquals(CSSPrimitiveValue.CSS_COUNTER, ((CSSPrimitiveValue) actual).getPrimitiveType());
- Counter counter = ((CSSPrimitiveValue) actual).getCounterValue();
- assertEquals(identifier, counter.getIdentifier());
- assertEquals(listStyle, counter.getListStyle());
- assertEquals(separator, counter.getSeparator());
- }
-
- /* for rect */
- protected void checkPrimitiveRect(CSSValue actual, Object[] expectedArray) {
- assertTrue(actual instanceof CSSPrimitiveValue);
- assertEquals(CSSPrimitiveValue.CSS_RECT, ((CSSPrimitiveValue) actual).getPrimitiveType());
- Rect rect = ((CSSPrimitiveValue) actual).getRectValue();
- CSSPrimitiveValue value;
- Object expected;
- value = rect.getTop();
- expected = expectedArray[0];
- if (expected instanceof PrimitiveNumber) {
- checkPrimitiveNumber(value, (PrimitiveNumber) expected);
- }
- else {
- checkPrimitiveString(value, (PrimitiveString) expected);
- }
- value = rect.getRight();
- expected = expectedArray[1];
- if (expected instanceof PrimitiveNumber) {
- checkPrimitiveNumber(value, (PrimitiveNumber) expected);
- }
- else {
- checkPrimitiveString(value, (PrimitiveString) expected);
- }
- value = rect.getBottom();
- expected = expectedArray[2];
- if (expected instanceof PrimitiveNumber) {
- checkPrimitiveNumber(value, (PrimitiveNumber) expected);
- }
- else {
- checkPrimitiveString(value, (PrimitiveString) expected);
- }
- value = rect.getLeft();
- expected = expectedArray[3];
- if (expected instanceof PrimitiveNumber) {
- checkPrimitiveNumber(value, (PrimitiveNumber) expected);
- }
- else {
- checkPrimitiveString(value, (PrimitiveString) expected);
- }
- }
-
- /* for rgb */
- protected void checkPrimitiveRgb(CSSValue actual, Object[] expectedArray) {
- assertTrue(actual instanceof CSSPrimitiveValue);
- assertEquals(CSSPrimitiveValue.CSS_RGBCOLOR, ((CSSPrimitiveValue) actual).getPrimitiveType());
- RGBColor color = ((CSSPrimitiveValue) actual).getRGBColorValue();
- CSSPrimitiveValue value;
- Object expected;
- value = color.getRed();
- expected = expectedArray[0];
- if (expected instanceof PrimitiveNumber) {
- checkPrimitiveNumber(value, (PrimitiveNumber) expected);
- }
- else {
- checkPrimitiveString(value, (PrimitiveString) expected);
- }
- value = color.getGreen();
- expected = expectedArray[1];
- if (expected instanceof PrimitiveNumber) {
- checkPrimitiveNumber(value, (PrimitiveNumber) expected);
- }
- else {
- checkPrimitiveString(value, (PrimitiveString) expected);
- }
- value = color.getBlue();
- expected = expectedArray[2];
- if (expected instanceof PrimitiveNumber) {
- checkPrimitiveNumber(value, (PrimitiveNumber) expected);
- }
- else {
- checkPrimitiveString(value, (PrimitiveString) expected);
- }
- }
-
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/BUG73990SelectorFormatTest.java b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/BUG73990SelectorFormatTest.java
deleted file mode 100644
index cb031f9..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/BUG73990SelectorFormatTest.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package org.eclipse.wst.css.core.tests.model;
-
-import java.io.IOException;
-
-import org.eclipse.wst.css.core.document.ICSSModel;
-import org.eclipse.wst.css.core.format.FormatProcessorCSS;
-import org.eclipse.wst.css.core.tests.util.FileUtil;
-import org.eclipse.wst.sse.core.text.IStructuredDocument;
-
-public class BUG73990SelectorFormatTest extends AbstractModelTest {
- public void testInsertText1() throws IOException {
- ICSSModel model = getModel();
- IStructuredDocument structuredDocument = model.getStructuredDocument();
- structuredDocument.set(FileUtil.createString(
- "src/org/eclipse/wst/css/core/tests/testfiles",
- "BUG73990_selector_unformatted.css"));
-
- (new FormatProcessorCSS()).formatModel(model);
-
- String expected = FileUtil.createString(
- "src/org/eclipse/wst/css/core/tests/testfiles/results",
- "BUG73990_selector_formatted.css");
- // Note: FileUtil.createString() added a commonEOL to the expected
- // string. We have to concat a commonEOL to the actual string.
- String actual = structuredDocument.get().concat(FileUtil.commonEOL);
- assertEquals(expected, actual);
- }
-}
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/CSSCharsetRuleTest.java b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/CSSCharsetRuleTest.java
deleted file mode 100644
index 4d0a512..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/CSSCharsetRuleTest.java
+++ /dev/null
@@ -1,48 +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.css.core.tests.model;
-
-import org.eclipse.wst.css.core.document.ICSSDocument;
-import org.eclipse.wst.css.core.document.ICSSStyleSheet;
-import org.w3c.dom.css.CSSCharsetRule;
-import org.w3c.dom.css.CSSRule;
-import org.w3c.dom.css.CSSRuleList;
-import org.w3c.dom.css.CSSStyleSheet;
-
-public class CSSCharsetRuleTest extends AbstractModelTest {
- private final String RULE = "@charset \"iso-8859-1\";";
-
- public void testInsertRule() {
- CSSStyleSheet sheet = getStyleSheet();
-
- assertEquals(0, sheet.insertRule(RULE, 0));
-
- CSSRuleList ruleList = sheet.getCssRules();
- CSSRule rule = ruleList.item(0);
- assertTrue(rule instanceof CSSCharsetRule);
- CSSCharsetRule charsetRule = (CSSCharsetRule) rule;
- assertEquals("iso-8859-1", charsetRule.getEncoding());
- assertEquals(RULE, charsetRule.getCssText());
- }
-
- public void testCreateRule() {
- ICSSStyleSheet sheet = getStyleSheet();
- ICSSDocument doc = sheet;
- CSSCharsetRule newRule = doc.createCSSCharsetRule();
- newRule.setEncoding("iso-8859-1");
- sheet.insertRuleBefore(newRule, null);
-
- CSSRuleList ruleList = sheet.getCssRules();
- CSSRule rule = ruleList.item(0);
- assertTrue(rule instanceof CSSCharsetRule);
- CSSCharsetRule charsetRule = (CSSCharsetRule) rule;
- assertEquals("iso-8859-1", charsetRule.getEncoding());
- assertEquals(RULE, charsetRule.getCssText());
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/CSSFontFaceRuleTest.java b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/CSSFontFaceRuleTest.java
deleted file mode 100644
index e364cb9..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/CSSFontFaceRuleTest.java
+++ /dev/null
@@ -1,265 +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.css.core.tests.model;
-
-import java.io.IOException;
-
-import org.eclipse.wst.css.core.document.ICSSModel;
-import org.eclipse.wst.css.core.document.ICSSPrimitiveValue;
-import org.eclipse.wst.css.core.tests.util.FileUtil;
-import org.eclipse.wst.sse.core.text.IStructuredDocument;
-import org.w3c.dom.css.CSSFontFaceRule;
-import org.w3c.dom.css.CSSPrimitiveValue;
-import org.w3c.dom.css.CSSRule;
-import org.w3c.dom.css.CSSRuleList;
-import org.w3c.dom.css.CSSStyleDeclaration;
-import org.w3c.dom.css.CSSStyleSheet;
-import org.w3c.dom.css.CSSValue;
-import org.w3c.dom.css.CSSValueList;
-
-public class CSSFontFaceRuleTest extends AbstractModelTest {
- public void testInsertRule() {
- final String RULE = "@font-face { font-family: \"Swiss 721\"; src: url(swiss721.pfr); /* The expanded Swiss 721 */ font-stretch: expanded; }";
- CSSStyleSheet sheet = getStyleSheet();
- assertEquals(0, sheet.insertRule(RULE, 0));
-
- CSSRuleList ruleList = sheet.getCssRules();
- CSSRule rule = ruleList.item(0);
- assertTrue(rule instanceof CSSFontFaceRule);
-
- CSSStyleDeclaration declaration = ((CSSFontFaceRule) rule).getStyle();
- assertEquals(3, declaration.getLength());
-
- CSSValue value;
- CSSPrimitiveValue primitiveValue;
-
- value = declaration.getPropertyCSSValue("font-family");
- assertTrue(value instanceof CSSPrimitiveValue);
-
- primitiveValue = (CSSPrimitiveValue) value;
- assertEquals(CSSPrimitiveValue.CSS_STRING, primitiveValue.getPrimitiveType());
- assertEquals("Swiss 721", primitiveValue.getStringValue());
-
- value = declaration.getPropertyCSSValue("src");
- assertTrue(value instanceof CSSPrimitiveValue);
-
- primitiveValue = (CSSPrimitiveValue) value;
- assertEquals(CSSPrimitiveValue.CSS_URI, primitiveValue.getPrimitiveType());
- assertEquals("swiss721.pfr", primitiveValue.getStringValue());
-
- value = declaration.getPropertyCSSValue("font-stretch");
- assertTrue(value instanceof CSSPrimitiveValue);
-
- primitiveValue = (CSSPrimitiveValue) value;
- assertEquals(CSSPrimitiveValue.CSS_IDENT, primitiveValue.getPrimitiveType());
- assertEquals("expanded", primitiveValue.getStringValue());
- }
-
- public void testInsertText1() throws IOException {
- ICSSModel model = getModel();
- IStructuredDocument structuredDocument = model.getStructuredDocument();
- structuredDocument.set(FileUtil.createString("src/org/eclipse/wst/css/core/tests/testfiles", "CSSFontFaceRuleTest.css"));
-
- CSSStyleSheet sheet = (CSSStyleSheet) model.getDocument();
- CSSRuleList ruleList = sheet.getCssRules();
- assertEquals(3, ruleList.getLength());
-
- CSSRule rule;
- CSSStyleDeclaration declaration;
- CSSValue value;
- CSSValueList valueList;
-
- // rule 1
-
- rule = ruleList.item(0);
- assertEquals(CSSRule.FONT_FACE_RULE, rule.getType());
- assertTrue(rule instanceof CSSFontFaceRule);
-
- declaration = ((CSSFontFaceRule) rule).getStyle();
- assertEquals(4, declaration.getLength());
-
- value = declaration.getPropertyCSSValue("font-family");
- checkPrimitiveString(value, new PrimitiveString(CSSPrimitiveValue.CSS_STRING, "Swiss 721"));
-
- value = declaration.getPropertyCSSValue("src");
- checkPrimitiveString(value, new PrimitiveString(CSSPrimitiveValue.CSS_URI, "swiss721blk.pfr"));
-
- value = declaration.getPropertyCSSValue("font-style");
- assertTrue(value instanceof CSSValueList);
-
- valueList = (CSSValueList) value;
- assertEquals(3, valueList.getLength());
-
- checkPrimitiveString(valueList.item(0), new PrimitiveString(CSSPrimitiveValue.CSS_IDENT, "normal"));
- checkPrimitiveString(valueList.item(1), new PrimitiveString(ICSSPrimitiveValue.CSS_COMMA, ","));
- checkPrimitiveString(valueList.item(2), new PrimitiveString(CSSPrimitiveValue.CSS_IDENT, "italic"));
-
- value = declaration.getPropertyCSSValue("font-weight");
- assertTrue(value instanceof CSSValueList);
-
- valueList = (CSSValueList) value;
- assertEquals(3, valueList.getLength());
-
- checkPrimitiveNumber(valueList.item(0), new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 800));
- checkPrimitiveString(valueList.item(1), new PrimitiveString(ICSSPrimitiveValue.CSS_COMMA, ","));
- checkPrimitiveNumber(valueList.item(2), new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 900));
- }
-
- public void testInsertText2() throws IOException {
- ICSSModel model = getModel();
- IStructuredDocument structuredDocument = model.getStructuredDocument();
- structuredDocument.set(FileUtil.createString("src/org/eclipse/wst/css/core/tests/testfiles", "CSSFontFaceRuleTest.css"));
-
- CSSStyleSheet sheet = (CSSStyleSheet) model.getDocument();
- CSSRuleList ruleList = sheet.getCssRules();
- assertEquals(3, ruleList.getLength());
-
- CSSRule rule;
- CSSStyleDeclaration declaration;
- CSSValue value;
- CSSValueList valueList;
-
- // rule 2
-
- rule = ruleList.item(1);
- assertEquals(CSSRule.FONT_FACE_RULE, rule.getType());
- assertTrue(rule instanceof CSSFontFaceRule);
-
- declaration = ((CSSFontFaceRule) rule).getStyle();
- assertEquals(6, declaration.getLength());
-
- value = declaration.getPropertyCSSValue("src");
- assertTrue(value instanceof CSSValueList);
-
- valueList = (CSSValueList) value;
- assertEquals(9, valueList.getLength());
-
- checkPrimitiveString(valueList.item(0), new PrimitiveString(ICSSPrimitiveValue.CSS_LOCAL, "Palatino"));
- checkPrimitiveString(valueList.item(1), new PrimitiveString(ICSSPrimitiveValue.CSS_COMMA, ","));
- checkPrimitiveString(valueList.item(2), new PrimitiveString(ICSSPrimitiveValue.CSS_LOCAL, "Times New Roman"));
- checkPrimitiveString(valueList.item(3), new PrimitiveString(ICSSPrimitiveValue.CSS_COMMA, ","));
- checkPrimitiveString(valueList.item(4), new PrimitiveString(ICSSPrimitiveValue.CSS_LOCAL, "New York"));
- checkPrimitiveString(valueList.item(5), new PrimitiveString(ICSSPrimitiveValue.CSS_COMMA, ","));
- checkPrimitiveString(valueList.item(6), new PrimitiveString(ICSSPrimitiveValue.CSS_LOCAL, "Utopia"));
- checkPrimitiveString(valueList.item(7), new PrimitiveString(ICSSPrimitiveValue.CSS_COMMA, ","));
- checkPrimitiveString(valueList.item(8), new PrimitiveString(CSSPrimitiveValue.CSS_URI, "http://somewhere/free/font"));
-
- value = declaration.getPropertyCSSValue("font-family");
- checkPrimitiveString(value, new PrimitiveString(CSSPrimitiveValue.CSS_IDENT, "serif"));
-
- value = declaration.getPropertyCSSValue("font-weight");
- assertTrue(value instanceof CSSValueList);
-
- valueList = (CSSValueList) value;
- assertEquals(9, valueList.getLength());
-
- checkPrimitiveNumber(valueList.item(0), new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 100));
- checkPrimitiveString(valueList.item(1), new PrimitiveString(ICSSPrimitiveValue.CSS_COMMA, ","));
- checkPrimitiveNumber(valueList.item(2), new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 200));
- checkPrimitiveString(valueList.item(3), new PrimitiveString(ICSSPrimitiveValue.CSS_COMMA, ","));
- checkPrimitiveNumber(valueList.item(4), new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 300));
- checkPrimitiveString(valueList.item(5), new PrimitiveString(ICSSPrimitiveValue.CSS_COMMA, ","));
- checkPrimitiveNumber(valueList.item(6), new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 400));
- checkPrimitiveString(valueList.item(7), new PrimitiveString(ICSSPrimitiveValue.CSS_COMMA, ","));
- checkPrimitiveNumber(valueList.item(8), new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 500));
-
- value = declaration.getPropertyCSSValue("font-style");
- checkPrimitiveString(value, new PrimitiveString(CSSPrimitiveValue.CSS_IDENT, "normal"));
-
- value = declaration.getPropertyCSSValue("font-variant");
- checkPrimitiveString(value, new PrimitiveString(CSSPrimitiveValue.CSS_IDENT, "normal"));
-
- value = declaration.getPropertyCSSValue("font-size");
- checkPrimitiveString(value, new PrimitiveString(CSSPrimitiveValue.CSS_IDENT, "all"));
- }
-
- public void testInsertText3() throws IOException {
- ICSSModel model = getModel();
- IStructuredDocument structuredDocument = model.getStructuredDocument();
- structuredDocument.set(FileUtil.createString("src/org/eclipse/wst/css/core/tests/testfiles", "CSSFontFaceRuleTest.css"));
-
- CSSStyleSheet sheet = (CSSStyleSheet) model.getDocument();
- CSSRuleList ruleList = sheet.getCssRules();
- assertEquals(3, ruleList.getLength());
-
- CSSRule rule;
- CSSStyleDeclaration declaration;
- CSSValue value;
- CSSValueList valueList;
-
- // rule 3
-
- rule = ruleList.item(2);
- assertEquals(CSSRule.FONT_FACE_RULE, rule.getType());
- assertTrue(rule instanceof CSSFontFaceRule);
-
- declaration = ((CSSFontFaceRule) rule).getStyle();
- assertEquals(5, declaration.getLength());
-
- value = declaration.getPropertyCSSValue("src");
- assertTrue(value instanceof CSSValueList);
-
- valueList = (CSSValueList) value;
- assertEquals(4, valueList.getLength());
-
- checkPrimitiveString(valueList.item(0), new PrimitiveString(ICSSPrimitiveValue.CSS_LOCAL, "Alabama Italic"));
- checkPrimitiveString(valueList.item(1), new PrimitiveString(ICSSPrimitiveValue.CSS_COMMA, ","));
- checkPrimitiveString(valueList.item(2), new PrimitiveString(CSSPrimitiveValue.CSS_URI, "http://www.fonts.org/A/alabama-italic"));
- checkPrimitiveString(valueList.item(3), new PrimitiveString(ICSSPrimitiveValue.CSS_FORMAT, "truetype"));
-
- value = declaration.getPropertyCSSValue("panose-1");
- assertTrue(value instanceof CSSValueList);
-
- valueList = (CSSValueList) value;
- assertEquals(10, valueList.getLength());
-
- checkPrimitiveNumber(valueList.item(0), new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 2));
- checkPrimitiveNumber(valueList.item(1), new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 4));
- checkPrimitiveNumber(valueList.item(2), new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 5));
- checkPrimitiveNumber(valueList.item(3), new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 2));
- checkPrimitiveNumber(valueList.item(4), new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 5));
- checkPrimitiveNumber(valueList.item(5), new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 4));
- checkPrimitiveNumber(valueList.item(6), new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 5));
- checkPrimitiveNumber(valueList.item(7), new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 9));
- checkPrimitiveNumber(valueList.item(8), new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 3));
- checkPrimitiveNumber(valueList.item(9), new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 3));
-
- value = declaration.getPropertyCSSValue("font-family");
- assertTrue(value instanceof CSSValueList);
-
- valueList = (CSSValueList) value;
- assertEquals(3, valueList.getLength());
-
- checkPrimitiveString(valueList.item(0), new PrimitiveString(CSSPrimitiveValue.CSS_IDENT, "Alabama"));
- checkPrimitiveString(valueList.item(1), new PrimitiveString(ICSSPrimitiveValue.CSS_COMMA, ","));
- checkPrimitiveString(valueList.item(2), new PrimitiveString(CSSPrimitiveValue.CSS_IDENT, "serif"));
-
- value = declaration.getPropertyCSSValue("font-weight");
- assertTrue(value instanceof CSSValueList);
-
- valueList = (CSSValueList) value;
- assertEquals(5, valueList.getLength());
-
- checkPrimitiveNumber(valueList.item(0), new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 300));
- checkPrimitiveString(valueList.item(1), new PrimitiveString(ICSSPrimitiveValue.CSS_COMMA, ","));
- checkPrimitiveNumber(valueList.item(2), new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 400));
- checkPrimitiveString(valueList.item(3), new PrimitiveString(ICSSPrimitiveValue.CSS_COMMA, ","));
- checkPrimitiveNumber(valueList.item(4), new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 500));
-
- value = declaration.getPropertyCSSValue("font-style");
- assertTrue(value instanceof CSSValueList);
-
- valueList = (CSSValueList) value;
- assertEquals(3, valueList.getLength());
-
- checkPrimitiveString(valueList.item(0), new PrimitiveString(CSSPrimitiveValue.CSS_IDENT, "italic"));
- checkPrimitiveString(valueList.item(1), new PrimitiveString(ICSSPrimitiveValue.CSS_COMMA, ","));
- checkPrimitiveString(valueList.item(2), new PrimitiveString(CSSPrimitiveValue.CSS_IDENT, "oblique"));
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/CSSImportRuleTest.java b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/CSSImportRuleTest.java
deleted file mode 100644
index 749b00c..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/CSSImportRuleTest.java
+++ /dev/null
@@ -1,94 +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.css.core.tests.model;
-
-import org.eclipse.wst.css.core.document.ICSSDocument;
-import org.eclipse.wst.css.core.document.ICSSImportRule;
-import org.eclipse.wst.css.core.document.ICSSStyleSheet;
-import org.w3c.dom.css.CSSImportRule;
-import org.w3c.dom.css.CSSRule;
-import org.w3c.dom.css.CSSRuleList;
-import org.w3c.dom.css.CSSStyleSheet;
-import org.w3c.dom.stylesheets.MediaList;
-
-public class CSSImportRuleTest extends AbstractModelTest {
-
- public void testInsertRuleDoubleQuote() {
- checkInsert("@import \"dummy.css\";", "dummy.css", null);
- }
-
- public void testInsertRuleSingleQuote() {
- checkInsert("@import \'dummy.css\';", "dummy.css", null);
- }
-
- public void testInsertRuleUrlNoQuote() {
- checkInsert("@import url(dummy.css);", "dummy.css", null);
- }
-
- public void testInsertRuleUrlDoubleQuote() {
- checkInsert("@import url(\"dummy.css\");", "dummy.css", null);
- }
-
- public void testInsertRuleUrlSingleQuote() {
- checkInsert("@import url(\'dummy.css\');", "dummy.css", null);
- }
-
- public void testInsertRuleMedia1() {
- checkInsert("@import url(\"dummy.css\") media1;", "dummy.css", new String[]{"media1"});
- }
-
- public void testInsertRuleMedia2() {
- checkInsert("@import url(\'dummy.css\') media1, media2;", "dummy.css", new String[]{"media1", "media2"});
- }
-
- public void testCreateRule() {
- ICSSStyleSheet sheet = getStyleSheet();
- ICSSDocument doc = sheet;
- ICSSImportRule newRule = doc.createCSSImportRule();
- newRule.setHref("dummy.css");
- MediaList newList = newRule.getMedia();
- newList.appendMedium("media1");
- newList.appendMedium("media2");
- sheet.insertRuleBefore(newRule, null);
-
- CSSRuleList ruleList = sheet.getCssRules();
- CSSRule rule = ruleList.item(0);
- assertTrue(rule instanceof CSSImportRule);
- CSSImportRule importRule = (CSSImportRule) rule;
- assertEquals("dummy.css", importRule.getHref());
- MediaList mediaList = importRule.getMedia();
- assertEquals(2, mediaList.getLength());
- assertEquals("media1", mediaList.item(0));
- assertEquals("media2", mediaList.item(1));
-
- assertEquals("@import url(\"dummy.css\") media1, media2;", importRule.getCssText());
- }
-
- private void checkInsert(String ruleString, String href, String[] media) {
- CSSStyleSheet sheet = getStyleSheet();
-
- assertEquals(0, sheet.insertRule(ruleString, 0));
-
- CSSRuleList ruleList = sheet.getCssRules();
- CSSRule rule = ruleList.item(0);
- assertTrue(rule instanceof CSSImportRule);
-
- CSSImportRule importRule = (CSSImportRule) rule;
- assertEquals(href, importRule.getHref());
-
- if (media != null) {
- assertEquals(media.length, importRule.getMedia().getLength());
- for (int i = 0; i < media.length; i++) {
- assertEquals(media[i], importRule.getMedia().item(i));
- }
- }
-
- assertEquals(ruleString, importRule.getCssText());
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/CSSMediaRuleTest.java b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/CSSMediaRuleTest.java
deleted file mode 100644
index d8ab286..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/CSSMediaRuleTest.java
+++ /dev/null
@@ -1,42 +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.css.core.tests.model;
-
-import org.eclipse.wst.css.core.document.ICSSDocument;
-import org.eclipse.wst.css.core.document.ICSSMediaRule;
-import org.eclipse.wst.css.core.document.ICSSStyleSheet;
-import org.eclipse.wst.css.core.tests.util.FileUtil;
-import org.w3c.dom.css.CSSMediaRule;
-import org.w3c.dom.css.CSSRule;
-import org.w3c.dom.css.CSSRuleList;
-import org.w3c.dom.stylesheets.MediaList;
-
-public class CSSMediaRuleTest extends AbstractModelTest {
- public void testCreateRule() {
- ICSSStyleSheet sheet = getStyleSheet();
- ICSSDocument doc = sheet;
- ICSSMediaRule newRule = doc.createCSSMediaRule();
- MediaList newList = newRule.getMedia();
- newList.appendMedium("media1");
- newList.appendMedium("media2");
- sheet.insertRuleBefore(newRule, null);
-
- CSSRuleList ruleList = sheet.getCssRules();
- CSSRule rule = ruleList.item(0);
- assertTrue(rule instanceof CSSMediaRule);
- CSSMediaRule mediaRule = (CSSMediaRule) rule;
-
- MediaList mediaList = mediaRule.getMedia();
- assertEquals(2, mediaList.getLength());
- assertEquals("media1", mediaList.item(0));
- assertEquals("media2", mediaList.item(1));
-
- assertEquals("@media media1, media2 {" + FileUtil.commonEOL + "}", mediaRule.getCssText());
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/CSSPageRuleTest.java b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/CSSPageRuleTest.java
deleted file mode 100644
index 6c210fa..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/CSSPageRuleTest.java
+++ /dev/null
@@ -1,215 +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.css.core.tests.model;
-
-import java.io.IOException;
-
-import org.eclipse.wst.css.core.document.ICSSModel;
-import org.eclipse.wst.css.core.tests.util.FileUtil;
-import org.eclipse.wst.sse.core.text.IStructuredDocument;
-import org.w3c.dom.css.CSSPageRule;
-import org.w3c.dom.css.CSSPrimitiveValue;
-import org.w3c.dom.css.CSSRule;
-import org.w3c.dom.css.CSSRuleList;
-import org.w3c.dom.css.CSSStyleDeclaration;
-import org.w3c.dom.css.CSSStyleSheet;
-import org.w3c.dom.css.CSSValue;
-import org.w3c.dom.css.CSSValueList;
-
-public class CSSPageRuleTest extends AbstractModelTest {
- public void testInsertText1() throws IOException {
- ICSSModel model = getModel();
- IStructuredDocument structuredDocument = model.getStructuredDocument();
- structuredDocument.set(FileUtil.createString("src/org/eclipse/wst/css/core/tests/testfiles", "CSSPageRuleTest.css"));
-
- CSSStyleSheet sheet = (CSSStyleSheet) model.getDocument();
- CSSRuleList ruleList = sheet.getCssRules();
- assertEquals(6, ruleList.getLength());
-
- CSSRule rule;
- CSSStyleDeclaration declaration;
- CSSValue value;
- CSSValueList valueList;
-
- // rule 1
-
- rule = ruleList.item(0);
- assertEquals(CSSRule.PAGE_RULE, rule.getType());
- assertTrue(rule instanceof CSSPageRule);
-
- declaration = ((CSSPageRule) rule).getStyle();
- assertEquals(2, declaration.getLength());
-
- value = declaration.getPropertyCSSValue("size");
- assertTrue(value instanceof CSSValueList);
-
- valueList = (CSSValueList) value;
- assertEquals(2, valueList.getLength());
-
- checkPrimitiveNumber(valueList.item(0), new PrimitiveNumber(CSSPrimitiveValue.CSS_IN, (float) 8.5));
- checkPrimitiveNumber(valueList.item(1), new PrimitiveNumber(CSSPrimitiveValue.CSS_IN, 11));
-
- value = declaration.getPropertyCSSValue("margin");
- checkPrimitiveNumber(value, new PrimitiveNumber(CSSPrimitiveValue.CSS_CM, 2));
- }
-
- public void testInsertText2() throws IOException {
- ICSSModel model = getModel();
- IStructuredDocument structuredDocument = model.getStructuredDocument();
- structuredDocument.set(FileUtil.createString("src/org/eclipse/wst/css/core/tests/testfiles", "CSSPageRuleTest.css"));
-
- CSSStyleSheet sheet = (CSSStyleSheet) model.getDocument();
- CSSRuleList ruleList = sheet.getCssRules();
- assertEquals(6, ruleList.getLength());
-
- CSSRule rule;
- CSSStyleDeclaration declaration;
- CSSValue value;
-
- // rule 2
-
- rule = ruleList.item(1);
- assertEquals(CSSRule.PAGE_RULE, rule.getType());
- assertTrue(rule instanceof CSSPageRule);
-
- declaration = ((CSSPageRule) rule).getStyle();
- assertEquals(2, declaration.getLength());
-
- value = declaration.getPropertyCSSValue("size");
- checkPrimitiveString(value, new PrimitiveString(CSSPrimitiveValue.CSS_IDENT, "auto"));
-
- value = declaration.getPropertyCSSValue("margin");
- checkPrimitiveNumber(value, new PrimitiveNumber(CSSPrimitiveValue.CSS_PERCENTAGE, 10));
- }
-
- public void testInsertText3() throws IOException {
- ICSSModel model = getModel();
- IStructuredDocument structuredDocument = model.getStructuredDocument();
- structuredDocument.set(FileUtil.createString("src/org/eclipse/wst/css/core/tests/testfiles", "CSSPageRuleTest.css"));
-
- CSSStyleSheet sheet = (CSSStyleSheet) model.getDocument();
- CSSRuleList ruleList = sheet.getCssRules();
- assertEquals(6, ruleList.getLength());
-
- CSSRule rule;
- CSSStyleDeclaration declaration;
- CSSValue value;
-
- // rule 3
-
- rule = ruleList.item(2);
- assertEquals(CSSRule.PAGE_RULE, rule.getType());
- assertTrue(rule instanceof CSSPageRule);
-
- assertEquals(":left", ((CSSPageRule) rule).getSelectorText());
-
- declaration = ((CSSPageRule) rule).getStyle();
- assertEquals(2, declaration.getLength());
-
- value = declaration.getPropertyCSSValue("margin-left");
- checkPrimitiveNumber(value, new PrimitiveNumber(CSSPrimitiveValue.CSS_CM, 4));
-
- value = declaration.getPropertyCSSValue("margin-right");
- checkPrimitiveNumber(value, new PrimitiveNumber(CSSPrimitiveValue.CSS_CM, 3));
- }
-
- public void testInsertText4() throws IOException {
- ICSSModel model = getModel();
- IStructuredDocument structuredDocument = model.getStructuredDocument();
- structuredDocument.set(FileUtil.createString("src/org/eclipse/wst/css/core/tests/testfiles", "CSSPageRuleTest.css"));
-
- CSSStyleSheet sheet = (CSSStyleSheet) model.getDocument();
- CSSRuleList ruleList = sheet.getCssRules();
- assertEquals(6, ruleList.getLength());
-
- CSSRule rule;
- CSSStyleDeclaration declaration;
- CSSValue value;
-
- // rule 4
-
- rule = ruleList.item(3);
- assertEquals(CSSRule.PAGE_RULE, rule.getType());
- assertTrue(rule instanceof CSSPageRule);
-
- assertEquals(":right", ((CSSPageRule) rule).getSelectorText());
-
- declaration = ((CSSPageRule) rule).getStyle();
- assertEquals(2, declaration.getLength());
-
- value = declaration.getPropertyCSSValue("margin-left");
- checkPrimitiveNumber(value, new PrimitiveNumber(CSSPrimitiveValue.CSS_CM, 3));
-
- value = declaration.getPropertyCSSValue("margin-right");
- checkPrimitiveNumber(value, new PrimitiveNumber(CSSPrimitiveValue.CSS_CM, 4));
- }
-
- public void testInsertText5() throws IOException {
- ICSSModel model = getModel();
- IStructuredDocument structuredDocument = model.getStructuredDocument();
- structuredDocument.set(FileUtil.createString("src/org/eclipse/wst/css/core/tests/testfiles", "CSSPageRuleTest.css"));
-
- CSSStyleSheet sheet = (CSSStyleSheet) model.getDocument();
- CSSRuleList ruleList = sheet.getCssRules();
- assertEquals(6, ruleList.getLength());
-
- CSSRule rule;
- CSSStyleDeclaration declaration;
- CSSValue value;
- CSSValueList valueList;
-
- // rule 5
-
- rule = ruleList.item(4);
- assertEquals(CSSRule.PAGE_RULE, rule.getType());
- assertTrue(rule instanceof CSSPageRule);
-
- assertEquals("narrow", ((CSSPageRule) rule).getSelectorText());
-
- declaration = ((CSSPageRule) rule).getStyle();
- assertEquals(1, declaration.getLength());
-
- value = declaration.getPropertyCSSValue("size");
- assertTrue(value instanceof CSSValueList);
-
- valueList = (CSSValueList) value;
- assertEquals(2, valueList.getLength());
-
- checkPrimitiveNumber(valueList.item(0), new PrimitiveNumber(CSSPrimitiveValue.CSS_CM, 9));
- checkPrimitiveNumber(valueList.item(1), new PrimitiveNumber(CSSPrimitiveValue.CSS_CM, 18));
- }
-
- public void testInsertText6() throws IOException {
- ICSSModel model = getModel();
- IStructuredDocument structuredDocument = model.getStructuredDocument();
- structuredDocument.set(FileUtil.createString("src/org/eclipse/wst/css/core/tests/testfiles", "CSSPageRuleTest.css"));
-
- CSSStyleSheet sheet = (CSSStyleSheet) model.getDocument();
- CSSRuleList ruleList = sheet.getCssRules();
- assertEquals(6, ruleList.getLength());
-
- CSSRule rule;
- CSSStyleDeclaration declaration;
- CSSValue value;
-
- // rule 6
-
- rule = ruleList.item(5);
- assertEquals(CSSRule.PAGE_RULE, rule.getType());
- assertTrue(rule instanceof CSSPageRule);
-
- assertEquals("rotated", ((CSSPageRule) rule).getSelectorText());
-
- declaration = ((CSSPageRule) rule).getStyle();
- assertEquals(1, declaration.getLength());
-
- value = declaration.getPropertyCSSValue("size");
- checkPrimitiveString(value, new PrimitiveString(CSSPrimitiveValue.CSS_IDENT, "landscape"));
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/CSSStyleRuleTest.java b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/CSSStyleRuleTest.java
deleted file mode 100644
index fb0bde6..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/CSSStyleRuleTest.java
+++ /dev/null
@@ -1,218 +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.css.core.tests.model;
-
-import java.io.IOException;
-
-import org.eclipse.wst.css.core.document.ICSSModel;
-import org.eclipse.wst.css.core.document.ICSSPrimitiveValue;
-import org.eclipse.wst.css.core.tests.util.FileUtil;
-import org.eclipse.wst.sse.core.text.IStructuredDocument;
-import org.w3c.dom.css.CSSPrimitiveValue;
-import org.w3c.dom.css.CSSRule;
-import org.w3c.dom.css.CSSRuleList;
-import org.w3c.dom.css.CSSStyleDeclaration;
-import org.w3c.dom.css.CSSStyleRule;
-import org.w3c.dom.css.CSSStyleSheet;
-import org.w3c.dom.css.CSSValue;
-
-public class CSSStyleRuleTest extends AbstractModelTest {
- public void testInsertTextNumbers() throws IOException {
- ICSSModel model = getModel();
- IStructuredDocument structuredDocument = model.getStructuredDocument();
- structuredDocument.set(FileUtil.createString("src/org/eclipse/wst/css/core/tests/testfiles", "CSSStyleRuleTest.css"));
-
- CSSStyleSheet sheet = (CSSStyleSheet) model.getDocument();
- CSSRuleList ruleList = sheet.getCssRules();
- assertEquals(3, ruleList.getLength());
-
- CSSRule rule;
- CSSStyleDeclaration declaration;
- CSSValue value;
-
- rule = ruleList.item(0);
- assertEquals(CSSRule.STYLE_RULE, rule.getType());
- assertTrue(rule instanceof CSSStyleRule);
-
- declaration = ((CSSStyleRule) rule).getStyle();
- assertEquals(19, declaration.getLength());
-
- // 01
- value = declaration.getPropertyCSSValue("NUMBER");
- checkPrimitiveNumber(value, new PrimitiveNumber(CSSPrimitiveValue.CSS_NUMBER, 123.456f));
-
- // 02
- value = declaration.getPropertyCSSValue("PERCENTAGE");
- checkPrimitiveNumber(value, new PrimitiveNumber(CSSPrimitiveValue.CSS_PERCENTAGE, 123.456f));
-
- // 03
- value = declaration.getPropertyCSSValue("EMS");
- checkPrimitiveNumber(value, new PrimitiveNumber(CSSPrimitiveValue.CSS_EMS, 123.456f));
-
- // 04
- value = declaration.getPropertyCSSValue("EXS");
- checkPrimitiveNumber(value, new PrimitiveNumber(CSSPrimitiveValue.CSS_EXS, 123.456f));
-
- // 05
- value = declaration.getPropertyCSSValue("PX");
- checkPrimitiveNumber(value, new PrimitiveNumber(CSSPrimitiveValue.CSS_PX, 123.456f));
-
- // 06
- value = declaration.getPropertyCSSValue("CM");
- checkPrimitiveNumber(value, new PrimitiveNumber(CSSPrimitiveValue.CSS_CM, 123.456f));
-
- // 07
- value = declaration.getPropertyCSSValue("MM");
- checkPrimitiveNumber(value, new PrimitiveNumber(CSSPrimitiveValue.CSS_MM, 123.456f));
-
- // 08
- value = declaration.getPropertyCSSValue("IN");
- checkPrimitiveNumber(value, new PrimitiveNumber(CSSPrimitiveValue.CSS_IN, 123.456f));
-
- // 09
- value = declaration.getPropertyCSSValue("PT");
- checkPrimitiveNumber(value, new PrimitiveNumber(CSSPrimitiveValue.CSS_PT, 123.456f));
-
- // 10
- value = declaration.getPropertyCSSValue("PC");
- checkPrimitiveNumber(value, new PrimitiveNumber(CSSPrimitiveValue.CSS_PC, 123.456f));
-
- // 11
- value = declaration.getPropertyCSSValue("DEG");
- checkPrimitiveNumber(value, new PrimitiveNumber(CSSPrimitiveValue.CSS_DEG, -123.456f));
-
- // 12
- value = declaration.getPropertyCSSValue("RAD");
- checkPrimitiveNumber(value, new PrimitiveNumber(CSSPrimitiveValue.CSS_RAD, 123.456f));
-
- // 13
- value = declaration.getPropertyCSSValue("GRAD");
- checkPrimitiveNumber(value, new PrimitiveNumber(CSSPrimitiveValue.CSS_GRAD, 123.456f));
-
- // 14
- value = declaration.getPropertyCSSValue("MS");
- checkPrimitiveNumber(value, new PrimitiveNumber(CSSPrimitiveValue.CSS_MS, 123.456f));
-
- // 15
- value = declaration.getPropertyCSSValue("S");
- checkPrimitiveNumber(value, new PrimitiveNumber(CSSPrimitiveValue.CSS_S, 123.456f));
-
- // 16
- value = declaration.getPropertyCSSValue("HZ");
- checkPrimitiveNumber(value, new PrimitiveNumber(CSSPrimitiveValue.CSS_HZ, 123.456f));
-
- // 17
- value = declaration.getPropertyCSSValue("KHZ");
- checkPrimitiveNumber(value, new PrimitiveNumber(CSSPrimitiveValue.CSS_KHZ, 123.456f));
-
- // 18
- value = declaration.getPropertyCSSValue("DIMENSION");
- checkPrimitiveNumber(value, new PrimitiveNumber(CSSPrimitiveValue.CSS_DIMENSION, -123.456f));
-
- // 19
- value = declaration.getPropertyCSSValue("INTEGER");
- checkPrimitiveNumber(value, new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 123));
- }
-
- public void testInsertTextStrings() throws IOException {
- ICSSModel model = getModel();
- IStructuredDocument structuredDocument = model.getStructuredDocument();
- structuredDocument.set(FileUtil.createString("src/org/eclipse/wst/css/core/tests/testfiles", "CSSStyleRuleTest.css"));
-
- CSSStyleSheet sheet = (CSSStyleSheet) model.getDocument();
- CSSRuleList ruleList = sheet.getCssRules();
- assertEquals(3, ruleList.getLength());
-
- CSSRule rule;
- CSSStyleDeclaration declaration;
- CSSValue value;
-
- rule = ruleList.item(1);
- assertEquals(CSSRule.STYLE_RULE, rule.getType());
- assertTrue(rule instanceof CSSStyleRule);
-
- declaration = ((CSSStyleRule) rule).getStyle();
- assertEquals(11, declaration.getLength());
-
- // 01
- value = declaration.getPropertyCSSValue("STRING");
- checkPrimitiveString(value, new PrimitiveString(CSSPrimitiveValue.CSS_STRING, "string"));
-
- // 02
- value = declaration.getPropertyCSSValue("URI");
- checkPrimitiveString(value, new PrimitiveString(CSSPrimitiveValue.CSS_URI, "http://www.ibm.com/"));
-
- // 03
- value = declaration.getPropertyCSSValue("IDENT");
- checkPrimitiveString(value, new PrimitiveString(CSSPrimitiveValue.CSS_IDENT, "left"));
-
- // 04
- value = declaration.getPropertyCSSValue("HASH");
- checkPrimitiveString(value, new PrimitiveString(ICSSPrimitiveValue.CSS_HASH, "#abcdef"));
-
- // 05
- value = declaration.getPropertyCSSValue("URANGE");
- checkPrimitiveString(value, new PrimitiveString(ICSSPrimitiveValue.CSS_URANGE, "U+20A7"));
-
- // 06
- value = declaration.getPropertyCSSValue("SLASH");
- checkPrimitiveString(value, new PrimitiveString(ICSSPrimitiveValue.CSS_SLASH, "/"));
-
- // 07
- value = declaration.getPropertyCSSValue("COMMA");
- checkPrimitiveString(value, new PrimitiveString(ICSSPrimitiveValue.CSS_COMMA, ","));
-
- // 08
- value = declaration.getPropertyCSSValue("INHERIT_PRIMITIVE");
- checkPrimitiveString(value, new PrimitiveString(ICSSPrimitiveValue.CSS_INHERIT_PRIMITIVE, "inherit"));
-
- // 09
- value = declaration.getPropertyCSSValue("ATTR");
- checkPrimitiveString(value, new PrimitiveString(CSSPrimitiveValue.CSS_ATTR, "KEY"));
-
- // 10
- value = declaration.getPropertyCSSValue("FORMAT");
- checkPrimitiveString(value, new PrimitiveString(ICSSPrimitiveValue.CSS_FORMAT, "truedoc"));
-
- // 11
- value = declaration.getPropertyCSSValue("LOCAL");
- checkPrimitiveString(value, new PrimitiveString(ICSSPrimitiveValue.CSS_LOCAL, "Excelsior Roman"));
- }
-
- public void testInsertTextFunctions() throws IOException {
- ICSSModel model = getModel();
- IStructuredDocument structuredDocument = model.getStructuredDocument();
- structuredDocument.set(FileUtil.createString("src/org/eclipse/wst/css/core/tests/testfiles", "CSSStyleRuleTest.css"));
-
- CSSStyleSheet sheet = (CSSStyleSheet) model.getDocument();
- CSSRuleList ruleList = sheet.getCssRules();
- assertEquals(3, ruleList.getLength());
-
- CSSRule rule;
- CSSStyleDeclaration declaration;
- CSSValue value;
-
- rule = ruleList.item(2);
- assertEquals(CSSRule.STYLE_RULE, rule.getType());
- assertTrue(rule instanceof CSSStyleRule);
-
- declaration = ((CSSStyleRule) rule).getStyle();
- assertEquals(3, declaration.getLength());
-
- value = declaration.getPropertyCSSValue("COUNTER");
- checkPrimitiveCounter(value, "par-num", "upper-roman", null);
-
- value = declaration.getPropertyCSSValue("RECT");
- checkPrimitiveRect(value, new Object[]{new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 12), new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 34), new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 56), new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 78)});
-
- value = declaration.getPropertyCSSValue("RGBCOLOR");
- checkPrimitiveRgb(value, new Object[]{new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 255), new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 128), new PrimitiveNumber(ICSSPrimitiveValue.CSS_INTEGER, 0)});
- }
-
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/CSSStyleSheetTest.java b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/CSSStyleSheetTest.java
deleted file mode 100644
index c23ceb4..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/model/CSSStyleSheetTest.java
+++ /dev/null
@@ -1,74 +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.css.core.tests.model;
-
-import org.w3c.dom.DOMException;
-import org.w3c.dom.css.CSSRule;
-import org.w3c.dom.css.CSSRuleList;
-import org.w3c.dom.css.CSSStyleSheet;
-
-
-public class CSSStyleSheetTest extends AbstractModelTest {
- private final static String RULE_H1 = "H1 { color : red; }";
- private final static String RULE_H2 = "H2 { color : red; }";
- private final static String RULE_H3 = "H3 { color : red; }";
-
- public void testInsertRule() {
- CSSStyleSheet sheet = getStyleSheet();
-
- assertEquals(0, sheet.insertRule(RULE_H3, 0));
- assertEquals(0, sheet.insertRule(RULE_H1, 0));
- assertEquals(1, sheet.insertRule(RULE_H2, 1));
-
- CSSRuleList ruleList = sheet.getCssRules();
- CSSRule rule;
-
- rule = ruleList.item(0);
- assertEquals(RULE_H1, rule.getCssText());
- rule = ruleList.item(1);
- assertEquals(RULE_H2, rule.getCssText());
- rule = ruleList.item(2);
- assertEquals(RULE_H3, rule.getCssText());
-
- }
-
- public void testDeleteRule() {
- CSSStyleSheet sheet = getStyleSheet();
-
- assertEquals(0, sheet.insertRule(RULE_H3, 0));
- assertEquals(0, sheet.insertRule(RULE_H1, 0));
- assertEquals(1, sheet.insertRule(RULE_H2, 1));
-
- CSSRuleList ruleList;
- CSSRule rule;
-
- sheet.deleteRule(1);
- ruleList = sheet.getCssRules();
-
- rule = ruleList.item(0);
- assertEquals(RULE_H1, rule.getCssText());
- rule = ruleList.item(1);
- assertEquals(RULE_H3, rule.getCssText());
-
- sheet.deleteRule(1);
- ruleList = sheet.getCssRules();
-
- rule = ruleList.item(0);
- assertEquals(RULE_H1, rule.getCssText());
-
- sheet.deleteRule(0);
-
- try {
- sheet.deleteRule(0);
- }
- catch (DOMException e) {
- assertEquals(DOMException.INDEX_SIZE_ERR, e.code);
- }
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/source/CSSSelectorTest.java b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/source/CSSSelectorTest.java
deleted file mode 100644
index 5d861cc..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/source/CSSSelectorTest.java
+++ /dev/null
@@ -1,817 +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.css.core.tests.source;
-
-import junit.framework.TestCase;
-
-import org.eclipse.wst.css.core.document.ICSSSelector;
-import org.eclipse.wst.css.core.document.ICSSSelectorCombinator;
-import org.eclipse.wst.css.core.document.ICSSSelectorItem;
-import org.eclipse.wst.css.core.document.ICSSSelectorList;
-import org.eclipse.wst.css.core.document.ICSSSimpleSelector;
-import org.eclipse.wst.css.core.internal.document.CSSSelectorListImpl;
-
-
-public class CSSSelectorTest extends TestCase {
- public void testSelector01() {
- ICSSSelectorList list = createSelectorList("H1, H2, H3");
- checkSelectorList(list, "H1, H2, H3", 3, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "H1", 1, 1, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "H1", false, 0, 0, 0, 0);
-
- selector = list.getSelector(1);
- checkSelector(selector, "H2", 1, 1, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "H2", false, 0, 0, 0, 0);
-
- selector = list.getSelector(2);
- checkSelector(selector, "H3", 1, 1, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "H3", false, 0, 0, 0, 0);
- }
-
- public void testSelector02() {
- ICSSSelectorList list = createSelectorList("H\\\\, H\\1, H3");
- checkSelectorList(list, "H\\\\, H\\1, H3", 3, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "H\\\\", 1, 1, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "H\\\\", false, 0, 0, 0, 0);
-
- selector = list.getSelector(1);
- checkSelector(selector, "H\\1", 1, 1, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "H\\1", false, 0, 0, 0, 0);
-
- selector = list.getSelector(2);
- checkSelector(selector, "H3", 1, 1, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "H3", false, 0, 0, 0, 0);
- }
-
- public void testSelector03() {
- ICSSSelectorList list = createSelectorList("H1.pastoral");
- checkSelectorList(list, "H1.pastoral", 1, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "H1.pastoral", 1, 101, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "H1", false, 0, 1, 0, 0);
- checkSimpleSelectorClasses(item, new String[]{"pastoral"});
- }
-
- public void testSelector04() {
- ICSSSelectorList list = createSelectorList("P.pastoral.marine");
- checkSelectorList(list, "P.pastoral.marine", 1, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "P.pastoral.marine", 1, 201, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "P", false, 0, 2, 0, 0);
- checkSimpleSelectorClasses(item, new String[]{"pastoral", "marine"});
- }
-
- public void testSelector05() {
- ICSSSelectorList list = createSelectorList("*.warning");
- checkSelectorList(list, "*.warning", 1, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "*.warning", 1, 100, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "*", true, 0, 1, 0, 0);
- checkSimpleSelectorClasses(item, new String[]{"warning"});
- }
-
- public void testSelector06() {
- ICSSSelectorList list = createSelectorList(".warning");
- checkSelectorList(list, ".warning", 1, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, ".warning", 1, 100, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "", true, 0, 1, 0, 0);
- checkSimpleSelectorClasses(item, new String[]{"warning"});
- }
-
- public void testSelector07() {
- ICSSSelectorList list = createSelectorList("*[lang=fr]");
- checkSelectorList(list, "*[lang=fr]", 1, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "*[lang=fr]", 1, 100, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "*", true, 1, 0, 0, 0);
- checkSimpleSelectorAttributes(item, new String[]{"lang=fr"});
- }
-
- public void testSelector08() {
- ICSSSelectorList list = createSelectorList("[lang=fr]");
- checkSelectorList(list, "[lang=fr]", 1, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "[lang=fr]", 1, 100, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "", true, 1, 0, 0, 0);
- checkSimpleSelectorAttributes(item, new String[]{"lang=fr"});
- }
-
- public void testSelector09() {
- ICSSSelectorList list = createSelectorList("*#myid");
- checkSelectorList(list, "*#myid", 1, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "*#myid", 1, 10000, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "*", true, 0, 0, 1, 0);
- checkSimpleSelectorIDs(item, new String[]{"myid"});
- }
-
- public void testSelector10() {
- ICSSSelectorList list = createSelectorList("#myid");
- checkSelectorList(list, "#myid", 1, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "#myid", 1, 10000, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "", true, 0, 0, 1, 0);
- checkSimpleSelectorIDs(item, new String[]{"myid"});
- }
-
- public void testSelector11() {
- ICSSSelectorList list = createSelectorList("H1#z98y");
- checkSelectorList(list, "H1#z98y", 1, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "H1#z98y", 1, 10001, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "H1", false, 0, 0, 1, 0);
- checkSimpleSelectorIDs(item, new String[]{"z98y"});
- }
-
- public void testSelector12() {
- ICSSSelectorList list = createSelectorList("H1 EM");
- checkSelectorList(list, "H1 EM", 1, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "H1 EM", 3, 2, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "H1", false, 0, 0, 0, 0);
-
- item = selector.getItem(1);
- checkSelectorCombinator(item, " ", ICSSSelectorCombinator.DESCENDANT);
-
- item = selector.getItem(2);
- checkSimpleSelector(item, "EM", false, 0, 0, 0, 0);
- }
-
- public void testSelector13() {
- ICSSSelectorList list = createSelectorList("DIV * P");
- checkSelectorList(list, "DIV * P", 1, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "DIV * P", 5, 2, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "DIV", false, 0, 0, 0, 0);
-
- item = selector.getItem(1);
- checkSelectorCombinator(item, " ", ICSSSelectorCombinator.DESCENDANT);
-
- item = selector.getItem(2);
- checkSimpleSelector(item, "*", true, 0, 0, 0, 0);
-
- item = selector.getItem(3);
- checkSelectorCombinator(item, " ", ICSSSelectorCombinator.DESCENDANT);
-
- item = selector.getItem(4);
- checkSimpleSelector(item, "P", false, 0, 0, 0, 0);
- }
-
- public void testSelector14() {
- ICSSSelectorList list = createSelectorList("DIV P *[href]");
- checkSelectorList(list, "DIV P *[href]", 1, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "DIV P *[href]", 5, 102, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "DIV", false, 0, 0, 0, 0);
-
- item = selector.getItem(1);
- checkSelectorCombinator(item, " ", ICSSSelectorCombinator.DESCENDANT);
-
- item = selector.getItem(2);
- checkSimpleSelector(item, "P", false, 0, 0, 0, 0);
-
- item = selector.getItem(3);
- checkSelectorCombinator(item, " ", ICSSSelectorCombinator.DESCENDANT);
-
- item = selector.getItem(4);
- checkSimpleSelector(item, "*", true, 1, 0, 0, 0);
- checkSimpleSelectorAttributes(item, new String[]{"href"});
- }
-
- public void testSelector15() {
- ICSSSelectorList list = createSelectorList("BODY > P");
- checkSelectorList(list, "BODY > P", 1, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "BODY > P", 3, 2, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "BODY", false, 0, 0, 0, 0);
-
- item = selector.getItem(1);
- checkSelectorCombinator(item, ">", ICSSSelectorCombinator.CHILD);
-
- item = selector.getItem(2);
- checkSimpleSelector(item, "P", false, 0, 0, 0, 0);
- }
-
- public void testSelector16() {
- ICSSSelectorList list = createSelectorList("DIV OL>LI P");
- checkSelectorList(list, "DIV OL > LI P", 1, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "DIV OL > LI P", 7, 4, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "DIV", false, 0, 0, 0, 0);
-
- item = selector.getItem(1);
- checkSelectorCombinator(item, " ", ICSSSelectorCombinator.DESCENDANT);
-
- item = selector.getItem(2);
- checkSimpleSelector(item, "OL", false, 0, 0, 0, 0);
-
- item = selector.getItem(3);
- checkSelectorCombinator(item, ">", ICSSSelectorCombinator.CHILD);
-
- item = selector.getItem(4);
- checkSimpleSelector(item, "LI", false, 0, 0, 0, 0);
-
- item = selector.getItem(5);
- checkSelectorCombinator(item, " ", ICSSSelectorCombinator.DESCENDANT);
-
- item = selector.getItem(6);
- checkSimpleSelector(item, "P", false, 0, 0, 0, 0);
- }
-
- public void testSelector17() {
- ICSSSelectorList list = createSelectorList("MATH + P");
- checkSelectorList(list, "MATH + P", 1, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "MATH + P", 3, 2, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "MATH", false, 0, 0, 0, 0);
-
- item = selector.getItem(1);
- checkSelectorCombinator(item, "+", ICSSSelectorCombinator.ADJACENT);
-
- item = selector.getItem(2);
- checkSimpleSelector(item, "P", false, 0, 0, 0, 0);
- }
-
- public void testSelector18() {
- ICSSSelectorList list = createSelectorList("H1.opener + H2");
- checkSelectorList(list, "H1.opener + H2", 1, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "H1.opener + H2", 3, 102, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "H1", false, 0, 1, 0, 0);
- checkSimpleSelectorClasses(item, new String[]{"opener"});
-
- item = selector.getItem(1);
- checkSelectorCombinator(item, "+", ICSSSelectorCombinator.ADJACENT);
-
- item = selector.getItem(2);
- checkSimpleSelector(item, "H2", false, 0, 0, 0, 0);
- }
-
- public void testSelector19() {
- ICSSSelectorList list = createSelectorList("EXAMPLE[notation=decimal]");
- checkSelectorList(list, "EXAMPLE[notation=decimal]", 1, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "EXAMPLE[notation=decimal]", 1, 101, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "EXAMPLE", false, 1, 0, 0, 0);
- checkSimpleSelectorAttributes(item, new String[]{"notation=decimal"});
- }
-
- public void testSelector20() {
- ICSSSelectorList list = createSelectorList("SPAN[hello=\"Cleveland\"][goodbye=\"Columbus\"]");
- checkSelectorList(list, "SPAN[hello=\"Cleveland\"][goodbye=\"Columbus\"]", 1, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "SPAN[hello=\"Cleveland\"][goodbye=\"Columbus\"]", 1, 201, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "SPAN", false, 2, 0, 0, 0);
- checkSimpleSelectorAttributes(item, new String[]{"hello=\"Cleveland\"", "goodbye=\"Columbus\""});
- }
-
- public void testSelector21() {
- ICSSSelectorList list = createSelectorList("DIV > P:first-child");
- checkSelectorList(list, "DIV > P:first-child", 1, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "DIV > P:first-child", 3, 102, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "DIV", false, 0, 0, 0, 0);
-
- item = selector.getItem(1);
- checkSelectorCombinator(item, ">", ICSSSelectorCombinator.CHILD);
-
- item = selector.getItem(2);
- checkSimpleSelector(item, "P", false, 0, 0, 0, 1);
- checkSimpleSelectorPseudoNames(item, new String[]{"first-child"});
- }
-
- public void testSelector22() {
- ICSSSelectorList list = createSelectorList("P:first-child EM");
- checkSelectorList(list, "P:first-child EM", 1, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "P:first-child EM", 3, 102, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "P", false, 0, 0, 0, 1);
- checkSimpleSelectorPseudoNames(item, new String[]{"first-child"});
-
- item = selector.getItem(1);
- checkSelectorCombinator(item, " ", ICSSSelectorCombinator.DESCENDANT);
-
- item = selector.getItem(2);
- checkSimpleSelector(item, "EM", false, 0, 0, 0, 0);
- }
-
- public void testSelector23() {
- ICSSSelectorList list = createSelectorList("* > A:first-child");
- checkSelectorList(list, "* > A:first-child", 1, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "* > A:first-child", 3, 101, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "*", true, 0, 0, 0, 0);
-
- item = selector.getItem(1);
- checkSelectorCombinator(item, ">", ICSSSelectorCombinator.CHILD);
-
- item = selector.getItem(2);
- checkSimpleSelector(item, "A", false, 0, 0, 0, 1);
- checkSimpleSelectorPseudoNames(item, new String[]{"first-child"});
- }
-
- public void testSelector24() {
- ICSSSelectorList list = createSelectorList("A:link");
- checkSelectorList(list, "A:link", 1, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "A:link", 1, 101, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "A", false, 0, 0, 0, 1);
- checkSimpleSelectorPseudoNames(item, new String[]{"link"});
- }
-
- public void testSelector25() {
- ICSSSelectorList list = createSelectorList(":link");
- checkSelectorList(list, ":link", 1, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, ":link", 1, 100, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "", true, 0, 0, 0, 1);
- checkSimpleSelectorPseudoNames(item, new String[]{"link"});
- }
-
- public void testSelector26() {
- ICSSSelectorList list = createSelectorList("A:focus:hover");
- checkSelectorList(list, "A:focus:hover", 1, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "A:focus:hover", 1, 201, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "A", false, 0, 0, 0, 2);
- checkSimpleSelectorPseudoNames(item, new String[]{"focus", "hover"});
- }
-
- public void testSelector27() {
- ICSSSelectorList list = createSelectorList("HTML:lang(de) > Q");
- checkSelectorList(list, "HTML:lang(de) > Q", 1, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "HTML:lang(de) > Q", 3, 102, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "HTML", false, 0, 0, 0, 1);
- checkSimpleSelectorPseudoNames(item, new String[]{"lang(de)"});
-
- item = selector.getItem(1);
- checkSelectorCombinator(item, ">", ICSSSelectorCombinator.CHILD);
-
- item = selector.getItem(2);
- checkSimpleSelector(item, "Q", false, 0, 0, 0, 0);
- }
-
- public void testSelector28() {
- ICSSSelectorList list = createSelectorList("P > A:link, A.external:visited");
- checkSelectorList(list, "P > A:link, A.external:visited", 2, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "P > A:link", 3, 102, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "P", false, 0, 0, 0, 0);
-
- item = selector.getItem(1);
- checkSelectorCombinator(item, ">", ICSSSelectorCombinator.CHILD);
-
- item = selector.getItem(2);
- checkSimpleSelector(item, "A", false, 0, 0, 0, 1);
- checkSimpleSelectorPseudoNames(item, new String[]{"link"});
-
- selector = list.getSelector(1);
- checkSelector(selector, "A.external:visited", 1, 201, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "A", false, 0, 1, 0, 1);
- checkSimpleSelectorClasses(item, new String[]{"external"});
- checkSimpleSelectorPseudoNames(item, new String[]{"visited"});
- }
-
- public void testSelector29() {
- ICSSSelectorList list = createSelectorList("P#hoge98 + *:hover > A:link, A.external:visited");
- checkSelectorList(list, "P#hoge98 + *:hover > A:link, A.external:visited", 2, 0);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "P#hoge98 + *:hover > A:link", 5, 10202, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "P", false, 0, 0, 1, 0);
- checkSimpleSelectorIDs(item, new String[]{"hoge98"});
-
- item = selector.getItem(1);
- checkSelectorCombinator(item, "+", ICSSSelectorCombinator.ADJACENT);
-
- item = selector.getItem(2);
- checkSimpleSelector(item, "*", true, 0, 0, 0, 1);
- checkSimpleSelectorPseudoNames(item, new String[]{"hover"});
-
- item = selector.getItem(3);
- checkSelectorCombinator(item, ">", ICSSSelectorCombinator.CHILD);
-
- item = selector.getItem(4);
- checkSimpleSelector(item, "A", false, 0, 0, 0, 1);
- checkSimpleSelectorPseudoNames(item, new String[]{"link"});
-
- selector = list.getSelector(1);
- checkSelector(selector, "A.external:visited", 1, 201, 0);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "A", false, 0, 1, 0, 1);
- checkSimpleSelectorClasses(item, new String[]{"external"});
- checkSimpleSelectorPseudoNames(item, new String[]{"visited"});
- }
-
- public void testSelector30() {
- ICSSSelectorList list = createSelectorList("H1.123");
- checkSelectorList(list, "H1.123", 1, 1);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "H1.123", 1, 101, 1);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "H1", false, 0, 1, 0, 0);
- checkSimpleSelectorClasses(item, new String[]{"123"});
- }
-
- public void testSelector31() {
- ICSSSelectorList list = createSelectorList("P.123.456");
- checkSelectorList(list, "P.123.456", 1, 2);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "P.123.456", 1, 201, 2);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "P", false, 0, 2, 0, 0);
- checkSimpleSelectorClasses(item, new String[]{"123", "456"});
- }
-
- public void testSelector32() {
- ICSSSelectorList list = createSelectorList("*.123");
- checkSelectorList(list, "*.123", 1, 1);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "*.123", 1, 100, 1);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "*", true, 0, 1, 0, 0);
- checkSimpleSelectorClasses(item, new String[]{"123"});
- }
-
- public void testSelector33() {
- ICSSSelectorList list = createSelectorList(".123");
- checkSelectorList(list, ".123", 1, 1);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, ".123", 1, 100, 1);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "", true, 0, 1, 0, 0);
- checkSimpleSelectorClasses(item, new String[]{"123"});
- }
-
- public void testSelector34() {
- ICSSSelectorList list = createSelectorList("H1.1x3");
- checkSelectorList(list, "H1.1x3", 1, 1);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "H1.1x3", 1, 101, 1);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "H1", false, 0, 1, 0, 0);
- checkSimpleSelectorClasses(item, new String[]{"1x3"});
- }
-
- public void testSelector35() {
- ICSSSelectorList list = createSelectorList("H2.123#46");
- checkSelectorList(list, "H2.123#46", 1, 1);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "H2.123#46", 1, 10101, 1);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "H2", false, 0, 1, 1, 0);
- checkSimpleSelectorClasses(item, new String[]{"123"});
- checkSimpleSelectorIDs(item, new String[]{"46"});
- }
-
- public void testSelector36() {
- ICSSSelectorList list = createSelectorList("H3.1x3#4t2");
- checkSelectorList(list, "H3.1x3#4t2", 1, 1);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "H3.1x3#4t2", 1, 10101, 1);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "H3", false, 0, 1, 1, 0);
- checkSimpleSelectorClasses(item, new String[]{"1x3"});
- checkSimpleSelectorIDs(item, new String[]{"4t2"});
- }
-
- public void testSelector37() {
- ICSSSelectorList list = createSelectorList("*.123");
- checkSelectorList(list, "*.123", 1, 1);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, "*.123", 1, 100, 1);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "*", true, 0, 1, 0, 0);
- checkSimpleSelectorClasses(item, new String[]{"123"});
- }
-
- public void testSelector38() {
- ICSSSelectorList list = createSelectorList(".123");
- checkSelectorList(list, ".123", 1, 1);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, ".123", 1, 100, 1);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "", true, 0, 1, 0, 0);
- checkSimpleSelectorClasses(item, new String[]{"123"});
- }
-
- public void testSelector39() {
- ICSSSelectorList list = createSelectorList(".123f567");
- checkSelectorList(list, ".123f567", 1, 1);
-
- ICSSSelector selector;
- ICSSSelectorItem item;
-
- selector = list.getSelector(0);
- checkSelector(selector, ".123f567", 1, 100, 1);
-
- item = selector.getItem(0);
- checkSimpleSelector(item, "", true, 0, 1, 0, 0);
- checkSimpleSelectorClasses(item, new String[]{"123f567"});
- }
-
-
- private void checkSelectorList(ICSSSelectorList list, String formattedSource, int nSelectors, int nErrors) {
- assertEquals(formattedSource, list.getString());
- assertEquals(nSelectors, list.getLength());
- assertEquals(nErrors, list.getErrorCount());
- }
-
- private void checkSelector(ICSSSelector selector, String formattedSource, int items, int specificity, int nErrors) {
- assertEquals(formattedSource, selector.getString());
- assertEquals(items, selector.getLength());
- assertEquals(specificity, selector.getSpecificity());
- assertEquals(nErrors, selector.getErrorCount());
- }
-
- private void checkSimpleSelector(ICSSSelectorItem selector, String formattedSource, boolean isUniversal, int nAttributes, int nClasses, int nIds, int nPseudoNames) {
- assertTrue(selector instanceof ICSSSimpleSelector);
- assertEquals(formattedSource, ((ICSSSimpleSelector) selector).getName());
- assertEquals(isUniversal, ((ICSSSimpleSelector) selector).isUniversal());
- assertEquals(nAttributes, ((ICSSSimpleSelector) selector).getNumOfAttributes());
- assertEquals(nClasses, ((ICSSSimpleSelector) selector).getNumOfClasses());
- assertEquals(nIds, ((ICSSSimpleSelector) selector).getNumOfIDs());
- assertEquals(nPseudoNames, ((ICSSSimpleSelector) selector).getNumOfPseudoNames());
- }
-
- private void checkSimpleSelectorAttributes(ICSSSelectorItem selector, String[] items) {
- int nItems = ((ICSSSimpleSelector) selector).getNumOfAttributes();
- assertEquals(items.length, nItems);
- for (int i = 0; i < nItems; i++) {
- assertEquals(items[i], ((ICSSSimpleSelector) selector).getAttribute(i));
- }
- }
-
- private void checkSimpleSelectorClasses(ICSSSelectorItem selector, String[] items) {
- int nItems = ((ICSSSimpleSelector) selector).getNumOfClasses();
- assertEquals(items.length, nItems);
- for (int i = 0; i < nItems; i++) {
- assertEquals(items[i], ((ICSSSimpleSelector) selector).getClass(i));
- }
- }
-
- private void checkSimpleSelectorIDs(ICSSSelectorItem selector, String[] items) {
- int nItems = ((ICSSSimpleSelector) selector).getNumOfIDs();
- assertEquals(items.length, nItems);
- for (int i = 0; i < nItems; i++) {
- assertEquals(items[i], ((ICSSSimpleSelector) selector).getID(i));
- }
- }
-
- private void checkSimpleSelectorPseudoNames(ICSSSelectorItem selector, String[] items) {
- int nItems = ((ICSSSimpleSelector) selector).getNumOfPseudoNames();
- assertEquals(items.length, nItems);
- for (int i = 0; i < nItems; i++) {
- assertEquals(items[i], ((ICSSSimpleSelector) selector).getPseudoName(i));
- }
- }
-
- private void checkSelectorCombinator(ICSSSelectorItem combinator, String formattedSource, int combinatorType) {
- assertTrue(combinator instanceof ICSSSelectorCombinator);
- assertEquals(formattedSource, ((ICSSSelectorCombinator) combinator).getString());
- assertEquals(combinatorType, ((ICSSSelectorCombinator) combinator).getCombinatorType());
- }
-
- private ICSSSelectorList createSelectorList(String str) {
- return new CSSSelectorListImpl(str);
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/source/CSSSourceParserTest.java b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/source/CSSSourceParserTest.java
deleted file mode 100644
index 01723b9..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/source/CSSSourceParserTest.java
+++ /dev/null
@@ -1,217 +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.css.core.tests.source;
-
-import java.io.IOException;
-import java.util.Iterator;
-
-import junit.framework.TestCase;
-
-import org.eclipse.wst.css.core.document.ICSSModel;
-import org.eclipse.wst.css.core.tests.util.FileUtil;
-import org.eclipse.wst.sse.core.text.IStructuredDocument;
-import org.eclipse.wst.sse.core.text.IStructuredDocumentRegion;
-import org.eclipse.wst.sse.core.text.ITextRegion;
-import org.eclipse.wst.sse.core.text.ITextRegionList;
-
-/**
- *
- */
-public class CSSSourceParserTest extends TestCase {
- public void testSourceOpen1() throws IOException {
- sourceParserTest("sample01.css", MODE_OPEN); //$NON-NLS-1$
- }
-
- public void testSourceOpen2() throws IOException {
- sourceParserTest("sample02.css", MODE_OPEN); //$NON-NLS-1$
- }
-
- public void testSourceOpen3() throws IOException {
- sourceParserTest("sample03.css", MODE_OPEN); //$NON-NLS-1$
- }
-
- public void testSourceOpen4() throws IOException {
- sourceParserTest("sample04.css", MODE_OPEN); //$NON-NLS-1$
- }
-
- public void testSourceOpen5() throws IOException {
- sourceParserTest("sample05.css", MODE_OPEN); //$NON-NLS-1$
- }
-
- public void testSourceOpen6() throws IOException {
- sourceParserTest("sample06.css", MODE_OPEN); //$NON-NLS-1$
- }
-
- public void testSourceOpen7() throws IOException {
- sourceParserTest("sample07.css", MODE_OPEN); //$NON-NLS-1$
- }
-
- public void testSourceAppend1() throws IOException {
- sourceParserTest("sample01.css", MODE_APPEND); //$NON-NLS-1$
- }
-
- public void testSourceAppend2() throws IOException {
- sourceParserTest("sample02.css", MODE_APPEND); //$NON-NLS-1$
- }
-
- public void testSourceAppend3() throws IOException {
- sourceParserTest("sample03.css", MODE_APPEND); //$NON-NLS-1$
- }
-
- public void testSourceAppend4() throws IOException {
- sourceParserTest("sample04.css", MODE_APPEND); //$NON-NLS-1$
- }
-
- public void testSourceAppend5() throws IOException {
- sourceParserTest("sample05.css", MODE_APPEND); //$NON-NLS-1$
- }
-
- public void testSourceAppend6() throws IOException {
- sourceParserTest("sample06.css", MODE_APPEND); //$NON-NLS-1$
- }
-
- public void testSourceAppend7() throws IOException {
- sourceParserTest("sample07.css", MODE_APPEND); //$NON-NLS-1$
- }
-
- public void testSourceInsert1() throws IOException {
- sourceParserTest("sample01.css", MODE_INSERT); //$NON-NLS-1$
- }
-
- public void testSourceInsert2() throws IOException {
- sourceParserTest("sample02.css", MODE_INSERT); //$NON-NLS-1$
- }
-
- public void testSourceInsert3() throws IOException {
- sourceParserTest("sample03.css", MODE_INSERT); //$NON-NLS-1$
- }
-
- public void testSourceInsert4() throws IOException {
- sourceParserTest("sample04.css", MODE_INSERT); //$NON-NLS-1$
- }
-
- public void testSourceInsert5() throws IOException {
- sourceParserTest("sample05.css", MODE_INSERT); //$NON-NLS-1$
- }
-
- public void testSourceInsert6() throws IOException {
- sourceParserTest("sample06.css", MODE_INSERT); //$NON-NLS-1$
- }
-
- public void testSourceInsert7() throws IOException {
- sourceParserTest("sample07.css", MODE_INSERT); //$NON-NLS-1$
- }
-
- private void sourceParserTest(String filename, String mode) throws IOException {
- ICSSModel model = null;
- if (mode.equals(MODE_OPEN)) {
- model = readModelOpen(filename);
- }
- else if (mode.equals(MODE_APPEND)) {
- model = readModelAppend(filename);
- }
- else if (mode.equals(MODE_INSERT)) {
- model = readModelInsert(filename);
- }
- String result = dumpRegions(model.getStructuredDocument());
- compareResult(result, "CSSSourceParserTest-" + filename); //$NON-NLS-1$
- closeModel(model);
- }
-
- private ICSSModel readModelOpen(String filename) throws IOException {
- String source = FileUtil.createString(FILES_DIR, filename);
- ICSSModel model = FileUtil.createModel();
- IStructuredDocument document = model.getStructuredDocument();
- document.replaceText(null, 0, 0, source);
-
- return model;
- }
-
- private ICSSModel readModelAppend(String filename) throws IOException {
- String source = FileUtil.createString(FILES_DIR, filename);
- ICSSModel model = FileUtil.createModel();
- IStructuredDocument document = model.getStructuredDocument();
- for (int i = 0; i < source.length(); i++) {
- document.replaceText(null, i, 0, source.substring(i, i + 1));
- }
-
- return model;
- }
-
- private ICSSModel readModelInsert(String filename) throws IOException {
- String source = FileUtil.createString(FILES_DIR, filename);
- ICSSModel model = FileUtil.createModel();
- IStructuredDocument document = model.getStructuredDocument();
- for (int i = 0; i < source.length(); i++) {
- int textIndex = source.length() - i - 1;
- document.replaceText(null, 0, 0, source.substring(textIndex, textIndex + 1));
- }
-
- return model;
- }
-
- private void closeModel(ICSSModel model) {
- model.releaseFromEdit();
- }
-
- private String dumpRegions(IStructuredDocument document) {
- StringBuffer buf = new StringBuffer();
- buf.append(dumpRegions(document.getFirstStructuredDocumentRegion()));
- return buf.toString();
- }
-
- private String dumpRegions(IStructuredDocumentRegion region) {
- StringBuffer buf = new StringBuffer();
- do {
- buf.append(dumpOneRegion(region));
- region = region.getNext();
- }
- while (region != null);
-
- buf.append(FileUtil.commonEOL + "-------" + FileUtil.commonEOL); //$NON-NLS-1$
-
- return buf.toString();
- }
-
- private String dumpOneRegion(IStructuredDocumentRegion documentRegion) {
- StringBuffer buf = new StringBuffer();
- buf.append(documentRegion.toString());
- buf.append(FileUtil.commonEOL + " "); //$NON-NLS-1$
-
- ITextRegionList regionList = documentRegion.getRegions();
- Iterator i = regionList.iterator();
- while (i.hasNext()) {
- ITextRegion textRegion = (ITextRegion) i.next();
- buf.append(textRegion.toString());
- buf.append(", "); //$NON-NLS-1$
- }
- buf.append(FileUtil.commonEOL); //$NON-NLS-1$
- return buf.toString();
- }
-
- private boolean fDump = false;
-
- private void compareResult(String actual, String filename) throws IOException {
- if (fDump) {
- FileUtil.dumpString(actual, RESULTS_DIR, filename);
- }
- else {
- String result = FileUtil.createString(RESULTS_DIR, filename);
- assertEquals(result, actual);
- }
- }
-
- private static final String FILES_DIR = "src/org/eclipse/wst/css/core/tests/testfiles"; //$NON-NLS-1$
- private static final String RESULTS_DIR = "src/org/eclipse/wst/css/core/tests/testfiles/results"; //$NON-NLS-1$
- private static final String MODE_OPEN = "MODE_OPEN"; //$NON-NLS-1$
- private static final String MODE_APPEND = "MODE_APPEND"; //$NON-NLS-1$
- private static final String MODE_INSERT = "MODE_INSERT"; //$NON-NLS-1$
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/source/CSSTextParserTest.java b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/source/CSSTextParserTest.java
deleted file mode 100644
index 3550b80..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/source/CSSTextParserTest.java
+++ /dev/null
@@ -1,105 +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.css.core.tests.source;
-
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import java.util.Iterator;
-import java.util.List;
-
-import junit.framework.TestCase;
-
-import org.eclipse.wst.css.core.parser.CSSTextParser;
-import org.eclipse.wst.css.core.parser.CSSTextToken;
-import org.eclipse.wst.css.core.tests.util.FileUtil;
-
-
-public class CSSTextParserTest extends TestCase {
- public void testText1() throws IOException {
- textParserTest("sample01.css"); //$NON-NLS-1$
- }
-
- public void testText2() throws IOException {
- textParserTest("sample02.css"); //$NON-NLS-1$
- }
-
- public void testText3() throws IOException {
- textParserTest("sample03.css"); //$NON-NLS-1$
- }
-
- public void testText4() throws IOException {
- textParserTest("sample04.css"); //$NON-NLS-1$
- }
-
- public void testText5() throws IOException {
- textParserTest("sample05.css"); //$NON-NLS-1$
- }
-
- public void testText6() throws IOException {
- textParserTest("sample06.css"); //$NON-NLS-1$
- }
-
- public void testText7() throws IOException {
- textParserTest("sample07.css"); //$NON-NLS-1$
- }
-
- private void textParserTest(String filename) throws IOException {
- String source = createString(filename); //$NON-NLS-1$
- CSSTextParser parser = new CSSTextParser(CSSTextParser.MODE_STYLESHEET, source);
- String result = dumpRegions(parser.getTokenList());
- compareResult(result, "CSSTextParserTest-" + filename); //$NON-NLS-1$
- }
-
- private String createString(String filename) throws FileNotFoundException, IOException {
- return FileUtil.createString(FILES_DIR, filename);
- }
-
- private String dumpRegions(List tokens) {
- StringBuffer buf = new StringBuffer();
- Iterator i = tokens.iterator();
- while (i.hasNext()) {
- buf.append(dumpOneRegion((CSSTextToken) i.next()));
- }
-
- buf.append(FileUtil.commonEOL + "-------" + FileUtil.commonEOL); //$NON-NLS-1$
-
- return buf.toString();
- }
-
- private String dumpOneRegion(CSSTextToken token) {
- StringBuffer buf = new StringBuffer();
-
- buf.append("["); //$NON-NLS-1$
- buf.append(token.image);
- buf.append("] "); //$NON-NLS-1$
- buf.append(token.kind);
- buf.append(" - "); //$NON-NLS-1$
- buf.append(token.start);
- buf.append(", "); //$NON-NLS-1$
- buf.append(token.length);
-
- buf.append(FileUtil.commonEOL); //$NON-NLS-1$
- return buf.toString();
- }
-
- private boolean fDump = false;
-
- private void compareResult(String actual, String filename) throws IOException {
- if (fDump) {
- FileUtil.dumpString(actual, RESULTS_DIR, filename);
- }
- else {
- String result = FileUtil.createString(RESULTS_DIR, filename);
- assertEquals(result, actual);
- }
- }
-
- private static final String FILES_DIR = "src/org/eclipse/wst/css/core/tests/testfiles"; //$NON-NLS-1$
- private static final String RESULTS_DIR = "src/org/eclipse/wst/css/core/tests/testfiles/results";
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/source/CSSUrlTest.java b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/source/CSSUrlTest.java
deleted file mode 100644
index be57026..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/source/CSSUrlTest.java
+++ /dev/null
@@ -1,261 +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.css.core.tests.source;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import junit.framework.TestCase;
-
-import org.eclipse.wst.css.core.document.ICSSModel;
-import org.eclipse.wst.css.core.internal.parser.CSSSourceParser;
-import org.eclipse.wst.css.core.parser.CSSRegionContexts;
-import org.eclipse.wst.css.core.tests.util.FileUtil;
-import org.eclipse.wst.css.core.util.CSSUtil;
-import org.eclipse.wst.sse.core.text.IStructuredDocument;
-import org.eclipse.wst.sse.core.text.IStructuredDocumentRegion;
-import org.eclipse.wst.sse.core.text.ITextRegion;
-import org.eclipse.wst.sse.core.text.ITextRegionList;
-
-public class CSSUrlTest extends TestCase {
-
- /**
- * Declaration: without quotes
- */
- public void testDeclaration1() {
- ICSSModel model = FileUtil.createModel();
- IStructuredDocument document = model.getStructuredDocument();
- ((CSSSourceParser) document.getParser()).setParserMode(CSSSourceParser.MODE_DECLARATION_VALUE);
- document.set("background-image: url(white space.gif);"); //$NON-NLS-1$
- UrlInfo[] urls = pickupUrl(document);
-
- assertEquals(1, urls.length);
- assertEquals(CSSRegionContexts.CSS_DECLARATION_VALUE_URI, urls[0].getType());
- assertEquals("white space.gif", urls[0].getUrl()); //$NON-NLS-1$
- }
-
- /**
- * Declaration: without quotes, with surrounded space
- */
- public void testDeclaration2() {
- ICSSModel model = FileUtil.createModel();
- IStructuredDocument document = model.getStructuredDocument();
- ((CSSSourceParser) document.getParser()).setParserMode(CSSSourceParser.MODE_DECLARATION_VALUE);
- document.set("background-image: url( white space.gif );"); //$NON-NLS-1$
- UrlInfo[] urls = pickupUrl(document);
-
- assertEquals(1, urls.length);
- assertEquals(CSSRegionContexts.CSS_DECLARATION_VALUE_URI, urls[0].getType());
- assertEquals("white space.gif", urls[0].getUrl()); //$NON-NLS-1$
- }
-
- /**
- * Declaration: with single quote
- */
- public void testDeclaration3() {
- ICSSModel model = FileUtil.createModel();
- IStructuredDocument document = model.getStructuredDocument();
- ((CSSSourceParser) document.getParser()).setParserMode(CSSSourceParser.MODE_DECLARATION_VALUE);
- document.set("background-image: url(\'white space.gif\');"); //$NON-NLS-1$
- UrlInfo[] urls = pickupUrl(document);
-
- assertEquals(1, urls.length);
- assertEquals(CSSRegionContexts.CSS_DECLARATION_VALUE_URI, urls[0].getType());
- assertEquals("white space.gif", urls[0].getUrl()); //$NON-NLS-1$
- }
-
- /**
- * Declaration: with double quote
- */
- public void testDeclaration4() {
- ICSSModel model = FileUtil.createModel();
- IStructuredDocument document = model.getStructuredDocument();
- ((CSSSourceParser) document.getParser()).setParserMode(CSSSourceParser.MODE_DECLARATION_VALUE);
- document.set("background-image: url(\"white space.gif\");"); //$NON-NLS-1$
- UrlInfo[] urls = pickupUrl(document);
-
- assertEquals(1, urls.length);
- assertEquals(CSSRegionContexts.CSS_DECLARATION_VALUE_URI, urls[0].getType());
- assertEquals("white space.gif", urls[0].getUrl()); //$NON-NLS-1$
- }
-
- /**
- * Declaration: two urls
- */
- public void testDeclaration5() {
- ICSSModel model = FileUtil.createModel();
- IStructuredDocument document = model.getStructuredDocument();
- ((CSSSourceParser) document.getParser()).setParserMode(CSSSourceParser.MODE_DECLARATION_VALUE);
- document.set("background-image: url(white space.gif); list-style-image: url(style image.gif);"); //$NON-NLS-1$
- UrlInfo[] urls = pickupUrl(document);
-
- assertEquals(2, urls.length);
- assertEquals(CSSRegionContexts.CSS_DECLARATION_VALUE_URI, urls[0].getType());
- assertEquals("white space.gif", urls[0].getUrl()); //$NON-NLS-1$
- assertEquals(CSSRegionContexts.CSS_DECLARATION_VALUE_URI, urls[1].getType());
- assertEquals("style image.gif", urls[1].getUrl()); //$NON-NLS-1$
- }
-
- /**
- * Style rule: two urls
- */
- public void testStyleRule1() {
- ICSSModel model = FileUtil.createModel();
- IStructuredDocument document = model.getStructuredDocument();
- document.set("LI { background-image: url(white space.gif);\r\nlist-style-image: url(style image.gif); }"); //$NON-NLS-1$
- UrlInfo[] urls = pickupUrl(document);
-
- assertEquals(2, urls.length);
- assertEquals(CSSRegionContexts.CSS_DECLARATION_VALUE_URI, urls[0].getType());
- assertEquals("white space.gif", urls[0].getUrl()); //$NON-NLS-1$
- assertEquals(CSSRegionContexts.CSS_DECLARATION_VALUE_URI, urls[1].getType());
- assertEquals("style image.gif", urls[1].getUrl()); //$NON-NLS-1$
- }
-
- /**
- * Import rule and style rule: without quotes
- */
- public void testSomeRules1() {
- ICSSModel model = FileUtil.createModel();
- IStructuredDocument document = model.getStructuredDocument();
- document.set("@import url(white space.css);LI { background-image: url(white space.gif);list-style-image: url(style image.gif); }"); //$NON-NLS-1$
- UrlInfo[] urls = pickupUrl(document);
-
- assertEquals(3, urls.length);
- assertEquals(CSSRegionContexts.CSS_URI, urls[0].getType());
- assertEquals("white space.css", urls[0].getUrl()); //$NON-NLS-1$
- assertEquals(CSSRegionContexts.CSS_DECLARATION_VALUE_URI, urls[1].getType());
- assertEquals("white space.gif", urls[1].getUrl()); //$NON-NLS-1$
- assertEquals(CSSRegionContexts.CSS_DECLARATION_VALUE_URI, urls[2].getType());
- assertEquals("style image.gif", urls[2].getUrl()); //$NON-NLS-1$
- }
-
- /**
- * Declaration: Two urls but parenthesis are missed, so concatenated url
- * is identified. By adding parenthesis, urls are corrected.
- */
- public void testFixError1() {
- ICSSModel model = FileUtil.createModel();
- IStructuredDocument document = model.getStructuredDocument();
- ((CSSSourceParser) document.getParser()).setParserMode(CSSSourceParser.MODE_DECLARATION_VALUE);
- // ____________01234567890123456789012345678901234567890123456789012345678901234567890123456789
- document.set("background-image: url(white space.gif; list-style-image: urlstyle image.gif);"); //$NON-NLS-1$
- UrlInfo[] urls = pickupUrl(document);
- assertEquals(1, urls.length);
- assertEquals(CSSRegionContexts.CSS_DECLARATION_VALUE_URI, urls[0].getType());
- assertEquals("white space.gif; list-style-image: urlstyle image.gif", urls[0].getUrl()); //$NON-NLS-1$
-
- // correct first url
- document.replaceText(null, 37, 0, ")"); //$NON-NLS-1$
- urls = pickupUrl(document);
- assertEquals(1, urls.length);
- assertEquals(CSSRegionContexts.CSS_DECLARATION_VALUE_URI, urls[0].getType());
- assertEquals("white space.gif", urls[0].getUrl()); //$NON-NLS-1$
-
- // correct second url
- document.replaceText(null, 61, 0, "("); //$NON-NLS-1$
- urls = pickupUrl(document);
- assertEquals(2, urls.length);
- assertEquals(CSSRegionContexts.CSS_DECLARATION_VALUE_URI, urls[0].getType());
- assertEquals("white space.gif", urls[0].getUrl()); //$NON-NLS-1$
- assertEquals(CSSRegionContexts.CSS_DECLARATION_VALUE_URI, urls[1].getType());
- assertEquals("style image.gif", urls[1].getUrl()); //$NON-NLS-1$
- }
-
- /**
- * Import rule and style rule: Two urls but parenthesis are missed, so
- * concatenated url is identified. By adding parenthesis, urls are
- * corrected.
- */
- public void testFixError2() {
- ICSSModel model = FileUtil.createModel();
- IStructuredDocument document = model.getStructuredDocument();
- // ____________01234567890123456789012345678901234567890123456789012345678901234567890123456789
- document.set("@import url(white space.css;LI { background-image: urlwhite space.gif); }"); //$NON-NLS-1$
- UrlInfo[] urls = pickupUrl(document);
- assertEquals(1, urls.length);
- assertEquals(CSSRegionContexts.CSS_URI, urls[0].getType());
- assertEquals("white space.css;LI { background-image: urlwhite space.gif", urls[0].getUrl()); //$NON-NLS-1$
-
- // correct first url
- document.replaceText(null, 27, 0, ")"); //$NON-NLS-1$
- urls = pickupUrl(document);
- assertEquals(1, urls.length);
- assertEquals(CSSRegionContexts.CSS_URI, urls[0].getType());
- assertEquals("white space.css", urls[0].getUrl()); //$NON-NLS-1$
-
- // correct second url
- document.replaceText(null, 55, 0, "("); //$NON-NLS-1$
- urls = pickupUrl(document);
- assertEquals(2, urls.length);
- assertEquals(CSSRegionContexts.CSS_URI, urls[0].getType());
- assertEquals("white space.css", urls[0].getUrl()); //$NON-NLS-1$
- assertEquals(CSSRegionContexts.CSS_DECLARATION_VALUE_URI, urls[1].getType());
- assertEquals("white space.gif", urls[1].getUrl()); //$NON-NLS-1$
- }
-
- /**
- * Import rule: Url has only one quote, so it is not identified as url. By
- * removing quote, url is corrected.
- */
- public void testFixError3() {
- ICSSModel model = FileUtil.createModel();
- IStructuredDocument document = model.getStructuredDocument();
- // ____________0123456789012345678901234567890
- document.set("@import url(white space.css\");"); //$NON-NLS-1$
- UrlInfo[] urls = pickupUrl(document);
- assertEquals(0, urls.length);
-
- // correct url
- document.replaceText(null, 27, 1, ""); //$NON-NLS-1$
- urls = pickupUrl(document);
- assertEquals(1, urls.length);
- assertEquals(CSSRegionContexts.CSS_URI, urls[0].getType());
- assertEquals("white space.css", urls[0].getUrl()); //$NON-NLS-1$
- }
-
-
- private UrlInfo[] pickupUrl(IStructuredDocument document) {
- List urls = new ArrayList();
- IStructuredDocumentRegion documentRegion = document.getFirstStructuredDocumentRegion();
- while (documentRegion != null) {
- ITextRegionList regionList = documentRegion.getRegions();
- Iterator i = regionList.iterator();
- while (i.hasNext()) {
- ITextRegion textRegion = (ITextRegion) i.next();
- String type = textRegion.getType();
- if (type.equals(CSSRegionContexts.CSS_URI) || type.equals(CSSRegionContexts.CSS_DECLARATION_VALUE_URI)) {
- urls.add(new UrlInfo(type, documentRegion.getFullText(textRegion)));
- }
- }
- documentRegion = documentRegion.getNext();
- }
- return (UrlInfo[]) urls.toArray(new UrlInfo[urls.size()]);
- }
-
- private class UrlInfo {
- UrlInfo(String type, String url) {
- fType = type;
- fUrl = CSSUtil.extractUriContents(url);
- }
-
- String getType() {
- return fType;
- }
-
- String getUrl() {
- return fUrl;
- }
-
- private String fType;
- private String fUrl;
-
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/BUG73990_selector_unformatted.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/BUG73990_selector_unformatted.css
deleted file mode 100644
index ed52c93..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/BUG73990_selector_unformatted.css
+++ /dev/null
@@ -1,35 +0,0 @@
-/* Class as selector */
-H1.pastoral { color: #00FF00 }
-
-/* ID as selector */
-#z98y { letter-spacing: 0.3em }
-H1#z98y { letter-spacing: 0.5em }
-
-/* Contextual selectors */
-DIV P { font: small sans-serif }
-.reddish H1 { color: red }
-#x78y CODE { background: blue }
-DIV.sidenote H1 { font-size: large }
-
-/* Anchor pseudo-classes */
-A:link { color: red } /* unvisited link */
-A:visited { color: blue } /* visited links */
-A:active { color: lime } /* active links */
-
-/* Pseudo-class combined with normal class */
-A.external:visited { color: blue }
-
-/* 'first-line' pseudo-element */
-P:first-line { font-variant: small-caps }
-
-/* 'first-letter' pseudo-element */
-P:first-letter { font-size: 200%; float: left }
-
-/* Pseudo-elements in selectors */
-BODY P:first-letter { color: purple }
-P.initial:first-letter { color: red }
-
-/* Multiple pseudo-elements */
-P { color: red; font-size: 12pt }
-P:first-letter { color: green; font-size: 200% }
-P:first-line { color: blue }
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/CSSFontFaceRuleTest.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/CSSFontFaceRuleTest.css
deleted file mode 100644
index 09bd076..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/CSSFontFaceRuleTest.css
+++ /dev/null
@@ -1,29 +0,0 @@
-@font-face {
- font-family: "Swiss 721";
- src: url("swiss721blk.pfr"); /* Swiss 721 black */
- font-style: normal, italic;
- font-weight: 800,900; /* note the interesting problem that
- the 900 weight italic doesnft exist */
-}
-
-@font-face {
- src: local("Palatino"),
- local("Times New Roman"),
- local("New York"),
- local("Utopia"),
- url("http://somewhere/free/font");
- font-family: serif;
- font-weight: 100, 200, 300, 400, 500;
- font-style: normal;
- font-variant: normal;
- font-size: all
-}
-
-@font-face {
- src: local("Alabama Italic"),
- url(http://www.fonts.org/A/alabama-italic) format("truetype");
- panose-1: 2 4 5 2 5 4 5 9 3 3;
- font-family: Alabama, serif;
- font-weight: 300, 400, 500;
- font-style: italic, oblique;
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/CSSPageRuleTest.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/CSSPageRuleTest.css
deleted file mode 100644
index b977f2c..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/CSSPageRuleTest.css
+++ /dev/null
@@ -1,17 +0,0 @@
-@page {size: 8.5in 11in;margin: 2cm}
-
-@page {
- size: auto; /* auto is the initial value */
- margin: 10%;
-}
-
-@page :left {
- margin-left: 4cm;
- margin-right: 3cm;
-}
-@page :right {
- margin-left: 3cm;
- margin-right: 4cm;
-}
-
-@page narrow {size: 9cm 18cm}@page rotated {size: landscape}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/CSSStyleRuleTest.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/CSSStyleRuleTest.css
deleted file mode 100644
index 8e4a89a..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/CSSStyleRuleTest.css
+++ /dev/null
@@ -1,42 +0,0 @@
-/* primitive values */
-NUMBERS {
- NUMBER: 123.456;
- PERCENTAGE: 123.456%;
- EMS: 123.456em;
- EXS: 123.456ex;
- PX: 123.456px;
- CM: 123.456cm;
- MM: 123.456mm;
- IN: 123.456in;
- PT: 123.456pt;
- PC: 123.456pc;
- DEG: -123.456deg;
- RAD: 123.456rad;
- GRAD: 123.456grad;
- MS: 123.456ms;
- S: 123.456s;
- HZ: 123.456Hz;
- KHZ: 123.456kHz;
- DIMENSION: -123.456zzz;
- INTEGER: 123;
-}
-
-STRINGS {
- STRING: "string";
- URI: URL("http://www.ibm.com/");
- IDENT: left;
- HASH: #abcdef;
- URANGE: U+20A7;
- SLASH: /;
- COMMA: ,;
- INHERIT_PRIMITIVE: inherit;
- ATTR: attr(KEY);
- FORMAT: format("truedoc");
- LOCAL: local("Excelsior Roman");
-}
-
-FUNCTIONS {
- COUNTER: counter(par-num, upper-roman);
- RECT: rect(12, 34, 56, 78);
- RGBCOLOR: rgb(255, 128, 0);
-}
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/BUG73990_selector_formatted.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/BUG73990_selector_formatted.css
deleted file mode 100644
index 6da6ff7..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/BUG73990_selector_formatted.css
+++ /dev/null
@@ -1,79 +0,0 @@
-/* Class as selector */
-H1.pastoral {
- color: #00FF00
-}
-
-/* ID as selector */
-#z98y {
- letter-spacing: 0.3em
-}
-
-H1#z98y {
- letter-spacing: 0.5em
-}
-
-/* Contextual selectors */
-DIV P {
- font: small sans-serif
-}
-
-.reddish H1 {
- color: red
-}
-
-#x78y CODE {
- background: blue
-}
-
-DIV.sidenote H1 {
- font-size: large
-}
-
-/* Anchor pseudo-classes */
-A:link {
- color: red
-} /* unvisited link */
-A:visited {
- color: blue
-} /* visited links */
-A:active {
- color: lime
-} /* active links */ /* Pseudo-class combined with normal class */
-A.external:visited {
- color: blue
-}
-
-/* 'first-line' pseudo-element */
-P:first-line {
- font-variant: small-caps
-}
-
-/* 'first-letter' pseudo-element */
-P:first-letter {
- font-size: 200%;
- float: left
-}
-
-/* Pseudo-elements in selectors */
-BODY P:first-letter {
- color: purple
-}
-
-P.initial:first-letter {
- color: red
-}
-
-/* Multiple pseudo-elements */
-P {
- color: red;
- font-size: 12pt
-}
-
-P:first-letter {
- color: green;
- font-size: 200%
-}
-
-P:first-line {
- color: blue
-}
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSSourceParserTest-sample01.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSSourceParserTest-sample01.css
deleted file mode 100644
index a0debe5..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSSourceParserTest-sample01.css
+++ /dev/null
@@ -1,30 +0,0 @@
-[0, 3] (H1 )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-2/3,
-[3, 9] ({
-
- )
- CSSContextRegion--> LBRACE: 0-1/6,
-[9, 21] (color: white)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_IDENT: 7-12,
-[21, 24] (
- )
- CSSContextRegion--> S: 0-3,
-[24, 25] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[25, 30] (
-
- )
- CSSContextRegion--> S: 0-5,
-[30, 54] (background-color : black)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-16/17, CSSContextRegion--> DECLARATION_SEPARATOR: 17-18/19, CSSContextRegion--> DECLARATION_VALUE_IDENT: 19-24,
-[54, 59] (
-
-)
- CSSContextRegion--> S: 0-5,
-[59, 60] (})
- CSSContextRegion--> RBRACE: 0-1,
-[60, 62] (
-)
- CSSContextRegion--> S: 0-2,
-
--------
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSSourceParserTest-sample02.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSSourceParserTest-sample02.css
deleted file mode 100644
index 736b010..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSSourceParserTest-sample02.css
+++ /dev/null
@@ -1,41 +0,0 @@
-[0, 23] (@import url("hoge.css"))
- CSSContextRegion--> IMPORT: 0-7/8, CSSContextRegion--> URI: 8-23,
-[23, 24] (;)
- CSSContextRegion--> DELIMITER: 0-1,
-[24, 26] (
-)
- CSSContextRegion--> S: 0-2,
-[26, 61] (@import /* comment */ url(hoge.css))
- CSSContextRegion--> IMPORT: 0-7/8, CSSContextRegion--> COMMENT: 8-21/22, CSSContextRegion--> URI: 22-35,
-[61, 62] (;)
- CSSContextRegion--> DELIMITER: 0-1,
-[62, 64] (
-)
- CSSContextRegion--> S: 0-2,
-[64, 96] (@import "hoge.css" /* comment */)
- CSSContextRegion--> IMPORT: 0-7/8, CSSContextRegion--> STRING: 8-18/19, CSSContextRegion--> COMMENT: 19-32,
-[96, 97] (;)
- CSSContextRegion--> DELIMITER: 0-1,
-[97, 99] (
-)
- CSSContextRegion--> S: 0-2,
-[99, 155] (@IMPORT 'hoge.css' ,media1,media2,,media3 media4,media5 )
- CSSContextRegion--> IMPORT: 0-7/8, CSSContextRegion--> STRING: 8-18/19, CSSContextRegion--> UNKNOWN: 19-20, CSSContextRegion--> MEDIUM: 20-26, CSSContextRegion--> MEDIA_SEPARATOR: 26-27, CSSContextRegion--> MEDIUM: 27-33, CSSContextRegion--> MEDIA_SEPARATOR: 33-34, CSSContextRegion--> UNKNOWN: 34-35, CSSContextRegion--> MEDIUM: 35-41/42, CSSContextRegion--> UNKNOWN: 42-48, CSSContextRegion--> MEDIA_SEPARATOR: 48-49, CSSContextRegion--> MEDIUM: 49-55/56,
-[155, 169] (@import media6)
- CSSContextRegion--> IMPORT: 0-7/8, CSSContextRegion--> UNKNOWN: 8-14,
-[169, 170] (;)
- CSSContextRegion--> DELIMITER: 0-1,
-[170, 221] (
-
-<!-- /* hogehoge */
-
--->
-
-/* comment 2 */
-)
- CSSContextRegion--> S: 0-4, CSSContextRegion--> CDO: 4-8/9, CSSContextRegion--> COMMENT: 9-23/27, CSSContextRegion--> CDC: 27-30/34, CSSContextRegion--> COMMENT: 34-49/51,
-[221, 227] (kuso
-)
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-4/6,
-
--------
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSSourceParserTest-sample03.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSSourceParserTest-sample03.css
deleted file mode 100644
index 233e4e6..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSSourceParserTest-sample03.css
+++ /dev/null
@@ -1,102 +0,0 @@
-[0, 29] (@import url("../sample2.css"))
- CSSContextRegion--> IMPORT: 0-7/8, CSSContextRegion--> URI: 8-29,
-[29, 30] (;)
- CSSContextRegion--> DELIMITER: 0-1,
-[30, 57] (
-
-/* Sample Styles */
-
-)
- CSSContextRegion--> S: 0-4, CSSContextRegion--> COMMENT: 4-23/27,
-[57, 62] (BODY )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-4/5,
-[62, 66] ({
- )
- CSSContextRegion--> LBRACE: 0-1/4,
-[66, 79] (color : black)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5/6, CSSContextRegion--> DECLARATION_SEPARATOR: 6-7/8, CSSContextRegion--> DECLARATION_VALUE_IDENT: 8-13,
-[79, 80] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[80, 83] (
- )
- CSSContextRegion--> S: 0-3,
-[83, 120] (background-color : rgb(181, 253, 211))
- CSSContextRegion--> DECLARATION_PROPERTY: 0-16/17, CSSContextRegion--> DECLARATION_SEPARATOR: 17-18/19, CSSContextRegion--> DECLARATION_VALUE_FUNCTION: 19-23, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 23-26, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 26-27/28, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 28-31, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 31-32/33, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 33-36, CSSContextRegion--> DECLARATION_VALUE_PARENTHESIS_CLOSE: 36-37,
-[120, 121] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[121, 124] (
- )
- CSSContextRegion--> S: 0-3,
-[124, 143] (text-align : center)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-10/11, CSSContextRegion--> DECLARATION_SEPARATOR: 11-12/13, CSSContextRegion--> DECLARATION_VALUE_IDENT: 13-19,
-[143, 144] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[144, 147] (
- )
- CSSContextRegion--> S: 0-3,
-[147, 186] (font-family : "Heisei Mincho W3", serif)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-11/12, CSSContextRegion--> DECLARATION_SEPARATOR: 12-13/14, CSSContextRegion--> DECLARATION_VALUE_STRING: 14-32, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 32-33/34, CSSContextRegion--> DECLARATION_VALUE_IDENT: 34-39,
-[186, 188] (
-)
- CSSContextRegion--> S: 0-2,
-[188, 189] (})
- CSSContextRegion--> RBRACE: 0-1,
-[189, 193] (
-
-)
- CSSContextRegion--> S: 0-4,
-[193, 205] (@page :left )
- CSSContextRegion--> PAGE: 0-5/6, CSSContextRegion--> CSS_PAGE_SELECTOR: 6-11/12,
-[205, 207] ({ )
- CSSContextRegion--> LBRACE: 0-1/2,
-[207, 224] (margin-left : 4cm)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-11/12, CSSContextRegion--> DECLARATION_SEPARATOR: 12-13/14, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 14-17,
-[224, 225] ( )
- CSSContextRegion--> S: 0-1,
-[225, 226] (})
- CSSContextRegion--> RBRACE: 0-1,
-[226, 230] (
-
-)
- CSSContextRegion--> S: 0-4,
-[230, 243] (@media aural )
- CSSContextRegion--> MEDIA: 0-6/7, CSSContextRegion--> MEDIUM: 7-12/13,
-[243, 247] ({
- )
- CSSContextRegion--> LBRACE: 0-1/4,
-[247, 255] (P.heidi )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-1, CSSContextRegion--> SELECTOR_CLASS: 1-7/8,
-[255, 260] ({
- )
- CSSContextRegion--> LBRACE: 0-1/5,
-[260, 281] (azimuth : center-left)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-7/8, CSSContextRegion--> DECLARATION_SEPARATOR: 8-9/10, CSSContextRegion--> DECLARATION_VALUE_IDENT: 10-21,
-[281, 282] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[282, 286] (
- )
- CSSContextRegion--> S: 0-4,
-[286, 305] (elevation : 12.3deg)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-9/10, CSSContextRegion--> DECLARATION_SEPARATOR: 10-11/12, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 12-19,
-[305, 306] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[306, 310] (
- )
- CSSContextRegion--> S: 0-4,
-[310, 327] (pause : 30ms 1.6s)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5/6, CSSContextRegion--> DECLARATION_SEPARATOR: 6-7/8, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 8-12/13, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 13-17,
-[327, 330] (
- )
- CSSContextRegion--> S: 0-3,
-[330, 331] (})
- CSSContextRegion--> RBRACE: 0-1,
-[331, 333] (
-)
- CSSContextRegion--> S: 0-2,
-[333, 334] (})
- CSSContextRegion--> RBRACE: 0-1,
-[334, 336] (
-)
- CSSContextRegion--> S: 0-2,
-
--------
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSSourceParserTest-sample04.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSSourceParserTest-sample04.css
deleted file mode 100644
index 4a6e72f..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSSourceParserTest-sample04.css
+++ /dev/null
@@ -1,554 +0,0 @@
-[0, 21] (@charset "ISO-8859-1")
- CSSContextRegion--> CHARSET: 0-8/9, CSSContextRegion--> STRING: 9-21,
-[21, 22] (;)
- CSSContextRegion--> DELIMITER: 0-1,
-[22, 26] (
-
-)
- CSSContextRegion--> S: 0-4,
-[26, 49] (@import url("hoge.css"))
- CSSContextRegion--> IMPORT: 0-7/8, CSSContextRegion--> URI: 8-23,
-[49, 50] (;)
- CSSContextRegion--> DELIMITER: 0-1,
-[50, 52] (
-)
- CSSContextRegion--> S: 0-2,
-[52, 87] (@import /* comment */ url(hoge.css))
- CSSContextRegion--> IMPORT: 0-7/8, CSSContextRegion--> COMMENT: 8-21/22, CSSContextRegion--> URI: 22-35,
-[87, 88] (;)
- CSSContextRegion--> DELIMITER: 0-1,
-[88, 90] (
-)
- CSSContextRegion--> S: 0-2,
-[90, 122] (@import "hoge.css" /* comment */)
- CSSContextRegion--> IMPORT: 0-7/8, CSSContextRegion--> STRING: 8-18/19, CSSContextRegion--> COMMENT: 19-32,
-[122, 123] (;)
- CSSContextRegion--> DELIMITER: 0-1,
-[123, 125] (
-)
- CSSContextRegion--> S: 0-2,
-[125, 166] (@IMPORT 'hoge.css' media1,media2 , media3)
- CSSContextRegion--> IMPORT: 0-7/8, CSSContextRegion--> STRING: 8-18/19, CSSContextRegion--> MEDIUM: 19-25, CSSContextRegion--> MEDIA_SEPARATOR: 25-26, CSSContextRegion--> MEDIUM: 26-32/33, CSSContextRegion--> MEDIA_SEPARATOR: 33-34/35, CSSContextRegion--> MEDIUM: 35-41,
-[166, 167] (;)
- CSSContextRegion--> DELIMITER: 0-1,
-[167, 171] (
-
-)
- CSSContextRegion--> S: 0-4,
-[171, 184] (@media print )
- CSSContextRegion--> MEDIA: 0-6/7, CSSContextRegion--> MEDIUM: 7-12/13,
-[184, 189] ({
-
-)
- CSSContextRegion--> LBRACE: 0-1/5,
-[189, 190] (})
- CSSContextRegion--> RBRACE: 0-1,
-[190, 194] (
-
-)
- CSSContextRegion--> S: 0-4,
-[194, 206] (@page :left )
- CSSContextRegion--> PAGE: 0-5/6, CSSContextRegion--> CSS_PAGE_SELECTOR: 6-11/12,
-[206, 211] ({
-
-)
- CSSContextRegion--> LBRACE: 0-1/5,
-[211, 212] (})
- CSSContextRegion--> RBRACE: 0-1,
-[212, 216] (
-
-)
- CSSContextRegion--> S: 0-4,
-[216, 227] (h1, h2, h3 )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-2, CSSContextRegion--> SELECTOR_SEPARATOR: 2-3/4, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 4-6, CSSContextRegion--> SELECTOR_SEPARATOR: 6-7/8, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 8-10/11,
-[227, 230] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[230, 253] (font-family: sans-serif)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-11, CSSContextRegion--> DECLARATION_SEPARATOR: 11-12/13, CSSContextRegion--> DECLARATION_VALUE_IDENT: 13-23,
-[253, 255] ( )
- CSSContextRegion--> S: 0-2,
-[255, 256] (})
- CSSContextRegion--> RBRACE: 0-1,
-[256, 258] (
-)
- CSSContextRegion--> S: 0-2,
-[258, 264] (h1 em )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-2, CSSContextRegion--> SELECTOR_COMBINATOR: 2-3, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 3-5/6,
-[264, 267] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[267, 278] (color: blue)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_IDENT: 7-11,
-[278, 280] ( )
- CSSContextRegion--> S: 0-2,
-[280, 281] (})
- CSSContextRegion--> RBRACE: 0-1,
-[281, 283] (
-)
- CSSContextRegion--> S: 0-2,
-[283, 297] (div p *[href] )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-3, CSSContextRegion--> SELECTOR_COMBINATOR: 3-4, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 4-5, CSSContextRegion--> SELECTOR_COMBINATOR: 5-6, CSSContextRegion--> SELECTOR_UNIVERSAL: 6-7, CSSContextRegion--> SELECTOR_ATTRIBUTE_START: 7-8, CSSContextRegion--> SELECTOR_ATTRIBUTE_NAME: 8-12, CSSContextRegion--> SELECTOR_ATTRIBUTE_END: 12-13/14,
-[297, 300] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[300, 311] (color: blue)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_IDENT: 7-11,
-[311, 313] ( )
- CSSContextRegion--> S: 0-2,
-[313, 314] (})
- CSSContextRegion--> RBRACE: 0-1,
-[314, 316] (
-)
- CSSContextRegion--> S: 0-2,
-[316, 325] (body > P )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-4/5, CSSContextRegion--> SELECTOR_COMBINATOR: 5-6/7, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 7-8/9,
-[325, 328] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[328, 344] (line-height: 1.3)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-11, CSSContextRegion--> DECLARATION_SEPARATOR: 11-12/13, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 13-16,
-[344, 346] ( )
- CSSContextRegion--> S: 0-2,
-[346, 347] (})
- CSSContextRegion--> RBRACE: 0-1,
-[347, 349] (
-)
- CSSContextRegion--> S: 0-2,
-[349, 361] (div ol>li p )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-3, CSSContextRegion--> SELECTOR_COMBINATOR: 3-4, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 4-6, CSSContextRegion--> SELECTOR_COMBINATOR: 6-7, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 7-9, CSSContextRegion--> SELECTOR_COMBINATOR: 9-10, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 10-11/12,
-[361, 363] ({ )
- CSSContextRegion--> LBRACE: 0-1/2,
-[363, 364] (})
- CSSContextRegion--> RBRACE: 0-1,
-[364, 366] (
-)
- CSSContextRegion--> S: 0-2,
-[366, 375] (math + p )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-4/5, CSSContextRegion--> SELECTOR_COMBINATOR: 5-6/7, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 7-8/9,
-[375, 378] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[378, 392] (text-indent: 0)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-11, CSSContextRegion--> DECLARATION_SEPARATOR: 11-12/13, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 13-14,
-[392, 394] ( )
- CSSContextRegion--> S: 0-2,
-[394, 395] (})
- CSSContextRegion--> RBRACE: 0-1,
-[395, 397] (
-)
- CSSContextRegion--> S: 0-2,
-[397, 412] (h1.opener + h2 )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-2, CSSContextRegion--> SELECTOR_CLASS: 2-9/10, CSSContextRegion--> SELECTOR_COMBINATOR: 10-11/12, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 12-14/15,
-[412, 415] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[415, 431] (margin-top: -5mm)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-10, CSSContextRegion--> DECLARATION_SEPARATOR: 10-11/12, CSSContextRegion--> DECLARATION_VALUE_IDENT: 12-16,
-[431, 433] ( )
- CSSContextRegion--> S: 0-2,
-[433, 434] (})
- CSSContextRegion--> RBRACE: 0-1,
-[434, 436] (
-)
- CSSContextRegion--> S: 0-2,
-[436, 446] (h1[title] )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-2, CSSContextRegion--> SELECTOR_ATTRIBUTE_START: 2-3, CSSContextRegion--> SELECTOR_ATTRIBUTE_NAME: 3-8, CSSContextRegion--> SELECTOR_ATTRIBUTE_END: 8-9/10,
-[446, 449] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[449, 460] (color: blue)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_IDENT: 7-11,
-[460, 461] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[461, 463] ( )
- CSSContextRegion--> S: 0-2,
-[463, 464] (})
- CSSContextRegion--> RBRACE: 0-1,
-[464, 466] (
-)
- CSSContextRegion--> S: 0-2,
-[466, 486] (span[class=example] )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-4, CSSContextRegion--> SELECTOR_ATTRIBUTE_START: 4-5, CSSContextRegion--> SELECTOR_ATTRIBUTE_NAME: 5-10, CSSContextRegion--> SELECTOR_ATTRIBUTE_OPERATOR: 10-11, CSSContextRegion--> SELECTOR_ATTRIBUTE_VALUE: 11-18, CSSContextRegion--> SELECTOR_ATTRIBUTE_END: 18-19/20,
-[486, 489] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[489, 500] (color: blue)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_IDENT: 7-11,
-[500, 501] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[501, 503] ( )
- CSSContextRegion--> S: 0-2,
-[503, 504] (})
- CSSContextRegion--> RBRACE: 0-1,
-[504, 506] (
-)
- CSSContextRegion--> S: 0-2,
-[506, 550] (span[hello="Cleveland"][goodbye="Columbus"] )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-4, CSSContextRegion--> SELECTOR_ATTRIBUTE_START: 4-5, CSSContextRegion--> SELECTOR_ATTRIBUTE_NAME: 5-10, CSSContextRegion--> SELECTOR_ATTRIBUTE_OPERATOR: 10-11, CSSContextRegion--> SELECTOR_ATTRIBUTE_VALUE: 11-22, CSSContextRegion--> SELECTOR_ATTRIBUTE_END: 22-23, CSSContextRegion--> SELECTOR_ATTRIBUTE_START: 23-24, CSSContextRegion--> SELECTOR_ATTRIBUTE_NAME: 24-31, CSSContextRegion--> SELECTOR_ATTRIBUTE_OPERATOR: 31-32, CSSContextRegion--> SELECTOR_ATTRIBUTE_VALUE: 32-42, CSSContextRegion--> SELECTOR_ATTRIBUTE_END: 42-43/44,
-[550, 553] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[553, 564] (color: blue)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_IDENT: 7-11,
-[564, 565] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[565, 567] ( )
- CSSContextRegion--> S: 0-2,
-[567, 568] (})
- CSSContextRegion--> RBRACE: 0-1,
-[568, 570] (
-)
- CSSContextRegion--> S: 0-2,
-[570, 590] (a[rel~="copyright"] )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-1, CSSContextRegion--> SELECTOR_ATTRIBUTE_START: 1-2, CSSContextRegion--> SELECTOR_ATTRIBUTE_NAME: 2-5, CSSContextRegion--> SELECTOR_ATTRIBUTE_OPERATOR: 5-7, CSSContextRegion--> SELECTOR_ATTRIBUTE_VALUE: 7-18, CSSContextRegion--> SELECTOR_ATTRIBUTE_END: 18-19/20,
-[590, 593] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[593, 604] (color: blue)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_IDENT: 7-11,
-[604, 606] ( )
- CSSContextRegion--> S: 0-2,
-[606, 607] (})
- CSSContextRegion--> RBRACE: 0-1,
-[607, 609] (
-)
- CSSContextRegion--> S: 0-2,
-[609, 638] (a[href="http://www.w3.org/"] )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-1, CSSContextRegion--> SELECTOR_ATTRIBUTE_START: 1-2, CSSContextRegion--> SELECTOR_ATTRIBUTE_NAME: 2-6, CSSContextRegion--> SELECTOR_ATTRIBUTE_OPERATOR: 6-7, CSSContextRegion--> SELECTOR_ATTRIBUTE_VALUE: 7-27, CSSContextRegion--> SELECTOR_ATTRIBUTE_END: 27-28/29,
-[638, 641] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[641, 652] (color: blue)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_IDENT: 7-11,
-[652, 654] ( )
- CSSContextRegion--> S: 0-2,
-[654, 655] (})
- CSSContextRegion--> RBRACE: 0-1,
-[655, 657] (
-)
- CSSContextRegion--> S: 0-2,
-[657, 668] (*[lang=fr] )
- CSSContextRegion--> SELECTOR_UNIVERSAL: 0-1, CSSContextRegion--> SELECTOR_ATTRIBUTE_START: 1-2, CSSContextRegion--> SELECTOR_ATTRIBUTE_NAME: 2-6, CSSContextRegion--> SELECTOR_ATTRIBUTE_OPERATOR: 6-7, CSSContextRegion--> SELECTOR_ATTRIBUTE_VALUE: 7-9, CSSContextRegion--> SELECTOR_ATTRIBUTE_END: 9-10/11,
-[668, 671] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[671, 685] (display : none)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-7/8, CSSContextRegion--> DECLARATION_SEPARATOR: 8-9/10, CSSContextRegion--> DECLARATION_VALUE_IDENT: 10-14,
-[685, 687] ( )
- CSSContextRegion--> S: 0-2,
-[687, 688] (})
- CSSContextRegion--> RBRACE: 0-1,
-[688, 690] (
-)
- CSSContextRegion--> S: 0-2,
-[690, 704] (*[lang|="en"] )
- CSSContextRegion--> SELECTOR_UNIVERSAL: 0-1, CSSContextRegion--> SELECTOR_ATTRIBUTE_START: 1-2, CSSContextRegion--> SELECTOR_ATTRIBUTE_NAME: 2-6, CSSContextRegion--> SELECTOR_ATTRIBUTE_OPERATOR: 6-8, CSSContextRegion--> SELECTOR_ATTRIBUTE_VALUE: 8-12, CSSContextRegion--> SELECTOR_ATTRIBUTE_END: 12-13/14,
-[704, 707] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[707, 718] (color : red)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5/6, CSSContextRegion--> DECLARATION_SEPARATOR: 6-7/8, CSSContextRegion--> DECLARATION_VALUE_IDENT: 8-11,
-[718, 720] ( )
- CSSContextRegion--> S: 0-2,
-[720, 721] (})
- CSSContextRegion--> RBRACE: 0-1,
-[721, 723] (
-)
- CSSContextRegion--> S: 0-2,
-[723, 750] (DIALOGUE[character=romeo]
-)
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-8, CSSContextRegion--> SELECTOR_ATTRIBUTE_START: 8-9, CSSContextRegion--> SELECTOR_ATTRIBUTE_NAME: 9-18, CSSContextRegion--> SELECTOR_ATTRIBUTE_OPERATOR: 18-19, CSSContextRegion--> SELECTOR_ATTRIBUTE_VALUE: 19-24, CSSContextRegion--> SELECTOR_ATTRIBUTE_END: 24-25/27,
-[750, 753] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[753, 800] (voice-family: "Lawrence Olivier", charles, male)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-12, CSSContextRegion--> DECLARATION_SEPARATOR: 12-13/14, CSSContextRegion--> DECLARATION_VALUE_STRING: 14-32, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 32-33/34, CSSContextRegion--> DECLARATION_VALUE_IDENT: 34-41, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 41-42/43, CSSContextRegion--> DECLARATION_VALUE_IDENT: 43-47,
-[800, 802] ( )
- CSSContextRegion--> S: 0-2,
-[802, 803] (})
- CSSContextRegion--> RBRACE: 0-1,
-[803, 805] (
-)
- CSSContextRegion--> S: 0-2,
-[805, 837] (DIALOGUE[ character = juliet ]
-)
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-8, CSSContextRegion--> SELECTOR_ATTRIBUTE_START: 8-9/10, CSSContextRegion--> SELECTOR_ATTRIBUTE_NAME: 10-19/20, CSSContextRegion--> SELECTOR_ATTRIBUTE_OPERATOR: 20-21/22, CSSContextRegion--> SELECTOR_ATTRIBUTE_VALUE: 22-28/29, CSSContextRegion--> SELECTOR_ATTRIBUTE_END: 29-30/32,
-[837, 840] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[840, 886] (voice-family: "Vivien Leigh", victoria, female)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-12, CSSContextRegion--> DECLARATION_SEPARATOR: 12-13/14, CSSContextRegion--> DECLARATION_VALUE_STRING: 14-28, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 28-29/30, CSSContextRegion--> DECLARATION_VALUE_IDENT: 30-38, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 38-39/40, CSSContextRegion--> DECLARATION_VALUE_IDENT: 40-46,
-[886, 888] ( )
- CSSContextRegion--> S: 0-2,
-[888, 889] (})
- CSSContextRegion--> RBRACE: 0-1,
-[889, 891] (
-)
- CSSContextRegion--> S: 0-2,
-[891, 902] (*.pastoral )
- CSSContextRegion--> SELECTOR_UNIVERSAL: 0-1, CSSContextRegion--> SELECTOR_CLASS: 1-10/11,
-[902, 905] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[905, 917] (color: green)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_IDENT: 7-12,
-[917, 919] ( )
- CSSContextRegion--> S: 0-2,
-[919, 920] (})
- CSSContextRegion--> RBRACE: 0-1,
-[920, 922] (
-)
- CSSContextRegion--> S: 0-2,
-[922, 932] (.pastoral )
- CSSContextRegion--> SELECTOR_CLASS: 0-9/10,
-[932, 935] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[935, 947] (color: green)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_IDENT: 7-12,
-[947, 949] ( )
- CSSContextRegion--> S: 0-2,
-[949, 950] (})
- CSSContextRegion--> RBRACE: 0-1,
-[950, 952] (
-)
- CSSContextRegion--> S: 0-2,
-[952, 964] (H1.pastoral )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-2, CSSContextRegion--> SELECTOR_CLASS: 2-11/12,
-[964, 967] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[967, 979] (color: green)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_IDENT: 7-12,
-[979, 981] ( )
- CSSContextRegion--> S: 0-2,
-[981, 982] (})
- CSSContextRegion--> RBRACE: 0-1,
-[982, 984] (
-)
- CSSContextRegion--> S: 0-2,
-[984, 1002] (p.pastoral.marine )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-1, CSSContextRegion--> SELECTOR_CLASS: 1-10, CSSContextRegion--> SELECTOR_CLASS: 10-17/18,
-[1002, 1005] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1005, 1017] (color: green)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_IDENT: 7-12,
-[1017, 1019] ( )
- CSSContextRegion--> S: 0-2,
-[1019, 1020] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1020, 1022] (
-)
- CSSContextRegion--> S: 0-2,
-[1022, 1034] (h1#chapter1 )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-2, CSSContextRegion--> SELECTOR_ID: 2-11/12,
-[1034, 1037] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1037, 1055] (text-align: center)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-10, CSSContextRegion--> DECLARATION_SEPARATOR: 10-11/12, CSSContextRegion--> DECLARATION_VALUE_IDENT: 12-18,
-[1055, 1057] ( )
- CSSContextRegion--> S: 0-2,
-[1057, 1058] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1058, 1060] (
-)
- CSSContextRegion--> S: 0-2,
-[1060, 1080] (div > p:first-child )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-3/4, CSSContextRegion--> SELECTOR_COMBINATOR: 4-5/6, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 6-7, CSSContextRegion--> SELECTOR_PSEUDO: 7-19/20,
-[1080, 1083] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1083, 1097] (text-indent: 0)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-11, CSSContextRegion--> DECLARATION_SEPARATOR: 11-12/13, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 13-14,
-[1097, 1099] ( )
- CSSContextRegion--> S: 0-2,
-[1099, 1100] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1100, 1102] (
-)
- CSSContextRegion--> S: 0-2,
-[1102, 1119] (p:first-child em )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-1, CSSContextRegion--> SELECTOR_PSEUDO: 1-13, CSSContextRegion--> SELECTOR_COMBINATOR: 13-14, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 14-16/17,
-[1119, 1122] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1122, 1140] (font-weight : bold)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-11/12, CSSContextRegion--> DECLARATION_SEPARATOR: 12-13/14, CSSContextRegion--> DECLARATION_VALUE_IDENT: 14-18,
-[1140, 1142] ( )
- CSSContextRegion--> S: 0-2,
-[1142, 1143] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1143, 1145] (
-)
- CSSContextRegion--> S: 0-2,
-[1145, 1163] (* > a:first-child )
- CSSContextRegion--> SELECTOR_UNIVERSAL: 0-1/2, CSSContextRegion--> SELECTOR_COMBINATOR: 2-3/4, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 4-5, CSSContextRegion--> SELECTOR_PSEUDO: 5-17/18,
-[1163, 1166] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1166, 1184] (font-weight : bold)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-11/12, CSSContextRegion--> DECLARATION_SEPARATOR: 12-13/14, CSSContextRegion--> DECLARATION_VALUE_IDENT: 14-18,
-[1184, 1186] ( )
- CSSContextRegion--> S: 0-2,
-[1186, 1187] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1187, 1189] (
-)
- CSSContextRegion--> S: 0-2,
-[1189, 1203] (a:first-child )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-1, CSSContextRegion--> SELECTOR_PSEUDO: 1-13/14,
-[1203, 1206] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1206, 1224] (font-weight : bold)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-11/12, CSSContextRegion--> DECLARATION_SEPARATOR: 12-13/14, CSSContextRegion--> DECLARATION_VALUE_IDENT: 14-18,
-[1224, 1226] ( )
- CSSContextRegion--> S: 0-2,
-[1226, 1227] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1227, 1229] (
-)
- CSSContextRegion--> S: 0-2,
-[1229, 1248] (a.external:visited )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-1, CSSContextRegion--> SELECTOR_CLASS: 1-10, CSSContextRegion--> SELECTOR_PSEUDO: 10-18/19,
-[1248, 1251] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1251, 1262] (color: blue)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_IDENT: 7-11,
-[1262, 1264] ( )
- CSSContextRegion--> S: 0-2,
-[1264, 1265] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1265, 1267] (
-)
- CSSContextRegion--> S: 0-2,
-[1267, 1281] (a:focus:hover )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-1, CSSContextRegion--> SELECTOR_PSEUDO: 1-7, CSSContextRegion--> SELECTOR_PSEUDO: 7-13/14,
-[1281, 1284] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1284, 1301] (background: white)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-10, CSSContextRegion--> DECLARATION_SEPARATOR: 10-11/12, CSSContextRegion--> DECLARATION_VALUE_IDENT: 12-17,
-[1301, 1303] ( )
- CSSContextRegion--> S: 0-2,
-[1303, 1304] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1304, 1306] (
-)
- CSSContextRegion--> S: 0-2,
-[1306, 1320] (html:lang(fr) )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-4, CSSContextRegion--> SELECTOR_PSEUDO: 4-13/14,
-[1320, 1323] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1323, 1340] (quotes: '<<' '>>')
- CSSContextRegion--> DECLARATION_PROPERTY: 0-6, CSSContextRegion--> DECLARATION_SEPARATOR: 6-7/8, CSSContextRegion--> DECLARATION_VALUE_STRING: 8-12/13, CSSContextRegion--> DECLARATION_VALUE_STRING: 13-17,
-[1340, 1342] ( )
- CSSContextRegion--> S: 0-2,
-[1342, 1343] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1343, 1345] (
-)
- CSSContextRegion--> S: 0-2,
-[1345, 1359] (html:lang(de) )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-4, CSSContextRegion--> SELECTOR_PSEUDO: 4-13/14,
-[1359, 1362] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1362, 1395] (quotes: '>>' '<<' '\2039' '\203A')
- CSSContextRegion--> DECLARATION_PROPERTY: 0-6, CSSContextRegion--> DECLARATION_SEPARATOR: 6-7/8, CSSContextRegion--> DECLARATION_VALUE_STRING: 8-12/13, CSSContextRegion--> DECLARATION_VALUE_STRING: 13-17/18, CSSContextRegion--> DECLARATION_VALUE_STRING: 18-25/26, CSSContextRegion--> DECLARATION_VALUE_STRING: 26-33,
-[1395, 1397] ( )
- CSSContextRegion--> S: 0-2,
-[1397, 1398] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1398, 1400] (
-)
- CSSContextRegion--> S: 0-2,
-[1400, 1414] (:lang(fr) > Q )
- CSSContextRegion--> SELECTOR_PSEUDO: 0-9/10, CSSContextRegion--> SELECTOR_COMBINATOR: 10-11/12, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 12-13/14,
-[1414, 1417] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1417, 1434] (quotes: '<<' '>>')
- CSSContextRegion--> DECLARATION_PROPERTY: 0-6, CSSContextRegion--> DECLARATION_SEPARATOR: 6-7/8, CSSContextRegion--> DECLARATION_VALUE_STRING: 8-12/13, CSSContextRegion--> DECLARATION_VALUE_STRING: 13-17,
-[1434, 1436] ( )
- CSSContextRegion--> S: 0-2,
-[1436, 1437] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1437, 1439] (
-)
- CSSContextRegion--> S: 0-2,
-[1439, 1453] (:lang(de) > Q )
- CSSContextRegion--> SELECTOR_PSEUDO: 0-9/10, CSSContextRegion--> SELECTOR_COMBINATOR: 10-11/12, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 12-13/14,
-[1453, 1456] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1456, 1489] (quotes: '>>' '<<' '\2039' '\203A')
- CSSContextRegion--> DECLARATION_PROPERTY: 0-6, CSSContextRegion--> DECLARATION_SEPARATOR: 6-7/8, CSSContextRegion--> DECLARATION_VALUE_STRING: 8-12/13, CSSContextRegion--> DECLARATION_VALUE_STRING: 13-17/18, CSSContextRegion--> DECLARATION_VALUE_STRING: 18-25/26, CSSContextRegion--> DECLARATION_VALUE_STRING: 26-33,
-[1489, 1491] ( )
- CSSContextRegion--> S: 0-2,
-[1491, 1492] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1492, 1494] (
-)
- CSSContextRegion--> S: 0-2,
-[1494, 1509] (p:first-letter )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-1, CSSContextRegion--> SELECTOR_PSEUDO: 1-14/15,
-[1509, 1512] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1512, 1526] (font-size: 3em)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-9, CSSContextRegion--> DECLARATION_SEPARATOR: 9-10/11, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 11-14,
-[1526, 1527] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[1527, 1528] ( )
- CSSContextRegion--> S: 0-1,
-[1528, 1547] (font-weight: normal)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-11, CSSContextRegion--> DECLARATION_SEPARATOR: 11-12/13, CSSContextRegion--> DECLARATION_VALUE_IDENT: 13-19,
-[1547, 1549] ( )
- CSSContextRegion--> S: 0-2,
-[1549, 1550] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1550, 1552] (
-)
- CSSContextRegion--> S: 0-2,
-[1552, 1569] (p.special:before )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-1, CSSContextRegion--> SELECTOR_CLASS: 1-9, CSSContextRegion--> SELECTOR_PSEUDO: 9-16/17,
-[1569, 1571] ({ )
- CSSContextRegion--> LBRACE: 0-1/2,
-[1571, 1591] (content: "Special! ")
- CSSContextRegion--> DECLARATION_PROPERTY: 0-7, CSSContextRegion--> DECLARATION_SEPARATOR: 7-8/9, CSSContextRegion--> DECLARATION_VALUE_STRING: 9-20,
-[1591, 1592] ( )
- CSSContextRegion--> S: 0-1,
-[1592, 1593] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1593, 1595] (
-)
- CSSContextRegion--> S: 0-2,
-[1595, 1618] (p.special:first-letter )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-1, CSSContextRegion--> SELECTOR_CLASS: 1-9, CSSContextRegion--> SELECTOR_PSEUDO: 9-22/23,
-[1618, 1620] ({ )
- CSSContextRegion--> LBRACE: 0-1/2,
-[1620, 1634] (color: #ffd800)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_HASH: 7-14,
-[1634, 1635] ( )
- CSSContextRegion--> S: 0-1,
-[1635, 1636] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1636, 1638] (
-)
- CSSContextRegion--> S: 0-2,
-[1638, 1643] (BODY )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-4/5,
-[1643, 1645] ({ )
- CSSContextRegion--> LBRACE: 0-1/2,
-[1645, 1703] (font-family: Baskerville, "Heisi Mincho W3", Symbol, serif)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-11, CSSContextRegion--> DECLARATION_SEPARATOR: 11-12/13, CSSContextRegion--> DECLARATION_VALUE_IDENT: 13-24, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 24-25/26, CSSContextRegion--> DECLARATION_VALUE_STRING: 26-43, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 43-44/45, CSSContextRegion--> DECLARATION_VALUE_IDENT: 45-51, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 51-52/53, CSSContextRegion--> DECLARATION_VALUE_IDENT: 53-58,
-[1703, 1704] ( )
- CSSContextRegion--> S: 0-1,
-[1704, 1705] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1705, 1707] (
-)
- CSSContextRegion--> S: 0-2,
-[1707, 1721] (*:lang(ja-jp) )
- CSSContextRegion--> SELECTOR_UNIVERSAL: 0-1, CSSContextRegion--> SELECTOR_PSEUDO: 1-13/14,
-[1721, 1723] ({ )
- CSSContextRegion--> LBRACE: 0-1/2,
-[1723, 1768] (font: 900 14pt/16pt "Heisei Mincho W9", serif)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-4, CSSContextRegion--> DECLARATION_SEPARATOR: 4-5/6, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 6-9/10, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 10-14, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 14-15, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 15-19/20, CSSContextRegion--> DECLARATION_VALUE_STRING: 20-38, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 38-39/40, CSSContextRegion--> DECLARATION_VALUE_IDENT: 40-45,
-[1768, 1769] ( )
- CSSContextRegion--> S: 0-1,
-[1769, 1770] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1770, 1772] (
-)
- CSSContextRegion--> S: 0-2,
-[1772, 1786] (*:lang(zh-tw) )
- CSSContextRegion--> SELECTOR_UNIVERSAL: 0-1, CSSContextRegion--> SELECTOR_PSEUDO: 1-13/14,
-[1786, 1788] ({ )
- CSSContextRegion--> LBRACE: 0-1/2,
-[1788, 1826] (font: 800 14pt/16.5pt "Li Sung", serif)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-4, CSSContextRegion--> DECLARATION_SEPARATOR: 4-5/6, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 6-9/10, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 10-14, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 14-15, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 15-21/22, CSSContextRegion--> DECLARATION_VALUE_STRING: 22-31, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 31-32/33, CSSContextRegion--> DECLARATION_VALUE_IDENT: 33-38,
-[1826, 1827] ( )
- CSSContextRegion--> S: 0-1,
-[1827, 1828] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1828, 1830] (
-)
- CSSContextRegion--> S: 0-2,
-
--------
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSSourceParserTest-sample05.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSSourceParserTest-sample05.css
deleted file mode 100644
index 4a6e72f..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSSourceParserTest-sample05.css
+++ /dev/null
@@ -1,554 +0,0 @@
-[0, 21] (@charset "ISO-8859-1")
- CSSContextRegion--> CHARSET: 0-8/9, CSSContextRegion--> STRING: 9-21,
-[21, 22] (;)
- CSSContextRegion--> DELIMITER: 0-1,
-[22, 26] (
-
-)
- CSSContextRegion--> S: 0-4,
-[26, 49] (@import url("hoge.css"))
- CSSContextRegion--> IMPORT: 0-7/8, CSSContextRegion--> URI: 8-23,
-[49, 50] (;)
- CSSContextRegion--> DELIMITER: 0-1,
-[50, 52] (
-)
- CSSContextRegion--> S: 0-2,
-[52, 87] (@import /* comment */ url(hoge.css))
- CSSContextRegion--> IMPORT: 0-7/8, CSSContextRegion--> COMMENT: 8-21/22, CSSContextRegion--> URI: 22-35,
-[87, 88] (;)
- CSSContextRegion--> DELIMITER: 0-1,
-[88, 90] (
-)
- CSSContextRegion--> S: 0-2,
-[90, 122] (@import "hoge.css" /* comment */)
- CSSContextRegion--> IMPORT: 0-7/8, CSSContextRegion--> STRING: 8-18/19, CSSContextRegion--> COMMENT: 19-32,
-[122, 123] (;)
- CSSContextRegion--> DELIMITER: 0-1,
-[123, 125] (
-)
- CSSContextRegion--> S: 0-2,
-[125, 166] (@IMPORT 'hoge.css' media1,media2 , media3)
- CSSContextRegion--> IMPORT: 0-7/8, CSSContextRegion--> STRING: 8-18/19, CSSContextRegion--> MEDIUM: 19-25, CSSContextRegion--> MEDIA_SEPARATOR: 25-26, CSSContextRegion--> MEDIUM: 26-32/33, CSSContextRegion--> MEDIA_SEPARATOR: 33-34/35, CSSContextRegion--> MEDIUM: 35-41,
-[166, 167] (;)
- CSSContextRegion--> DELIMITER: 0-1,
-[167, 171] (
-
-)
- CSSContextRegion--> S: 0-4,
-[171, 184] (@media print )
- CSSContextRegion--> MEDIA: 0-6/7, CSSContextRegion--> MEDIUM: 7-12/13,
-[184, 189] ({
-
-)
- CSSContextRegion--> LBRACE: 0-1/5,
-[189, 190] (})
- CSSContextRegion--> RBRACE: 0-1,
-[190, 194] (
-
-)
- CSSContextRegion--> S: 0-4,
-[194, 206] (@page :left )
- CSSContextRegion--> PAGE: 0-5/6, CSSContextRegion--> CSS_PAGE_SELECTOR: 6-11/12,
-[206, 211] ({
-
-)
- CSSContextRegion--> LBRACE: 0-1/5,
-[211, 212] (})
- CSSContextRegion--> RBRACE: 0-1,
-[212, 216] (
-
-)
- CSSContextRegion--> S: 0-4,
-[216, 227] (h1, h2, h3 )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-2, CSSContextRegion--> SELECTOR_SEPARATOR: 2-3/4, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 4-6, CSSContextRegion--> SELECTOR_SEPARATOR: 6-7/8, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 8-10/11,
-[227, 230] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[230, 253] (font-family: sans-serif)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-11, CSSContextRegion--> DECLARATION_SEPARATOR: 11-12/13, CSSContextRegion--> DECLARATION_VALUE_IDENT: 13-23,
-[253, 255] ( )
- CSSContextRegion--> S: 0-2,
-[255, 256] (})
- CSSContextRegion--> RBRACE: 0-1,
-[256, 258] (
-)
- CSSContextRegion--> S: 0-2,
-[258, 264] (h1 em )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-2, CSSContextRegion--> SELECTOR_COMBINATOR: 2-3, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 3-5/6,
-[264, 267] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[267, 278] (color: blue)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_IDENT: 7-11,
-[278, 280] ( )
- CSSContextRegion--> S: 0-2,
-[280, 281] (})
- CSSContextRegion--> RBRACE: 0-1,
-[281, 283] (
-)
- CSSContextRegion--> S: 0-2,
-[283, 297] (div p *[href] )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-3, CSSContextRegion--> SELECTOR_COMBINATOR: 3-4, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 4-5, CSSContextRegion--> SELECTOR_COMBINATOR: 5-6, CSSContextRegion--> SELECTOR_UNIVERSAL: 6-7, CSSContextRegion--> SELECTOR_ATTRIBUTE_START: 7-8, CSSContextRegion--> SELECTOR_ATTRIBUTE_NAME: 8-12, CSSContextRegion--> SELECTOR_ATTRIBUTE_END: 12-13/14,
-[297, 300] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[300, 311] (color: blue)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_IDENT: 7-11,
-[311, 313] ( )
- CSSContextRegion--> S: 0-2,
-[313, 314] (})
- CSSContextRegion--> RBRACE: 0-1,
-[314, 316] (
-)
- CSSContextRegion--> S: 0-2,
-[316, 325] (body > P )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-4/5, CSSContextRegion--> SELECTOR_COMBINATOR: 5-6/7, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 7-8/9,
-[325, 328] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[328, 344] (line-height: 1.3)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-11, CSSContextRegion--> DECLARATION_SEPARATOR: 11-12/13, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 13-16,
-[344, 346] ( )
- CSSContextRegion--> S: 0-2,
-[346, 347] (})
- CSSContextRegion--> RBRACE: 0-1,
-[347, 349] (
-)
- CSSContextRegion--> S: 0-2,
-[349, 361] (div ol>li p )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-3, CSSContextRegion--> SELECTOR_COMBINATOR: 3-4, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 4-6, CSSContextRegion--> SELECTOR_COMBINATOR: 6-7, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 7-9, CSSContextRegion--> SELECTOR_COMBINATOR: 9-10, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 10-11/12,
-[361, 363] ({ )
- CSSContextRegion--> LBRACE: 0-1/2,
-[363, 364] (})
- CSSContextRegion--> RBRACE: 0-1,
-[364, 366] (
-)
- CSSContextRegion--> S: 0-2,
-[366, 375] (math + p )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-4/5, CSSContextRegion--> SELECTOR_COMBINATOR: 5-6/7, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 7-8/9,
-[375, 378] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[378, 392] (text-indent: 0)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-11, CSSContextRegion--> DECLARATION_SEPARATOR: 11-12/13, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 13-14,
-[392, 394] ( )
- CSSContextRegion--> S: 0-2,
-[394, 395] (})
- CSSContextRegion--> RBRACE: 0-1,
-[395, 397] (
-)
- CSSContextRegion--> S: 0-2,
-[397, 412] (h1.opener + h2 )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-2, CSSContextRegion--> SELECTOR_CLASS: 2-9/10, CSSContextRegion--> SELECTOR_COMBINATOR: 10-11/12, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 12-14/15,
-[412, 415] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[415, 431] (margin-top: -5mm)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-10, CSSContextRegion--> DECLARATION_SEPARATOR: 10-11/12, CSSContextRegion--> DECLARATION_VALUE_IDENT: 12-16,
-[431, 433] ( )
- CSSContextRegion--> S: 0-2,
-[433, 434] (})
- CSSContextRegion--> RBRACE: 0-1,
-[434, 436] (
-)
- CSSContextRegion--> S: 0-2,
-[436, 446] (h1[title] )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-2, CSSContextRegion--> SELECTOR_ATTRIBUTE_START: 2-3, CSSContextRegion--> SELECTOR_ATTRIBUTE_NAME: 3-8, CSSContextRegion--> SELECTOR_ATTRIBUTE_END: 8-9/10,
-[446, 449] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[449, 460] (color: blue)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_IDENT: 7-11,
-[460, 461] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[461, 463] ( )
- CSSContextRegion--> S: 0-2,
-[463, 464] (})
- CSSContextRegion--> RBRACE: 0-1,
-[464, 466] (
-)
- CSSContextRegion--> S: 0-2,
-[466, 486] (span[class=example] )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-4, CSSContextRegion--> SELECTOR_ATTRIBUTE_START: 4-5, CSSContextRegion--> SELECTOR_ATTRIBUTE_NAME: 5-10, CSSContextRegion--> SELECTOR_ATTRIBUTE_OPERATOR: 10-11, CSSContextRegion--> SELECTOR_ATTRIBUTE_VALUE: 11-18, CSSContextRegion--> SELECTOR_ATTRIBUTE_END: 18-19/20,
-[486, 489] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[489, 500] (color: blue)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_IDENT: 7-11,
-[500, 501] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[501, 503] ( )
- CSSContextRegion--> S: 0-2,
-[503, 504] (})
- CSSContextRegion--> RBRACE: 0-1,
-[504, 506] (
-)
- CSSContextRegion--> S: 0-2,
-[506, 550] (span[hello="Cleveland"][goodbye="Columbus"] )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-4, CSSContextRegion--> SELECTOR_ATTRIBUTE_START: 4-5, CSSContextRegion--> SELECTOR_ATTRIBUTE_NAME: 5-10, CSSContextRegion--> SELECTOR_ATTRIBUTE_OPERATOR: 10-11, CSSContextRegion--> SELECTOR_ATTRIBUTE_VALUE: 11-22, CSSContextRegion--> SELECTOR_ATTRIBUTE_END: 22-23, CSSContextRegion--> SELECTOR_ATTRIBUTE_START: 23-24, CSSContextRegion--> SELECTOR_ATTRIBUTE_NAME: 24-31, CSSContextRegion--> SELECTOR_ATTRIBUTE_OPERATOR: 31-32, CSSContextRegion--> SELECTOR_ATTRIBUTE_VALUE: 32-42, CSSContextRegion--> SELECTOR_ATTRIBUTE_END: 42-43/44,
-[550, 553] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[553, 564] (color: blue)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_IDENT: 7-11,
-[564, 565] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[565, 567] ( )
- CSSContextRegion--> S: 0-2,
-[567, 568] (})
- CSSContextRegion--> RBRACE: 0-1,
-[568, 570] (
-)
- CSSContextRegion--> S: 0-2,
-[570, 590] (a[rel~="copyright"] )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-1, CSSContextRegion--> SELECTOR_ATTRIBUTE_START: 1-2, CSSContextRegion--> SELECTOR_ATTRIBUTE_NAME: 2-5, CSSContextRegion--> SELECTOR_ATTRIBUTE_OPERATOR: 5-7, CSSContextRegion--> SELECTOR_ATTRIBUTE_VALUE: 7-18, CSSContextRegion--> SELECTOR_ATTRIBUTE_END: 18-19/20,
-[590, 593] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[593, 604] (color: blue)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_IDENT: 7-11,
-[604, 606] ( )
- CSSContextRegion--> S: 0-2,
-[606, 607] (})
- CSSContextRegion--> RBRACE: 0-1,
-[607, 609] (
-)
- CSSContextRegion--> S: 0-2,
-[609, 638] (a[href="http://www.w3.org/"] )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-1, CSSContextRegion--> SELECTOR_ATTRIBUTE_START: 1-2, CSSContextRegion--> SELECTOR_ATTRIBUTE_NAME: 2-6, CSSContextRegion--> SELECTOR_ATTRIBUTE_OPERATOR: 6-7, CSSContextRegion--> SELECTOR_ATTRIBUTE_VALUE: 7-27, CSSContextRegion--> SELECTOR_ATTRIBUTE_END: 27-28/29,
-[638, 641] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[641, 652] (color: blue)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_IDENT: 7-11,
-[652, 654] ( )
- CSSContextRegion--> S: 0-2,
-[654, 655] (})
- CSSContextRegion--> RBRACE: 0-1,
-[655, 657] (
-)
- CSSContextRegion--> S: 0-2,
-[657, 668] (*[lang=fr] )
- CSSContextRegion--> SELECTOR_UNIVERSAL: 0-1, CSSContextRegion--> SELECTOR_ATTRIBUTE_START: 1-2, CSSContextRegion--> SELECTOR_ATTRIBUTE_NAME: 2-6, CSSContextRegion--> SELECTOR_ATTRIBUTE_OPERATOR: 6-7, CSSContextRegion--> SELECTOR_ATTRIBUTE_VALUE: 7-9, CSSContextRegion--> SELECTOR_ATTRIBUTE_END: 9-10/11,
-[668, 671] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[671, 685] (display : none)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-7/8, CSSContextRegion--> DECLARATION_SEPARATOR: 8-9/10, CSSContextRegion--> DECLARATION_VALUE_IDENT: 10-14,
-[685, 687] ( )
- CSSContextRegion--> S: 0-2,
-[687, 688] (})
- CSSContextRegion--> RBRACE: 0-1,
-[688, 690] (
-)
- CSSContextRegion--> S: 0-2,
-[690, 704] (*[lang|="en"] )
- CSSContextRegion--> SELECTOR_UNIVERSAL: 0-1, CSSContextRegion--> SELECTOR_ATTRIBUTE_START: 1-2, CSSContextRegion--> SELECTOR_ATTRIBUTE_NAME: 2-6, CSSContextRegion--> SELECTOR_ATTRIBUTE_OPERATOR: 6-8, CSSContextRegion--> SELECTOR_ATTRIBUTE_VALUE: 8-12, CSSContextRegion--> SELECTOR_ATTRIBUTE_END: 12-13/14,
-[704, 707] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[707, 718] (color : red)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5/6, CSSContextRegion--> DECLARATION_SEPARATOR: 6-7/8, CSSContextRegion--> DECLARATION_VALUE_IDENT: 8-11,
-[718, 720] ( )
- CSSContextRegion--> S: 0-2,
-[720, 721] (})
- CSSContextRegion--> RBRACE: 0-1,
-[721, 723] (
-)
- CSSContextRegion--> S: 0-2,
-[723, 750] (DIALOGUE[character=romeo]
-)
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-8, CSSContextRegion--> SELECTOR_ATTRIBUTE_START: 8-9, CSSContextRegion--> SELECTOR_ATTRIBUTE_NAME: 9-18, CSSContextRegion--> SELECTOR_ATTRIBUTE_OPERATOR: 18-19, CSSContextRegion--> SELECTOR_ATTRIBUTE_VALUE: 19-24, CSSContextRegion--> SELECTOR_ATTRIBUTE_END: 24-25/27,
-[750, 753] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[753, 800] (voice-family: "Lawrence Olivier", charles, male)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-12, CSSContextRegion--> DECLARATION_SEPARATOR: 12-13/14, CSSContextRegion--> DECLARATION_VALUE_STRING: 14-32, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 32-33/34, CSSContextRegion--> DECLARATION_VALUE_IDENT: 34-41, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 41-42/43, CSSContextRegion--> DECLARATION_VALUE_IDENT: 43-47,
-[800, 802] ( )
- CSSContextRegion--> S: 0-2,
-[802, 803] (})
- CSSContextRegion--> RBRACE: 0-1,
-[803, 805] (
-)
- CSSContextRegion--> S: 0-2,
-[805, 837] (DIALOGUE[ character = juliet ]
-)
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-8, CSSContextRegion--> SELECTOR_ATTRIBUTE_START: 8-9/10, CSSContextRegion--> SELECTOR_ATTRIBUTE_NAME: 10-19/20, CSSContextRegion--> SELECTOR_ATTRIBUTE_OPERATOR: 20-21/22, CSSContextRegion--> SELECTOR_ATTRIBUTE_VALUE: 22-28/29, CSSContextRegion--> SELECTOR_ATTRIBUTE_END: 29-30/32,
-[837, 840] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[840, 886] (voice-family: "Vivien Leigh", victoria, female)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-12, CSSContextRegion--> DECLARATION_SEPARATOR: 12-13/14, CSSContextRegion--> DECLARATION_VALUE_STRING: 14-28, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 28-29/30, CSSContextRegion--> DECLARATION_VALUE_IDENT: 30-38, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 38-39/40, CSSContextRegion--> DECLARATION_VALUE_IDENT: 40-46,
-[886, 888] ( )
- CSSContextRegion--> S: 0-2,
-[888, 889] (})
- CSSContextRegion--> RBRACE: 0-1,
-[889, 891] (
-)
- CSSContextRegion--> S: 0-2,
-[891, 902] (*.pastoral )
- CSSContextRegion--> SELECTOR_UNIVERSAL: 0-1, CSSContextRegion--> SELECTOR_CLASS: 1-10/11,
-[902, 905] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[905, 917] (color: green)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_IDENT: 7-12,
-[917, 919] ( )
- CSSContextRegion--> S: 0-2,
-[919, 920] (})
- CSSContextRegion--> RBRACE: 0-1,
-[920, 922] (
-)
- CSSContextRegion--> S: 0-2,
-[922, 932] (.pastoral )
- CSSContextRegion--> SELECTOR_CLASS: 0-9/10,
-[932, 935] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[935, 947] (color: green)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_IDENT: 7-12,
-[947, 949] ( )
- CSSContextRegion--> S: 0-2,
-[949, 950] (})
- CSSContextRegion--> RBRACE: 0-1,
-[950, 952] (
-)
- CSSContextRegion--> S: 0-2,
-[952, 964] (H1.pastoral )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-2, CSSContextRegion--> SELECTOR_CLASS: 2-11/12,
-[964, 967] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[967, 979] (color: green)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_IDENT: 7-12,
-[979, 981] ( )
- CSSContextRegion--> S: 0-2,
-[981, 982] (})
- CSSContextRegion--> RBRACE: 0-1,
-[982, 984] (
-)
- CSSContextRegion--> S: 0-2,
-[984, 1002] (p.pastoral.marine )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-1, CSSContextRegion--> SELECTOR_CLASS: 1-10, CSSContextRegion--> SELECTOR_CLASS: 10-17/18,
-[1002, 1005] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1005, 1017] (color: green)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_IDENT: 7-12,
-[1017, 1019] ( )
- CSSContextRegion--> S: 0-2,
-[1019, 1020] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1020, 1022] (
-)
- CSSContextRegion--> S: 0-2,
-[1022, 1034] (h1#chapter1 )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-2, CSSContextRegion--> SELECTOR_ID: 2-11/12,
-[1034, 1037] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1037, 1055] (text-align: center)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-10, CSSContextRegion--> DECLARATION_SEPARATOR: 10-11/12, CSSContextRegion--> DECLARATION_VALUE_IDENT: 12-18,
-[1055, 1057] ( )
- CSSContextRegion--> S: 0-2,
-[1057, 1058] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1058, 1060] (
-)
- CSSContextRegion--> S: 0-2,
-[1060, 1080] (div > p:first-child )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-3/4, CSSContextRegion--> SELECTOR_COMBINATOR: 4-5/6, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 6-7, CSSContextRegion--> SELECTOR_PSEUDO: 7-19/20,
-[1080, 1083] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1083, 1097] (text-indent: 0)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-11, CSSContextRegion--> DECLARATION_SEPARATOR: 11-12/13, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 13-14,
-[1097, 1099] ( )
- CSSContextRegion--> S: 0-2,
-[1099, 1100] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1100, 1102] (
-)
- CSSContextRegion--> S: 0-2,
-[1102, 1119] (p:first-child em )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-1, CSSContextRegion--> SELECTOR_PSEUDO: 1-13, CSSContextRegion--> SELECTOR_COMBINATOR: 13-14, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 14-16/17,
-[1119, 1122] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1122, 1140] (font-weight : bold)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-11/12, CSSContextRegion--> DECLARATION_SEPARATOR: 12-13/14, CSSContextRegion--> DECLARATION_VALUE_IDENT: 14-18,
-[1140, 1142] ( )
- CSSContextRegion--> S: 0-2,
-[1142, 1143] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1143, 1145] (
-)
- CSSContextRegion--> S: 0-2,
-[1145, 1163] (* > a:first-child )
- CSSContextRegion--> SELECTOR_UNIVERSAL: 0-1/2, CSSContextRegion--> SELECTOR_COMBINATOR: 2-3/4, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 4-5, CSSContextRegion--> SELECTOR_PSEUDO: 5-17/18,
-[1163, 1166] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1166, 1184] (font-weight : bold)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-11/12, CSSContextRegion--> DECLARATION_SEPARATOR: 12-13/14, CSSContextRegion--> DECLARATION_VALUE_IDENT: 14-18,
-[1184, 1186] ( )
- CSSContextRegion--> S: 0-2,
-[1186, 1187] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1187, 1189] (
-)
- CSSContextRegion--> S: 0-2,
-[1189, 1203] (a:first-child )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-1, CSSContextRegion--> SELECTOR_PSEUDO: 1-13/14,
-[1203, 1206] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1206, 1224] (font-weight : bold)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-11/12, CSSContextRegion--> DECLARATION_SEPARATOR: 12-13/14, CSSContextRegion--> DECLARATION_VALUE_IDENT: 14-18,
-[1224, 1226] ( )
- CSSContextRegion--> S: 0-2,
-[1226, 1227] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1227, 1229] (
-)
- CSSContextRegion--> S: 0-2,
-[1229, 1248] (a.external:visited )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-1, CSSContextRegion--> SELECTOR_CLASS: 1-10, CSSContextRegion--> SELECTOR_PSEUDO: 10-18/19,
-[1248, 1251] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1251, 1262] (color: blue)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_IDENT: 7-11,
-[1262, 1264] ( )
- CSSContextRegion--> S: 0-2,
-[1264, 1265] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1265, 1267] (
-)
- CSSContextRegion--> S: 0-2,
-[1267, 1281] (a:focus:hover )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-1, CSSContextRegion--> SELECTOR_PSEUDO: 1-7, CSSContextRegion--> SELECTOR_PSEUDO: 7-13/14,
-[1281, 1284] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1284, 1301] (background: white)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-10, CSSContextRegion--> DECLARATION_SEPARATOR: 10-11/12, CSSContextRegion--> DECLARATION_VALUE_IDENT: 12-17,
-[1301, 1303] ( )
- CSSContextRegion--> S: 0-2,
-[1303, 1304] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1304, 1306] (
-)
- CSSContextRegion--> S: 0-2,
-[1306, 1320] (html:lang(fr) )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-4, CSSContextRegion--> SELECTOR_PSEUDO: 4-13/14,
-[1320, 1323] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1323, 1340] (quotes: '<<' '>>')
- CSSContextRegion--> DECLARATION_PROPERTY: 0-6, CSSContextRegion--> DECLARATION_SEPARATOR: 6-7/8, CSSContextRegion--> DECLARATION_VALUE_STRING: 8-12/13, CSSContextRegion--> DECLARATION_VALUE_STRING: 13-17,
-[1340, 1342] ( )
- CSSContextRegion--> S: 0-2,
-[1342, 1343] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1343, 1345] (
-)
- CSSContextRegion--> S: 0-2,
-[1345, 1359] (html:lang(de) )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-4, CSSContextRegion--> SELECTOR_PSEUDO: 4-13/14,
-[1359, 1362] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1362, 1395] (quotes: '>>' '<<' '\2039' '\203A')
- CSSContextRegion--> DECLARATION_PROPERTY: 0-6, CSSContextRegion--> DECLARATION_SEPARATOR: 6-7/8, CSSContextRegion--> DECLARATION_VALUE_STRING: 8-12/13, CSSContextRegion--> DECLARATION_VALUE_STRING: 13-17/18, CSSContextRegion--> DECLARATION_VALUE_STRING: 18-25/26, CSSContextRegion--> DECLARATION_VALUE_STRING: 26-33,
-[1395, 1397] ( )
- CSSContextRegion--> S: 0-2,
-[1397, 1398] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1398, 1400] (
-)
- CSSContextRegion--> S: 0-2,
-[1400, 1414] (:lang(fr) > Q )
- CSSContextRegion--> SELECTOR_PSEUDO: 0-9/10, CSSContextRegion--> SELECTOR_COMBINATOR: 10-11/12, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 12-13/14,
-[1414, 1417] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1417, 1434] (quotes: '<<' '>>')
- CSSContextRegion--> DECLARATION_PROPERTY: 0-6, CSSContextRegion--> DECLARATION_SEPARATOR: 6-7/8, CSSContextRegion--> DECLARATION_VALUE_STRING: 8-12/13, CSSContextRegion--> DECLARATION_VALUE_STRING: 13-17,
-[1434, 1436] ( )
- CSSContextRegion--> S: 0-2,
-[1436, 1437] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1437, 1439] (
-)
- CSSContextRegion--> S: 0-2,
-[1439, 1453] (:lang(de) > Q )
- CSSContextRegion--> SELECTOR_PSEUDO: 0-9/10, CSSContextRegion--> SELECTOR_COMBINATOR: 10-11/12, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 12-13/14,
-[1453, 1456] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1456, 1489] (quotes: '>>' '<<' '\2039' '\203A')
- CSSContextRegion--> DECLARATION_PROPERTY: 0-6, CSSContextRegion--> DECLARATION_SEPARATOR: 6-7/8, CSSContextRegion--> DECLARATION_VALUE_STRING: 8-12/13, CSSContextRegion--> DECLARATION_VALUE_STRING: 13-17/18, CSSContextRegion--> DECLARATION_VALUE_STRING: 18-25/26, CSSContextRegion--> DECLARATION_VALUE_STRING: 26-33,
-[1489, 1491] ( )
- CSSContextRegion--> S: 0-2,
-[1491, 1492] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1492, 1494] (
-)
- CSSContextRegion--> S: 0-2,
-[1494, 1509] (p:first-letter )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-1, CSSContextRegion--> SELECTOR_PSEUDO: 1-14/15,
-[1509, 1512] ({ )
- CSSContextRegion--> LBRACE: 0-1/3,
-[1512, 1526] (font-size: 3em)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-9, CSSContextRegion--> DECLARATION_SEPARATOR: 9-10/11, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 11-14,
-[1526, 1527] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[1527, 1528] ( )
- CSSContextRegion--> S: 0-1,
-[1528, 1547] (font-weight: normal)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-11, CSSContextRegion--> DECLARATION_SEPARATOR: 11-12/13, CSSContextRegion--> DECLARATION_VALUE_IDENT: 13-19,
-[1547, 1549] ( )
- CSSContextRegion--> S: 0-2,
-[1549, 1550] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1550, 1552] (
-)
- CSSContextRegion--> S: 0-2,
-[1552, 1569] (p.special:before )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-1, CSSContextRegion--> SELECTOR_CLASS: 1-9, CSSContextRegion--> SELECTOR_PSEUDO: 9-16/17,
-[1569, 1571] ({ )
- CSSContextRegion--> LBRACE: 0-1/2,
-[1571, 1591] (content: "Special! ")
- CSSContextRegion--> DECLARATION_PROPERTY: 0-7, CSSContextRegion--> DECLARATION_SEPARATOR: 7-8/9, CSSContextRegion--> DECLARATION_VALUE_STRING: 9-20,
-[1591, 1592] ( )
- CSSContextRegion--> S: 0-1,
-[1592, 1593] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1593, 1595] (
-)
- CSSContextRegion--> S: 0-2,
-[1595, 1618] (p.special:first-letter )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-1, CSSContextRegion--> SELECTOR_CLASS: 1-9, CSSContextRegion--> SELECTOR_PSEUDO: 9-22/23,
-[1618, 1620] ({ )
- CSSContextRegion--> LBRACE: 0-1/2,
-[1620, 1634] (color: #ffd800)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_HASH: 7-14,
-[1634, 1635] ( )
- CSSContextRegion--> S: 0-1,
-[1635, 1636] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1636, 1638] (
-)
- CSSContextRegion--> S: 0-2,
-[1638, 1643] (BODY )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-4/5,
-[1643, 1645] ({ )
- CSSContextRegion--> LBRACE: 0-1/2,
-[1645, 1703] (font-family: Baskerville, "Heisi Mincho W3", Symbol, serif)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-11, CSSContextRegion--> DECLARATION_SEPARATOR: 11-12/13, CSSContextRegion--> DECLARATION_VALUE_IDENT: 13-24, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 24-25/26, CSSContextRegion--> DECLARATION_VALUE_STRING: 26-43, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 43-44/45, CSSContextRegion--> DECLARATION_VALUE_IDENT: 45-51, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 51-52/53, CSSContextRegion--> DECLARATION_VALUE_IDENT: 53-58,
-[1703, 1704] ( )
- CSSContextRegion--> S: 0-1,
-[1704, 1705] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1705, 1707] (
-)
- CSSContextRegion--> S: 0-2,
-[1707, 1721] (*:lang(ja-jp) )
- CSSContextRegion--> SELECTOR_UNIVERSAL: 0-1, CSSContextRegion--> SELECTOR_PSEUDO: 1-13/14,
-[1721, 1723] ({ )
- CSSContextRegion--> LBRACE: 0-1/2,
-[1723, 1768] (font: 900 14pt/16pt "Heisei Mincho W9", serif)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-4, CSSContextRegion--> DECLARATION_SEPARATOR: 4-5/6, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 6-9/10, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 10-14, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 14-15, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 15-19/20, CSSContextRegion--> DECLARATION_VALUE_STRING: 20-38, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 38-39/40, CSSContextRegion--> DECLARATION_VALUE_IDENT: 40-45,
-[1768, 1769] ( )
- CSSContextRegion--> S: 0-1,
-[1769, 1770] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1770, 1772] (
-)
- CSSContextRegion--> S: 0-2,
-[1772, 1786] (*:lang(zh-tw) )
- CSSContextRegion--> SELECTOR_UNIVERSAL: 0-1, CSSContextRegion--> SELECTOR_PSEUDO: 1-13/14,
-[1786, 1788] ({ )
- CSSContextRegion--> LBRACE: 0-1/2,
-[1788, 1826] (font: 800 14pt/16.5pt "Li Sung", serif)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-4, CSSContextRegion--> DECLARATION_SEPARATOR: 4-5/6, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 6-9/10, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 10-14, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 14-15, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 15-21/22, CSSContextRegion--> DECLARATION_VALUE_STRING: 22-31, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 31-32/33, CSSContextRegion--> DECLARATION_VALUE_IDENT: 33-38,
-[1826, 1827] ( )
- CSSContextRegion--> S: 0-1,
-[1827, 1828] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1828, 1830] (
-)
- CSSContextRegion--> S: 0-2,
-
--------
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSSourceParserTest-sample06.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSSourceParserTest-sample06.css
deleted file mode 100644
index eafcb31..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSSourceParserTest-sample06.css
+++ /dev/null
@@ -1,68 +0,0 @@
-[0, 12] (declaration )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-11/12,
-[12, 16] ({
- )
- CSSContextRegion--> LBRACE: 0-1/4,
-[16, 33] (dimension : 100ex)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-9/10, CSSContextRegion--> DECLARATION_SEPARATOR: 10-11/12, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 12-17,
-[33, 34] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[34, 37] (
- )
- CSSContextRegion--> S: 0-3,
-[37, 133] (function : rect(100, 200, 300, 400), format("intellifont"), local("Excelsior Cyrilllic Upright"))
- CSSContextRegion--> DECLARATION_PROPERTY: 0-8/9, CSSContextRegion--> DECLARATION_SEPARATOR: 9-10/11, CSSContextRegion--> DECLARATION_VALUE_FUNCTION: 11-16, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 16-19, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 19-20/21, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 21-24, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 24-25/26, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 26-29, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 29-30/31, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 31-34, CSSContextRegion--> DECLARATION_VALUE_PARENTHESIS_CLOSE: 34-35, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 35-36/37, CSSContextRegion--> DECLARATION_VALUE_FUNCTION: 37-44, CSSContextRegion--> DECLARATION_VALUE_STRING: 44-57, CSSContextRegion--> DECLARATION_VALUE_PARENTHESIS_CLOSE: 57-58, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 58-59/60, CSSContextRegion--> DECLARATION_VALUE_FUNCTION: 60-66, CSSContextRegion--> DECLARATION_VALUE_STRING: 66-95, CSSContextRegion--> DECLARATION_VALUE_PARENTHESIS_CLOSE: 95-96,
-[133, 134] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[134, 137] (
- )
- CSSContextRegion--> S: 0-3,
-[137, 151] (hash : #aabbcc)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-4/5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_HASH: 7-14,
-[151, 152] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[152, 155] (
- )
- CSSContextRegion--> S: 0-3,
-[155, 166] (ident : any)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5/6, CSSContextRegion--> DECLARATION_SEPARATOR: 6-7/8, CSSContextRegion--> DECLARATION_VALUE_IDENT: 8-11,
-[166, 167] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[167, 170] (
- )
- CSSContextRegion--> S: 0-3,
-[170, 184] (number : 99999)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-6/7, CSSContextRegion--> DECLARATION_SEPARATOR: 7-8/9, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 9-14,
-[184, 185] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[185, 188] (
- )
- CSSContextRegion--> S: 0-3,
-[188, 205] (percentage : 100%)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-10/11, CSSContextRegion--> DECLARATION_SEPARATOR: 11-12/13, CSSContextRegion--> DECLARATION_VALUE_PERCENTAGE: 13-17,
-[205, 206] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[206, 209] (
- )
- CSSContextRegion--> S: 0-3,
-[209, 226] (string : "string")
- CSSContextRegion--> DECLARATION_PROPERTY: 0-6/7, CSSContextRegion--> DECLARATION_SEPARATOR: 7-8/9, CSSContextRegion--> DECLARATION_VALUE_STRING: 9-17,
-[226, 227] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[227, 230] (
- )
- CSSContextRegion--> S: 0-3,
-[230, 268] (unicode-range : U+??, U+100-220, U+4??)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-13/14, CSSContextRegion--> DECLARATION_SEPARATOR: 14-15/16, CSSContextRegion--> DECLARATION_VALUE_UNICODE_RANGE: 16-20, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 20-21/22, CSSContextRegion--> DECLARATION_VALUE_UNICODE_RANGE: 22-31, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 31-32/33, CSSContextRegion--> DECLARATION_VALUE_UNICODE_RANGE: 33-38,
-[268, 269] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[269, 271] (
-)
- CSSContextRegion--> S: 0-2,
-[271, 272] (})
- CSSContextRegion--> RBRACE: 0-1,
-[272, 274] (
-)
- CSSContextRegion--> S: 0-2,
-
--------
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSSourceParserTest-sample07.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSSourceParserTest-sample07.css
deleted file mode 100644
index 7480b00..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSSourceParserTest-sample07.css
+++ /dev/null
@@ -1,454 +0,0 @@
-[0, 21] (@charset "ISO-8859-1")
- CSSContextRegion--> CHARSET: 0-8/9, CSSContextRegion--> STRING: 9-21,
-[21, 22] (;)
- CSSContextRegion--> DELIMITER: 0-1,
-[22, 26] (
-
-)
- CSSContextRegion--> S: 0-4,
-[26, 70] (@import url("../sample2.css") projection, tv)
- CSSContextRegion--> IMPORT: 0-7/8, CSSContextRegion--> URI: 8-29/30, CSSContextRegion--> MEDIUM: 30-40, CSSContextRegion--> MEDIA_SEPARATOR: 40-41/42, CSSContextRegion--> MEDIUM: 42-44,
-[70, 71] (;)
- CSSContextRegion--> DELIMITER: 0-1,
-[71, 75] (
-
-)
- CSSContextRegion--> S: 0-4,
-[75, 80] (BODY )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-4/5,
-[80, 87] ({
- )
- CSSContextRegion--> LBRACE: 0-1/7,
-[87, 100] (color : black)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5/6, CSSContextRegion--> DECLARATION_SEPARATOR: 6-7/8, CSSContextRegion--> DECLARATION_VALUE_IDENT: 8-13,
-[100, 101] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[101, 107] (
- )
- CSSContextRegion--> S: 0-6,
-[107, 126] (text-align : center)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-10/11, CSSContextRegion--> DECLARATION_SEPARATOR: 11-12/13, CSSContextRegion--> DECLARATION_VALUE_IDENT: 13-19,
-[126, 127] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[127, 133] (
- )
- CSSContextRegion--> S: 0-6,
-[133, 172] (background-color : rgb( 181, 253, 211 ))
- CSSContextRegion--> DECLARATION_PROPERTY: 0-16/17, CSSContextRegion--> DECLARATION_SEPARATOR: 17-18/19, CSSContextRegion--> DECLARATION_VALUE_FUNCTION: 19-23/24, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 24-27, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 27-28/29, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 29-32, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 32-33/34, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 34-37/38, CSSContextRegion--> DECLARATION_VALUE_PARENTHESIS_CLOSE: 38-39,
-[172, 174] (
-)
- CSSContextRegion--> S: 0-2,
-[174, 175] (})
- CSSContextRegion--> RBRACE: 0-1,
-[175, 179] (
-
-)
- CSSContextRegion--> S: 0-4,
-[179, 182] (UL )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-2/3,
-[182, 189] ({
- )
- CSSContextRegion--> LBRACE: 0-1/7,
-[189, 202] (color : black)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5/6, CSSContextRegion--> DECLARATION_SEPARATOR: 6-7/8, CSSContextRegion--> DECLARATION_VALUE_IDENT: 8-13,
-[202, 203] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[203, 209] (
- )
- CSSContextRegion--> S: 0-6,
-[209, 251] (list-style-image : url("images/l_a01.gif"))
- CSSContextRegion--> DECLARATION_PROPERTY: 0-16/17, CSSContextRegion--> DECLARATION_SEPARATOR: 17-18/19, CSSContextRegion--> DECLARATION_VALUE_URI: 19-42,
-[251, 252] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[252, 258] (
- )
- CSSContextRegion--> S: 0-6,
-[258, 287] (list-style-position : outside)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-19/20, CSSContextRegion--> DECLARATION_SEPARATOR: 20-21/22, CSSContextRegion--> DECLARATION_VALUE_IDENT: 22-29,
-[287, 289] (
-)
- CSSContextRegion--> S: 0-2,
-[289, 290] (})
- CSSContextRegion--> RBRACE: 0-1,
-[290, 294] (
-
-)
- CSSContextRegion--> S: 0-4,
-[294, 297] (H1 )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-2/3,
-[297, 304] ({
- )
- CSSContextRegion--> LBRACE: 0-1/7,
-[304, 317] (color : white)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5/6, CSSContextRegion--> DECLARATION_SEPARATOR: 6-7/8, CSSContextRegion--> DECLARATION_VALUE_IDENT: 8-13,
-[317, 318] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[318, 324] (
- )
- CSSContextRegion--> S: 0-6,
-[324, 343] (text-align : center)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-10/11, CSSContextRegion--> DECLARATION_SEPARATOR: 11-12/13, CSSContextRegion--> DECLARATION_VALUE_IDENT: 13-19,
-[343, 344] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[344, 350] (
- )
- CSSContextRegion--> S: 0-6,
-[350, 377] (border-left-color : #996666)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-17/18, CSSContextRegion--> DECLARATION_SEPARATOR: 18-19/20, CSSContextRegion--> DECLARATION_VALUE_HASH: 20-27,
-[377, 378] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[378, 384] (
- )
- CSSContextRegion--> S: 0-6,
-[384, 401] (padding-top : 0px)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-11/12, CSSContextRegion--> DECLARATION_SEPARATOR: 12-13/14, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 14-17,
-[401, 402] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[402, 408] (
- )
- CSSContextRegion--> S: 0-6,
-[408, 427] (padding-right : 1cm)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-13/14, CSSContextRegion--> DECLARATION_SEPARATOR: 14-15/16, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 16-19,
-[427, 428] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[428, 434] (
- )
- CSSContextRegion--> S: 0-6,
-[434, 452] (padding-bottom : 2)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-14/15, CSSContextRegion--> DECLARATION_SEPARATOR: 15-16/17, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 17-18,
-[452, 453] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[453, 459] (
- )
- CSSContextRegion--> S: 0-6,
-[459, 477] (padding-left : 3em)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-12/13, CSSContextRegion--> DECLARATION_SEPARATOR: 13-14/15, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 15-18,
-[477, 478] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[478, 484] (
- )
- CSSContextRegion--> S: 0-6,
-[484, 504] (border-style : solid)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-12/13, CSSContextRegion--> DECLARATION_SEPARATOR: 13-14/15, CSSContextRegion--> DECLARATION_VALUE_IDENT: 15-20,
-[504, 505] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[505, 511] (
- )
- CSSContextRegion--> S: 0-6,
-[511, 535] (border-top-width : 4.5ex)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-16/17, CSSContextRegion--> DECLARATION_SEPARATOR: 17-18/19, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 19-24,
-[535, 536] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[536, 542] (
- )
- CSSContextRegion--> S: 0-6,
-[542, 566] (border-right-width : 5in)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-18/19, CSSContextRegion--> DECLARATION_SEPARATOR: 19-20/21, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 21-24,
-[566, 567] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[567, 573] (
- )
- CSSContextRegion--> S: 0-6,
-[573, 601] (border-bottom-width : 6.02mm)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-19/20, CSSContextRegion--> DECLARATION_SEPARATOR: 20-21/22, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 22-28,
-[601, 602] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[602, 608] (
- )
- CSSContextRegion--> S: 0-6,
-[608, 629] (border-left-width : 7)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-17/18, CSSContextRegion--> DECLARATION_SEPARATOR: 18-19/20, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 20-21,
-[629, 631] (
-)
- CSSContextRegion--> S: 0-2,
-[631, 632] (})
- CSSContextRegion--> RBRACE: 0-1,
-[632, 636] (
-
-)
- CSSContextRegion--> S: 0-4,
-[636, 646] (H1:before )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-2, CSSContextRegion--> SELECTOR_PSEUDO: 2-9/10,
-[646, 653] ({
- )
- CSSContextRegion--> LBRACE: 0-1/7,
-[653, 697] (content : "Chapter " counter( chapter ) ". ")
- CSSContextRegion--> DECLARATION_PROPERTY: 0-7/8, CSSContextRegion--> DECLARATION_SEPARATOR: 8-9/10, CSSContextRegion--> DECLARATION_VALUE_STRING: 10-20/21, CSSContextRegion--> DECLARATION_VALUE_FUNCTION: 21-29/30, CSSContextRegion--> DECLARATION_VALUE_IDENT: 30-37/38, CSSContextRegion--> DECLARATION_VALUE_PARENTHESIS_CLOSE: 38-39/40, CSSContextRegion--> DECLARATION_VALUE_STRING: 40-44,
-[697, 698] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[698, 704] (
- )
- CSSContextRegion--> S: 0-6,
-[704, 731] (counter-increment : chapter)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-17/18, CSSContextRegion--> DECLARATION_SEPARATOR: 18-19/20, CSSContextRegion--> DECLARATION_VALUE_IDENT: 20-27,
-[731, 732] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[732, 738] (
- )
- CSSContextRegion--> S: 0-6,
-[738, 761] (counter-reset : section)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-13/14, CSSContextRegion--> DECLARATION_SEPARATOR: 14-15/16, CSSContextRegion--> DECLARATION_VALUE_IDENT: 16-23,
-[761, 763] (
-)
- CSSContextRegion--> S: 0-2,
-[763, 764] (})
- CSSContextRegion--> RBRACE: 0-1,
-[764, 768] (
-
-)
- CSSContextRegion--> S: 0-4,
-[768, 779] (IMG:before )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-3, CSSContextRegion--> SELECTOR_PSEUDO: 3-10/11,
-[779, 780] ({)
- CSSContextRegion--> LBRACE: 0-1,
-[780, 799] (content : attr(alt))
- CSSContextRegion--> DECLARATION_PROPERTY: 0-7/8, CSSContextRegion--> DECLARATION_SEPARATOR: 8-9/10, CSSContextRegion--> DECLARATION_VALUE_FUNCTION: 10-15, CSSContextRegion--> DECLARATION_VALUE_IDENT: 15-18, CSSContextRegion--> DECLARATION_VALUE_PARENTHESIS_CLOSE: 18-19,
-[799, 800] (})
- CSSContextRegion--> RBRACE: 0-1,
-[800, 804] (
-
-)
- CSSContextRegion--> S: 0-4,
-[804, 815] (DIV.sample )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-3, CSSContextRegion--> SELECTOR_CLASS: 3-10/11,
-[815, 822] ({
- )
- CSSContextRegion--> LBRACE: 0-1/7,
-[822, 863] (font-family : "Robson Celtic", sans-serif)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-11/12, CSSContextRegion--> DECLARATION_SEPARATOR: 12-13/14, CSSContextRegion--> DECLARATION_VALUE_STRING: 14-29, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 29-30/31, CSSContextRegion--> DECLARATION_VALUE_IDENT: 31-41,
-[863, 864] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[864, 870] (
- )
- CSSContextRegion--> S: 0-6,
-[870, 889] (position : absolute)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-8/9, CSSContextRegion--> DECLARATION_SEPARATOR: 9-10/11, CSSContextRegion--> DECLARATION_VALUE_IDENT: 11-19,
-[889, 890] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[890, 896] (
- )
- CSSContextRegion--> S: 0-6,
-[896, 910] (left : 833.5pc)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-4/5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 7-14,
-[910, 911] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[911, 917] (
- )
- CSSContextRegion--> S: 0-6,
-[917, 926] (top : 90%)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-3/4, CSSContextRegion--> DECLARATION_SEPARATOR: 4-5/6, CSSContextRegion--> DECLARATION_VALUE_PERCENTAGE: 6-9,
-[926, 927] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[927, 933] (
- )
- CSSContextRegion--> S: 0-6,
-[933, 946] (width : 100pt)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5/6, CSSContextRegion--> DECLARATION_SEPARATOR: 6-7/8, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 8-13,
-[946, 947] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[947, 953] (
- )
- CSSContextRegion--> S: 0-6,
-[953, 971] (height : 110.777px)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-6/7, CSSContextRegion--> DECLARATION_SEPARATOR: 7-8/9, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 9-18,
-[971, 972] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[972, 978] (
- )
- CSSContextRegion--> S: 0-6,
-[978, 1015] (clip : rect( -5px, 80px, 130px, 0px ))
- CSSContextRegion--> DECLARATION_PROPERTY: 0-4/5, CSSContextRegion--> DECLARATION_SEPARATOR: 5-6/7, CSSContextRegion--> DECLARATION_VALUE_FUNCTION: 7-12/13, CSSContextRegion--> DECLARATION_VALUE_IDENT: 13-17, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 17-18/19, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 19-23, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 23-24/25, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 25-30, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 30-31/32, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 32-35/36, CSSContextRegion--> DECLARATION_VALUE_PARENTHESIS_CLOSE: 36-37,
-[1015, 1017] (
-)
- CSSContextRegion--> S: 0-2,
-[1017, 1018] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1018, 1022] (
-
-)
- CSSContextRegion--> S: 0-4,
-[1022, 1033] (@font-face )
- CSSContextRegion--> FONT_FACE: 0-10/11,
-[1033, 1040] ({
- )
- CSSContextRegion--> LBRACE: 0-1/7,
-[1040, 1065] (font-family : "Swiss 721")
- CSSContextRegion--> DECLARATION_PROPERTY: 0-11/12, CSSContextRegion--> DECLARATION_SEPARATOR: 12-13/14, CSSContextRegion--> DECLARATION_VALUE_STRING: 14-25,
-[1065, 1066] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[1066, 1072] (
- )
- CSSContextRegion--> S: 0-6,
-[1072, 1158] (src : url("swiss721t.pfr") format("intellifont"), local("Excelsior Cyrilllic Upright"))
- CSSContextRegion--> DECLARATION_PROPERTY: 0-3/4, CSSContextRegion--> DECLARATION_SEPARATOR: 4-5/6, CSSContextRegion--> DECLARATION_VALUE_URI: 6-26/27, CSSContextRegion--> DECLARATION_VALUE_FUNCTION: 27-34, CSSContextRegion--> DECLARATION_VALUE_STRING: 34-47, CSSContextRegion--> DECLARATION_VALUE_PARENTHESIS_CLOSE: 47-48, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 48-49/50, CSSContextRegion--> DECLARATION_VALUE_FUNCTION: 50-56, CSSContextRegion--> DECLARATION_VALUE_STRING: 56-85, CSSContextRegion--> DECLARATION_VALUE_PARENTHESIS_CLOSE: 85-86,
-[1158, 1159] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[1159, 1165] (
- )
- CSSContextRegion--> S: 0-6,
-[1165, 1203] (unicode-range : U+??, U+100-220, U+4??)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-13/14, CSSContextRegion--> DECLARATION_SEPARATOR: 14-15/16, CSSContextRegion--> DECLARATION_VALUE_UNICODE_RANGE: 16-20, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 20-21/22, CSSContextRegion--> DECLARATION_VALUE_UNICODE_RANGE: 22-31, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 31-32/33, CSSContextRegion--> DECLARATION_VALUE_UNICODE_RANGE: 33-38,
-[1203, 1204] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[1204, 1210] (
- )
- CSSContextRegion--> S: 0-6,
-[1210, 1247] (font-weight : 100, 200, 300, 400, 500)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-11/12, CSSContextRegion--> DECLARATION_SEPARATOR: 12-13/14, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 14-17, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 17-18/19, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 19-22, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 22-23/24, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 24-27, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 27-28/29, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 29-32, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 32-33/34, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 34-37,
-[1247, 1249] (
-)
- CSSContextRegion--> S: 0-2,
-[1249, 1250] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1250, 1254] (
-
-)
- CSSContextRegion--> S: 0-4,
-[1254, 1266] (@page :left )
- CSSContextRegion--> PAGE: 0-5/6, CSSContextRegion--> CSS_PAGE_SELECTOR: 6-11/12,
-[1266, 1267] ({)
- CSSContextRegion--> LBRACE: 0-1,
-[1267, 1284] (margin-left : 4cm)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-11/12, CSSContextRegion--> DECLARATION_SEPARATOR: 12-13/14, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 14-17,
-[1284, 1285] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1285, 1289] (
-
-)
- CSSContextRegion--> S: 0-4,
-[1289, 1302] (@media aural )
- CSSContextRegion--> MEDIA: 0-6/7, CSSContextRegion--> MEDIUM: 7-12/13,
-[1302, 1309] ({
- )
- CSSContextRegion--> LBRACE: 0-1/7,
-[1309, 1332] (H1, H2, H3, H4, H5, H6 )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-2, CSSContextRegion--> SELECTOR_SEPARATOR: 2-3/4, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 4-6, CSSContextRegion--> SELECTOR_SEPARATOR: 6-7/8, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 8-10, CSSContextRegion--> SELECTOR_SEPARATOR: 10-11/12, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 12-14, CSSContextRegion--> SELECTOR_SEPARATOR: 14-15/16, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 16-18, CSSContextRegion--> SELECTOR_SEPARATOR: 18-19/20, CSSContextRegion--> SELECTOR_ELEMENT_NAME: 20-22/23,
-[1332, 1343] ({
- )
- CSSContextRegion--> LBRACE: 0-1/11,
-[1343, 1369] (voice-family : paul, child)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-12/13, CSSContextRegion--> DECLARATION_SEPARATOR: 13-14/15, CSSContextRegion--> DECLARATION_VALUE_IDENT: 15-19, CSSContextRegion--> DECLARATION_VALUE_OPERATOR: 19-20/21, CSSContextRegion--> DECLARATION_VALUE_IDENT: 21-26,
-[1369, 1370] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[1370, 1380] (
- )
- CSSContextRegion--> S: 0-10,
-[1380, 1391] (stress : 20)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-6/7, CSSContextRegion--> DECLARATION_SEPARATOR: 7-8/9, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 9-11,
-[1391, 1392] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[1392, 1402] (
- )
- CSSContextRegion--> S: 0-10,
-[1402, 1415] (richness : 90)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-8/9, CSSContextRegion--> DECLARATION_SEPARATOR: 9-10/11, CSSContextRegion--> DECLARATION_VALUE_NUMBER: 11-13,
-[1415, 1416] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[1416, 1426] (
- )
- CSSContextRegion--> S: 0-10,
-[1426, 1453] (cue-before : url("ping.au"))
- CSSContextRegion--> DECLARATION_PROPERTY: 0-10/11, CSSContextRegion--> DECLARATION_SEPARATOR: 11-12/13, CSSContextRegion--> DECLARATION_VALUE_URI: 13-27,
-[1453, 1459] (
- )
- CSSContextRegion--> S: 0-6,
-[1459, 1460] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1460, 1466] (
- )
- CSSContextRegion--> S: 0-6,
-[1466, 1474] (P.heidi )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-1, CSSContextRegion--> SELECTOR_CLASS: 1-7/8,
-[1474, 1485] ({
- )
- CSSContextRegion--> LBRACE: 0-1/11,
-[1485, 1506] (azimuth : center-left)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-7/8, CSSContextRegion--> DECLARATION_SEPARATOR: 8-9/10, CSSContextRegion--> DECLARATION_VALUE_IDENT: 10-21,
-[1506, 1507] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[1507, 1517] (
- )
- CSSContextRegion--> S: 0-10,
-[1517, 1536] (elevation : 12.3deg)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-9/10, CSSContextRegion--> DECLARATION_SEPARATOR: 10-11/12, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 12-19,
-[1536, 1537] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[1537, 1547] (
- )
- CSSContextRegion--> S: 0-10,
-[1547, 1564] (pause : 30ms 1.6s)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5/6, CSSContextRegion--> DECLARATION_SEPARATOR: 6-7/8, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 8-12/13, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 13-17,
-[1564, 1570] (
- )
- CSSContextRegion--> S: 0-6,
-[1570, 1571] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1571, 1577] (
- )
- CSSContextRegion--> S: 0-6,
-[1577, 1585] (P.peter )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-1, CSSContextRegion--> SELECTOR_CLASS: 1-7/8,
-[1585, 1596] ({
- )
- CSSContextRegion--> LBRACE: 0-1/11,
-[1596, 1611] (azimuth : right)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-7/8, CSSContextRegion--> DECLARATION_SEPARATOR: 8-9/10, CSSContextRegion--> DECLARATION_VALUE_IDENT: 10-15,
-[1611, 1612] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[1612, 1622] (
- )
- CSSContextRegion--> S: 0-10,
-[1622, 1642] (elevation : -0.36rad)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-9/10, CSSContextRegion--> DECLARATION_SEPARATOR: 10-11/12, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 12-20,
-[1642, 1643] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[1643, 1653] (
- )
- CSSContextRegion--> S: 0-10,
-[1653, 1666] (pitch : 210Hz)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5/6, CSSContextRegion--> DECLARATION_SEPARATOR: 6-7/8, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 8-13,
-[1666, 1672] (
- )
- CSSContextRegion--> S: 0-6,
-[1672, 1673] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1673, 1679] (
- )
- CSSContextRegion--> S: 0-6,
-[1679, 1686] (P.goat )
- CSSContextRegion--> SELECTOR_ELEMENT_NAME: 0-1, CSSContextRegion--> SELECTOR_CLASS: 1-6/7,
-[1686, 1697] ({
- )
- CSSContextRegion--> LBRACE: 0-1/11,
-[1697, 1712] (volume : x-soft)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-6/7, CSSContextRegion--> DECLARATION_SEPARATOR: 7-8/9, CSSContextRegion--> DECLARATION_VALUE_IDENT: 9-15,
-[1712, 1713] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[1713, 1723] (
- )
- CSSContextRegion--> S: 0-10,
-[1723, 1741] (elevation : 66grad)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-9/10, CSSContextRegion--> DECLARATION_SEPARATOR: 10-11/12, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 12-18,
-[1741, 1742] (;)
- CSSContextRegion--> DECLARATION_DELIMITER: 0-1,
-[1742, 1752] (
- )
- CSSContextRegion--> S: 0-10,
-[1752, 1767] (pitch : 0.17kHz)
- CSSContextRegion--> DECLARATION_PROPERTY: 0-5/6, CSSContextRegion--> DECLARATION_SEPARATOR: 6-7/8, CSSContextRegion--> DECLARATION_VALUE_DIMENSION: 8-15,
-[1767, 1773] (
- )
- CSSContextRegion--> S: 0-6,
-[1773, 1774] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1774, 1776] (
-)
- CSSContextRegion--> S: 0-2,
-[1776, 1777] (})
- CSSContextRegion--> RBRACE: 0-1,
-[1777, 1781] (
-
-)
- CSSContextRegion--> S: 0-4,
-
--------
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSTextParserTest-sample01.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSTextParserTest-sample01.css
deleted file mode 100644
index 403a435..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSTextParserTest-sample01.css
+++ /dev/null
@@ -1,29 +0,0 @@
-[H1] SELECTOR_ELEMENT_NAME - 0, 2
-[ ] S - 2, 1
-[{] LBRACE - 3, 1
-[
-
- ] S - 4, 5
-[color] DECLARATION_PROPERTY - 9, 5
-[:] DECLARATION_SEPARATOR - 14, 1
-[ ] S - 15, 1
-[white] DECLARATION_VALUE_IDENT - 16, 5
-[
- ] S - 21, 3
-[;] DECLARATION_DELIMITER - 24, 1
-[
-
- ] S - 25, 5
-[background-color] DECLARATION_PROPERTY - 30, 16
-[ ] S - 46, 1
-[:] DECLARATION_SEPARATOR - 47, 1
-[ ] S - 48, 1
-[black] DECLARATION_VALUE_IDENT - 49, 5
-[
-
-] S - 54, 5
-[}] RBRACE - 59, 1
-[
-] S - 60, 2
-
--------
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSTextParserTest-sample02.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSTextParserTest-sample02.css
deleted file mode 100644
index 34f6047..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSTextParserTest-sample02.css
+++ /dev/null
@@ -1,73 +0,0 @@
-[@import] IMPORT - 0, 7
-[ ] S - 7, 1
-[url("hoge.css")] URI - 8, 15
-[;] DELIMITER - 23, 1
-[
-] S - 24, 2
-[@import] IMPORT - 26, 7
-[ ] S - 33, 1
-[/* comment */] COMMENT - 34, 13
-[ ] S - 47, 1
-[url(hoge.css)] URI - 48, 13
-[;] DELIMITER - 61, 1
-[
-] S - 62, 2
-[@import] IMPORT - 64, 7
-[ ] S - 71, 1
-["hoge.css"] STRING - 72, 10
-[ ] S - 82, 1
-[/* comment */] COMMENT - 83, 13
-[;] DELIMITER - 96, 1
-[
-] S - 97, 2
-[@IMPORT] IMPORT - 99, 7
-[ ] S - 106, 1
-['hoge.css'] STRING - 107, 10
-[ ] S - 117, 1
-[,] undefined - 118, 1
-[media1] MEDIUM - 119, 6
-[,] MEDIA_SEPARATOR - 125, 1
-[media2] MEDIUM - 126, 6
-[,] MEDIA_SEPARATOR - 132, 1
-[,] undefined - 133, 1
-[media3] MEDIUM - 134, 6
-[ ] S - 140, 1
-[m] undefined - 141, 1
-[e] undefined - 142, 1
-[d] undefined - 143, 1
-[i] undefined - 144, 1
-[a] undefined - 145, 1
-[4] undefined - 146, 1
-[,] MEDIA_SEPARATOR - 147, 1
-[media5] MEDIUM - 148, 6
-[ ] S - 154, 1
-[@import] IMPORT - 155, 7
-[ ] S - 162, 1
-[m] undefined - 163, 1
-[e] undefined - 164, 1
-[d] undefined - 165, 1
-[i] undefined - 166, 1
-[a] undefined - 167, 1
-[6] undefined - 168, 1
-[;] DELIMITER - 169, 1
-[
-
-] S - 170, 4
-[<!--] CDO - 174, 4
-[ ] S - 178, 1
-[/* hogehoge */] COMMENT - 179, 14
-[
-
-] S - 193, 4
-[-->] CDC - 197, 3
-[
-
-] S - 200, 4
-[/* comment 2 */] COMMENT - 204, 15
-[
-] S - 219, 2
-[kuso] SELECTOR_ELEMENT_NAME - 221, 4
-[
-] S - 225, 2
-
--------
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSTextParserTest-sample03.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSTextParserTest-sample03.css
deleted file mode 100644
index 3a3e11c..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSTextParserTest-sample03.css
+++ /dev/null
@@ -1,124 +0,0 @@
-[@import] IMPORT - 0, 7
-[ ] S - 7, 1
-[url("../sample2.css")] URI - 8, 21
-[;] DELIMITER - 29, 1
-[
-
-] S - 30, 4
-[/* Sample Styles */] COMMENT - 34, 19
-[
-
-] S - 53, 4
-[BODY] SELECTOR_ELEMENT_NAME - 57, 4
-[ ] S - 61, 1
-[{] LBRACE - 62, 1
-[
- ] S - 63, 3
-[color] DECLARATION_PROPERTY - 66, 5
-[ ] S - 71, 1
-[:] DECLARATION_SEPARATOR - 72, 1
-[ ] S - 73, 1
-[black] DECLARATION_VALUE_IDENT - 74, 5
-[;] DECLARATION_DELIMITER - 79, 1
-[
- ] S - 80, 3
-[background-color] DECLARATION_PROPERTY - 83, 16
-[ ] S - 99, 1
-[:] DECLARATION_SEPARATOR - 100, 1
-[ ] S - 101, 1
-[rgb(] DECLARATION_VALUE_FUNCTION - 102, 4
-[181] DECLARATION_VALUE_NUMBER - 106, 3
-[,] DECLARATION_VALUE_OPERATOR - 109, 1
-[ ] DECLARATION_VALUE_S - 110, 1
-[253] DECLARATION_VALUE_NUMBER - 111, 3
-[,] DECLARATION_VALUE_OPERATOR - 114, 1
-[ ] DECLARATION_VALUE_S - 115, 1
-[211] DECLARATION_VALUE_NUMBER - 116, 3
-[)] DECLARATION_VALUE_PARENTHESIS_CLOSE - 119, 1
-[;] DECLARATION_DELIMITER - 120, 1
-[
- ] S - 121, 3
-[text-align] DECLARATION_PROPERTY - 124, 10
-[ ] S - 134, 1
-[:] DECLARATION_SEPARATOR - 135, 1
-[ ] S - 136, 1
-[center] DECLARATION_VALUE_IDENT - 137, 6
-[;] DECLARATION_DELIMITER - 143, 1
-[
- ] S - 144, 3
-[font-family] DECLARATION_PROPERTY - 147, 11
-[ ] S - 158, 1
-[:] DECLARATION_SEPARATOR - 159, 1
-[ ] S - 160, 1
-["Heisei Mincho W3"] DECLARATION_VALUE_STRING - 161, 18
-[,] DECLARATION_VALUE_OPERATOR - 179, 1
-[ ] DECLARATION_VALUE_S - 180, 1
-[serif] DECLARATION_VALUE_IDENT - 181, 5
-[
-] S - 186, 2
-[}] RBRACE - 188, 1
-[
-
-] S - 189, 4
-[@page] PAGE - 193, 5
-[ ] S - 198, 1
-[:left] CSS_PAGE_SELECTOR - 199, 5
-[ ] S - 204, 1
-[{] LBRACE - 205, 1
-[ ] S - 206, 1
-[margin-left] DECLARATION_PROPERTY - 207, 11
-[ ] S - 218, 1
-[:] DECLARATION_SEPARATOR - 219, 1
-[ ] S - 220, 1
-[4cm] DECLARATION_VALUE_DIMENSION - 221, 3
-[ ] S - 224, 1
-[}] RBRACE - 225, 1
-[
-
-] S - 226, 4
-[@media] MEDIA - 230, 6
-[ ] S - 236, 1
-[aural] MEDIUM - 237, 5
-[ ] S - 242, 1
-[{] LBRACE - 243, 1
-[
- ] S - 244, 3
-[P] SELECTOR_ELEMENT_NAME - 247, 1
-[.heidi] SELECTOR_CLASS - 248, 6
-[ ] S - 254, 1
-[{] LBRACE - 255, 1
-[
- ] S - 256, 4
-[azimuth] DECLARATION_PROPERTY - 260, 7
-[ ] S - 267, 1
-[:] DECLARATION_SEPARATOR - 268, 1
-[ ] S - 269, 1
-[center-left] DECLARATION_VALUE_IDENT - 270, 11
-[;] DECLARATION_DELIMITER - 281, 1
-[
- ] S - 282, 4
-[elevation] DECLARATION_PROPERTY - 286, 9
-[ ] S - 295, 1
-[:] DECLARATION_SEPARATOR - 296, 1
-[ ] S - 297, 1
-[12.3deg] DECLARATION_VALUE_DIMENSION - 298, 7
-[;] DECLARATION_DELIMITER - 305, 1
-[
- ] S - 306, 4
-[pause] DECLARATION_PROPERTY - 310, 5
-[ ] S - 315, 1
-[:] DECLARATION_SEPARATOR - 316, 1
-[ ] S - 317, 1
-[30ms] DECLARATION_VALUE_DIMENSION - 318, 4
-[ ] DECLARATION_VALUE_S - 322, 1
-[1.6s] DECLARATION_VALUE_DIMENSION - 323, 4
-[
- ] S - 327, 3
-[}] RBRACE - 330, 1
-[
-] S - 331, 2
-[}] RBRACE - 333, 1
-[
-] S - 334, 2
-
--------
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSTextParserTest-sample04.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSTextParserTest-sample04.css
deleted file mode 100644
index 5bb3f2b..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSTextParserTest-sample04.css
+++ /dev/null
@@ -1,706 +0,0 @@
-[@charset] CHARSET - 0, 8
-[ ] S - 8, 1
-["ISO-8859-1"] STRING - 9, 12
-[;] DELIMITER - 21, 1
-[
-
-] S - 22, 4
-[@import] IMPORT - 26, 7
-[ ] S - 33, 1
-[url("hoge.css")] URI - 34, 15
-[;] DELIMITER - 49, 1
-[
-] S - 50, 2
-[@import] IMPORT - 52, 7
-[ ] S - 59, 1
-[/* comment */] COMMENT - 60, 13
-[ ] S - 73, 1
-[url(hoge.css)] URI - 74, 13
-[;] DELIMITER - 87, 1
-[
-] S - 88, 2
-[@import] IMPORT - 90, 7
-[ ] S - 97, 1
-["hoge.css"] STRING - 98, 10
-[ ] S - 108, 1
-[/* comment */] COMMENT - 109, 13
-[;] DELIMITER - 122, 1
-[
-] S - 123, 2
-[@IMPORT] IMPORT - 125, 7
-[ ] S - 132, 1
-['hoge.css'] STRING - 133, 10
-[ ] S - 143, 1
-[media1] MEDIUM - 144, 6
-[,] MEDIA_SEPARATOR - 150, 1
-[media2] MEDIUM - 151, 6
-[ ] S - 157, 1
-[,] MEDIA_SEPARATOR - 158, 1
-[ ] S - 159, 1
-[media3] MEDIUM - 160, 6
-[;] DELIMITER - 166, 1
-[
-
-] S - 167, 4
-[@media] MEDIA - 171, 6
-[ ] S - 177, 1
-[print] MEDIUM - 178, 5
-[ ] S - 183, 1
-[{] LBRACE - 184, 1
-[
-
-] S - 185, 4
-[}] RBRACE - 189, 1
-[
-
-] S - 190, 4
-[@page] PAGE - 194, 5
-[ ] S - 199, 1
-[:left] CSS_PAGE_SELECTOR - 200, 5
-[ ] S - 205, 1
-[{] LBRACE - 206, 1
-[
-
-] S - 207, 4
-[}] RBRACE - 211, 1
-[
-
-] S - 212, 4
-[h1] SELECTOR_ELEMENT_NAME - 216, 2
-[,] SELECTOR_SEPARATOR - 218, 1
-[ ] S - 219, 1
-[h2] SELECTOR_ELEMENT_NAME - 220, 2
-[,] SELECTOR_SEPARATOR - 222, 1
-[ ] S - 223, 1
-[h3] SELECTOR_ELEMENT_NAME - 224, 2
-[ ] S - 226, 1
-[{] LBRACE - 227, 1
-[ ] S - 228, 2
-[font-family] DECLARATION_PROPERTY - 230, 11
-[:] DECLARATION_SEPARATOR - 241, 1
-[ ] S - 242, 1
-[sans-serif] DECLARATION_VALUE_IDENT - 243, 10
-[ ] S - 253, 2
-[}] RBRACE - 255, 1
-[
-] S - 256, 2
-[h1] SELECTOR_ELEMENT_NAME - 258, 2
-[ ] SELECTOR_COMBINATOR - 260, 1
-[em] SELECTOR_ELEMENT_NAME - 261, 2
-[ ] S - 263, 1
-[{] LBRACE - 264, 1
-[ ] S - 265, 2
-[color] DECLARATION_PROPERTY - 267, 5
-[:] DECLARATION_SEPARATOR - 272, 1
-[ ] S - 273, 1
-[blue] DECLARATION_VALUE_IDENT - 274, 4
-[ ] S - 278, 2
-[}] RBRACE - 280, 1
-[
-] S - 281, 2
-[div] SELECTOR_ELEMENT_NAME - 283, 3
-[ ] SELECTOR_COMBINATOR - 286, 1
-[p] SELECTOR_ELEMENT_NAME - 287, 1
-[ ] SELECTOR_COMBINATOR - 288, 1
-[*] SELECTOR_UNIVERSAL - 289, 1
-[[] SELECTOR_ATTRIBUTE_START - 290, 1
-[href] SELECTOR_ATTRIBUTE_NAME - 291, 4
-[]] SELECTOR_ATTRIBUTE_END - 295, 1
-[ ] S - 296, 1
-[{] LBRACE - 297, 1
-[ ] S - 298, 2
-[color] DECLARATION_PROPERTY - 300, 5
-[:] DECLARATION_SEPARATOR - 305, 1
-[ ] S - 306, 1
-[blue] DECLARATION_VALUE_IDENT - 307, 4
-[ ] S - 311, 2
-[}] RBRACE - 313, 1
-[
-] S - 314, 2
-[body] SELECTOR_ELEMENT_NAME - 316, 4
-[ ] S - 320, 1
-[>] SELECTOR_COMBINATOR - 321, 1
-[ ] S - 322, 1
-[P] SELECTOR_ELEMENT_NAME - 323, 1
-[ ] S - 324, 1
-[{] LBRACE - 325, 1
-[ ] S - 326, 2
-[line-height] DECLARATION_PROPERTY - 328, 11
-[:] DECLARATION_SEPARATOR - 339, 1
-[ ] S - 340, 1
-[1.3] DECLARATION_VALUE_NUMBER - 341, 3
-[ ] S - 344, 2
-[}] RBRACE - 346, 1
-[
-] S - 347, 2
-[div] SELECTOR_ELEMENT_NAME - 349, 3
-[ ] SELECTOR_COMBINATOR - 352, 1
-[ol] SELECTOR_ELEMENT_NAME - 353, 2
-[>] SELECTOR_COMBINATOR - 355, 1
-[li] SELECTOR_ELEMENT_NAME - 356, 2
-[ ] SELECTOR_COMBINATOR - 358, 1
-[p] SELECTOR_ELEMENT_NAME - 359, 1
-[ ] S - 360, 1
-[{] LBRACE - 361, 1
-[ ] S - 362, 1
-[}] RBRACE - 363, 1
-[
-] S - 364, 2
-[math] SELECTOR_ELEMENT_NAME - 366, 4
-[ ] S - 370, 1
-[+] SELECTOR_COMBINATOR - 371, 1
-[ ] S - 372, 1
-[p] SELECTOR_ELEMENT_NAME - 373, 1
-[ ] S - 374, 1
-[{] LBRACE - 375, 1
-[ ] S - 376, 2
-[text-indent] DECLARATION_PROPERTY - 378, 11
-[:] DECLARATION_SEPARATOR - 389, 1
-[ ] S - 390, 1
-[0] DECLARATION_VALUE_NUMBER - 391, 1
-[ ] S - 392, 2
-[}] RBRACE - 394, 1
-[
-] S - 395, 2
-[h1] SELECTOR_ELEMENT_NAME - 397, 2
-[.opener] SELECTOR_CLASS - 399, 7
-[ ] S - 406, 1
-[+] SELECTOR_COMBINATOR - 407, 1
-[ ] S - 408, 1
-[h2] SELECTOR_ELEMENT_NAME - 409, 2
-[ ] S - 411, 1
-[{] LBRACE - 412, 1
-[ ] S - 413, 2
-[margin-top] DECLARATION_PROPERTY - 415, 10
-[:] DECLARATION_SEPARATOR - 425, 1
-[ ] S - 426, 1
-[-5mm] DECLARATION_VALUE_IDENT - 427, 4
-[ ] S - 431, 2
-[}] RBRACE - 433, 1
-[
-] S - 434, 2
-[h1] SELECTOR_ELEMENT_NAME - 436, 2
-[[] SELECTOR_ATTRIBUTE_START - 438, 1
-[title] SELECTOR_ATTRIBUTE_NAME - 439, 5
-[]] SELECTOR_ATTRIBUTE_END - 444, 1
-[ ] S - 445, 1
-[{] LBRACE - 446, 1
-[ ] S - 447, 2
-[color] DECLARATION_PROPERTY - 449, 5
-[:] DECLARATION_SEPARATOR - 454, 1
-[ ] S - 455, 1
-[blue] DECLARATION_VALUE_IDENT - 456, 4
-[;] DECLARATION_DELIMITER - 460, 1
-[ ] S - 461, 2
-[}] RBRACE - 463, 1
-[
-] S - 464, 2
-[span] SELECTOR_ELEMENT_NAME - 466, 4
-[[] SELECTOR_ATTRIBUTE_START - 470, 1
-[class] SELECTOR_ATTRIBUTE_NAME - 471, 5
-[=] SELECTOR_ATTRIBUTE_OPERATOR - 476, 1
-[example] SELECTOR_ATTRIBUTE_VALUE - 477, 7
-[]] SELECTOR_ATTRIBUTE_END - 484, 1
-[ ] S - 485, 1
-[{] LBRACE - 486, 1
-[ ] S - 487, 2
-[color] DECLARATION_PROPERTY - 489, 5
-[:] DECLARATION_SEPARATOR - 494, 1
-[ ] S - 495, 1
-[blue] DECLARATION_VALUE_IDENT - 496, 4
-[;] DECLARATION_DELIMITER - 500, 1
-[ ] S - 501, 2
-[}] RBRACE - 503, 1
-[
-] S - 504, 2
-[span] SELECTOR_ELEMENT_NAME - 506, 4
-[[] SELECTOR_ATTRIBUTE_START - 510, 1
-[hello] SELECTOR_ATTRIBUTE_NAME - 511, 5
-[=] SELECTOR_ATTRIBUTE_OPERATOR - 516, 1
-["Cleveland"] SELECTOR_ATTRIBUTE_VALUE - 517, 11
-[]] SELECTOR_ATTRIBUTE_END - 528, 1
-[[] SELECTOR_ATTRIBUTE_START - 529, 1
-[goodbye] SELECTOR_ATTRIBUTE_NAME - 530, 7
-[=] SELECTOR_ATTRIBUTE_OPERATOR - 537, 1
-["Columbus"] SELECTOR_ATTRIBUTE_VALUE - 538, 10
-[]] SELECTOR_ATTRIBUTE_END - 548, 1
-[ ] S - 549, 1
-[{] LBRACE - 550, 1
-[ ] S - 551, 2
-[color] DECLARATION_PROPERTY - 553, 5
-[:] DECLARATION_SEPARATOR - 558, 1
-[ ] S - 559, 1
-[blue] DECLARATION_VALUE_IDENT - 560, 4
-[;] DECLARATION_DELIMITER - 564, 1
-[ ] S - 565, 2
-[}] RBRACE - 567, 1
-[
-] S - 568, 2
-[a] SELECTOR_ELEMENT_NAME - 570, 1
-[[] SELECTOR_ATTRIBUTE_START - 571, 1
-[rel] SELECTOR_ATTRIBUTE_NAME - 572, 3
-[~=] SELECTOR_ATTRIBUTE_OPERATOR - 575, 2
-["copyright"] SELECTOR_ATTRIBUTE_VALUE - 577, 11
-[]] SELECTOR_ATTRIBUTE_END - 588, 1
-[ ] S - 589, 1
-[{] LBRACE - 590, 1
-[ ] S - 591, 2
-[color] DECLARATION_PROPERTY - 593, 5
-[:] DECLARATION_SEPARATOR - 598, 1
-[ ] S - 599, 1
-[blue] DECLARATION_VALUE_IDENT - 600, 4
-[ ] S - 604, 2
-[}] RBRACE - 606, 1
-[
-] S - 607, 2
-[a] SELECTOR_ELEMENT_NAME - 609, 1
-[[] SELECTOR_ATTRIBUTE_START - 610, 1
-[href] SELECTOR_ATTRIBUTE_NAME - 611, 4
-[=] SELECTOR_ATTRIBUTE_OPERATOR - 615, 1
-["http://www.w3.org/"] SELECTOR_ATTRIBUTE_VALUE - 616, 20
-[]] SELECTOR_ATTRIBUTE_END - 636, 1
-[ ] S - 637, 1
-[{] LBRACE - 638, 1
-[ ] S - 639, 2
-[color] DECLARATION_PROPERTY - 641, 5
-[:] DECLARATION_SEPARATOR - 646, 1
-[ ] S - 647, 1
-[blue] DECLARATION_VALUE_IDENT - 648, 4
-[ ] S - 652, 2
-[}] RBRACE - 654, 1
-[
-] S - 655, 2
-[*] SELECTOR_UNIVERSAL - 657, 1
-[[] SELECTOR_ATTRIBUTE_START - 658, 1
-[lang] SELECTOR_ATTRIBUTE_NAME - 659, 4
-[=] SELECTOR_ATTRIBUTE_OPERATOR - 663, 1
-[fr] SELECTOR_ATTRIBUTE_VALUE - 664, 2
-[]] SELECTOR_ATTRIBUTE_END - 666, 1
-[ ] S - 667, 1
-[{] LBRACE - 668, 1
-[ ] S - 669, 2
-[display] DECLARATION_PROPERTY - 671, 7
-[ ] S - 678, 1
-[:] DECLARATION_SEPARATOR - 679, 1
-[ ] S - 680, 1
-[none] DECLARATION_VALUE_IDENT - 681, 4
-[ ] S - 685, 2
-[}] RBRACE - 687, 1
-[
-] S - 688, 2
-[*] SELECTOR_UNIVERSAL - 690, 1
-[[] SELECTOR_ATTRIBUTE_START - 691, 1
-[lang] SELECTOR_ATTRIBUTE_NAME - 692, 4
-[|=] SELECTOR_ATTRIBUTE_OPERATOR - 696, 2
-["en"] SELECTOR_ATTRIBUTE_VALUE - 698, 4
-[]] SELECTOR_ATTRIBUTE_END - 702, 1
-[ ] S - 703, 1
-[{] LBRACE - 704, 1
-[ ] S - 705, 2
-[color] DECLARATION_PROPERTY - 707, 5
-[ ] S - 712, 1
-[:] DECLARATION_SEPARATOR - 713, 1
-[ ] S - 714, 1
-[red] DECLARATION_VALUE_IDENT - 715, 3
-[ ] S - 718, 2
-[}] RBRACE - 720, 1
-[
-] S - 721, 2
-[DIALOGUE] SELECTOR_ELEMENT_NAME - 723, 8
-[[] SELECTOR_ATTRIBUTE_START - 731, 1
-[character] SELECTOR_ATTRIBUTE_NAME - 732, 9
-[=] SELECTOR_ATTRIBUTE_OPERATOR - 741, 1
-[romeo] SELECTOR_ATTRIBUTE_VALUE - 742, 5
-[]] SELECTOR_ATTRIBUTE_END - 747, 1
-[
-] S - 748, 2
-[{] LBRACE - 750, 1
-[ ] S - 751, 2
-[voice-family] DECLARATION_PROPERTY - 753, 12
-[:] DECLARATION_SEPARATOR - 765, 1
-[ ] S - 766, 1
-["Lawrence Olivier"] DECLARATION_VALUE_STRING - 767, 18
-[,] DECLARATION_VALUE_OPERATOR - 785, 1
-[ ] DECLARATION_VALUE_S - 786, 1
-[charles] DECLARATION_VALUE_IDENT - 787, 7
-[,] DECLARATION_VALUE_OPERATOR - 794, 1
-[ ] DECLARATION_VALUE_S - 795, 1
-[male] DECLARATION_VALUE_IDENT - 796, 4
-[ ] S - 800, 2
-[}] RBRACE - 802, 1
-[
-] S - 803, 2
-[DIALOGUE] SELECTOR_ELEMENT_NAME - 805, 8
-[[] SELECTOR_ATTRIBUTE_START - 813, 1
-[ ] S - 814, 1
-[character] SELECTOR_ATTRIBUTE_NAME - 815, 9
-[ ] S - 824, 1
-[=] SELECTOR_ATTRIBUTE_OPERATOR - 825, 1
-[ ] S - 826, 1
-[juliet] SELECTOR_ATTRIBUTE_VALUE - 827, 6
-[ ] S - 833, 1
-[]] SELECTOR_ATTRIBUTE_END - 834, 1
-[
-] S - 835, 2
-[{] LBRACE - 837, 1
-[ ] S - 838, 2
-[voice-family] DECLARATION_PROPERTY - 840, 12
-[:] DECLARATION_SEPARATOR - 852, 1
-[ ] S - 853, 1
-["Vivien Leigh"] DECLARATION_VALUE_STRING - 854, 14
-[,] DECLARATION_VALUE_OPERATOR - 868, 1
-[ ] DECLARATION_VALUE_S - 869, 1
-[victoria] DECLARATION_VALUE_IDENT - 870, 8
-[,] DECLARATION_VALUE_OPERATOR - 878, 1
-[ ] DECLARATION_VALUE_S - 879, 1
-[female] DECLARATION_VALUE_IDENT - 880, 6
-[ ] S - 886, 2
-[}] RBRACE - 888, 1
-[
-] S - 889, 2
-[*] SELECTOR_UNIVERSAL - 891, 1
-[.pastoral] SELECTOR_CLASS - 892, 9
-[ ] S - 901, 1
-[{] LBRACE - 902, 1
-[ ] S - 903, 2
-[color] DECLARATION_PROPERTY - 905, 5
-[:] DECLARATION_SEPARATOR - 910, 1
-[ ] S - 911, 1
-[green] DECLARATION_VALUE_IDENT - 912, 5
-[ ] S - 917, 2
-[}] RBRACE - 919, 1
-[
-] S - 920, 2
-[.pastoral] SELECTOR_CLASS - 922, 9
-[ ] S - 931, 1
-[{] LBRACE - 932, 1
-[ ] S - 933, 2
-[color] DECLARATION_PROPERTY - 935, 5
-[:] DECLARATION_SEPARATOR - 940, 1
-[ ] S - 941, 1
-[green] DECLARATION_VALUE_IDENT - 942, 5
-[ ] S - 947, 2
-[}] RBRACE - 949, 1
-[
-] S - 950, 2
-[H1] SELECTOR_ELEMENT_NAME - 952, 2
-[.pastoral] SELECTOR_CLASS - 954, 9
-[ ] S - 963, 1
-[{] LBRACE - 964, 1
-[ ] S - 965, 2
-[color] DECLARATION_PROPERTY - 967, 5
-[:] DECLARATION_SEPARATOR - 972, 1
-[ ] S - 973, 1
-[green] DECLARATION_VALUE_IDENT - 974, 5
-[ ] S - 979, 2
-[}] RBRACE - 981, 1
-[
-] S - 982, 2
-[p] SELECTOR_ELEMENT_NAME - 984, 1
-[.pastoral] SELECTOR_CLASS - 985, 9
-[.marine] SELECTOR_CLASS - 994, 7
-[ ] S - 1001, 1
-[{] LBRACE - 1002, 1
-[ ] S - 1003, 2
-[color] DECLARATION_PROPERTY - 1005, 5
-[:] DECLARATION_SEPARATOR - 1010, 1
-[ ] S - 1011, 1
-[green] DECLARATION_VALUE_IDENT - 1012, 5
-[ ] S - 1017, 2
-[}] RBRACE - 1019, 1
-[
-] S - 1020, 2
-[h1] SELECTOR_ELEMENT_NAME - 1022, 2
-[#chapter1] SELECTOR_ID - 1024, 9
-[ ] S - 1033, 1
-[{] LBRACE - 1034, 1
-[ ] S - 1035, 2
-[text-align] DECLARATION_PROPERTY - 1037, 10
-[:] DECLARATION_SEPARATOR - 1047, 1
-[ ] S - 1048, 1
-[center] DECLARATION_VALUE_IDENT - 1049, 6
-[ ] S - 1055, 2
-[}] RBRACE - 1057, 1
-[
-] S - 1058, 2
-[div] SELECTOR_ELEMENT_NAME - 1060, 3
-[ ] S - 1063, 1
-[>] SELECTOR_COMBINATOR - 1064, 1
-[ ] S - 1065, 1
-[p] SELECTOR_ELEMENT_NAME - 1066, 1
-[:first-child] SELECTOR_PSEUDO - 1067, 12
-[ ] S - 1079, 1
-[{] LBRACE - 1080, 1
-[ ] S - 1081, 2
-[text-indent] DECLARATION_PROPERTY - 1083, 11
-[:] DECLARATION_SEPARATOR - 1094, 1
-[ ] S - 1095, 1
-[0] DECLARATION_VALUE_NUMBER - 1096, 1
-[ ] S - 1097, 2
-[}] RBRACE - 1099, 1
-[
-] S - 1100, 2
-[p] SELECTOR_ELEMENT_NAME - 1102, 1
-[:first-child] SELECTOR_PSEUDO - 1103, 12
-[ ] SELECTOR_COMBINATOR - 1115, 1
-[em] SELECTOR_ELEMENT_NAME - 1116, 2
-[ ] S - 1118, 1
-[{] LBRACE - 1119, 1
-[ ] S - 1120, 2
-[font-weight] DECLARATION_PROPERTY - 1122, 11
-[ ] S - 1133, 1
-[:] DECLARATION_SEPARATOR - 1134, 1
-[ ] S - 1135, 1
-[bold] DECLARATION_VALUE_IDENT - 1136, 4
-[ ] S - 1140, 2
-[}] RBRACE - 1142, 1
-[
-] S - 1143, 2
-[*] SELECTOR_UNIVERSAL - 1145, 1
-[ ] S - 1146, 1
-[>] SELECTOR_COMBINATOR - 1147, 1
-[ ] S - 1148, 1
-[a] SELECTOR_ELEMENT_NAME - 1149, 1
-[:first-child] SELECTOR_PSEUDO - 1150, 12
-[ ] S - 1162, 1
-[{] LBRACE - 1163, 1
-[ ] S - 1164, 2
-[font-weight] DECLARATION_PROPERTY - 1166, 11
-[ ] S - 1177, 1
-[:] DECLARATION_SEPARATOR - 1178, 1
-[ ] S - 1179, 1
-[bold] DECLARATION_VALUE_IDENT - 1180, 4
-[ ] S - 1184, 2
-[}] RBRACE - 1186, 1
-[
-] S - 1187, 2
-[a] SELECTOR_ELEMENT_NAME - 1189, 1
-[:first-child] SELECTOR_PSEUDO - 1190, 12
-[ ] S - 1202, 1
-[{] LBRACE - 1203, 1
-[ ] S - 1204, 2
-[font-weight] DECLARATION_PROPERTY - 1206, 11
-[ ] S - 1217, 1
-[:] DECLARATION_SEPARATOR - 1218, 1
-[ ] S - 1219, 1
-[bold] DECLARATION_VALUE_IDENT - 1220, 4
-[ ] S - 1224, 2
-[}] RBRACE - 1226, 1
-[
-] S - 1227, 2
-[a] SELECTOR_ELEMENT_NAME - 1229, 1
-[.external] SELECTOR_CLASS - 1230, 9
-[:visited] SELECTOR_PSEUDO - 1239, 8
-[ ] S - 1247, 1
-[{] LBRACE - 1248, 1
-[ ] S - 1249, 2
-[color] DECLARATION_PROPERTY - 1251, 5
-[:] DECLARATION_SEPARATOR - 1256, 1
-[ ] S - 1257, 1
-[blue] DECLARATION_VALUE_IDENT - 1258, 4
-[ ] S - 1262, 2
-[}] RBRACE - 1264, 1
-[
-] S - 1265, 2
-[a] SELECTOR_ELEMENT_NAME - 1267, 1
-[:focus] SELECTOR_PSEUDO - 1268, 6
-[:hover] SELECTOR_PSEUDO - 1274, 6
-[ ] S - 1280, 1
-[{] LBRACE - 1281, 1
-[ ] S - 1282, 2
-[background] DECLARATION_PROPERTY - 1284, 10
-[:] DECLARATION_SEPARATOR - 1294, 1
-[ ] S - 1295, 1
-[white] DECLARATION_VALUE_IDENT - 1296, 5
-[ ] S - 1301, 2
-[}] RBRACE - 1303, 1
-[
-] S - 1304, 2
-[html] SELECTOR_ELEMENT_NAME - 1306, 4
-[:lang(fr)] SELECTOR_PSEUDO - 1310, 9
-[ ] S - 1319, 1
-[{] LBRACE - 1320, 1
-[ ] S - 1321, 2
-[quotes] DECLARATION_PROPERTY - 1323, 6
-[:] DECLARATION_SEPARATOR - 1329, 1
-[ ] S - 1330, 1
-['<<'] DECLARATION_VALUE_STRING - 1331, 4
-[ ] DECLARATION_VALUE_S - 1335, 1
-['>>'] DECLARATION_VALUE_STRING - 1336, 4
-[ ] S - 1340, 2
-[}] RBRACE - 1342, 1
-[
-] S - 1343, 2
-[html] SELECTOR_ELEMENT_NAME - 1345, 4
-[:lang(de)] SELECTOR_PSEUDO - 1349, 9
-[ ] S - 1358, 1
-[{] LBRACE - 1359, 1
-[ ] S - 1360, 2
-[quotes] DECLARATION_PROPERTY - 1362, 6
-[:] DECLARATION_SEPARATOR - 1368, 1
-[ ] S - 1369, 1
-['>>'] DECLARATION_VALUE_STRING - 1370, 4
-[ ] DECLARATION_VALUE_S - 1374, 1
-['<<'] DECLARATION_VALUE_STRING - 1375, 4
-[ ] DECLARATION_VALUE_S - 1379, 1
-['\2039'] DECLARATION_VALUE_STRING - 1380, 7
-[ ] DECLARATION_VALUE_S - 1387, 1
-['\203A'] DECLARATION_VALUE_STRING - 1388, 7
-[ ] S - 1395, 2
-[}] RBRACE - 1397, 1
-[
-] S - 1398, 2
-[:lang(fr)] SELECTOR_PSEUDO - 1400, 9
-[ ] S - 1409, 1
-[>] SELECTOR_COMBINATOR - 1410, 1
-[ ] S - 1411, 1
-[Q] SELECTOR_ELEMENT_NAME - 1412, 1
-[ ] S - 1413, 1
-[{] LBRACE - 1414, 1
-[ ] S - 1415, 2
-[quotes] DECLARATION_PROPERTY - 1417, 6
-[:] DECLARATION_SEPARATOR - 1423, 1
-[ ] S - 1424, 1
-['<<'] DECLARATION_VALUE_STRING - 1425, 4
-[ ] DECLARATION_VALUE_S - 1429, 1
-['>>'] DECLARATION_VALUE_STRING - 1430, 4
-[ ] S - 1434, 2
-[}] RBRACE - 1436, 1
-[
-] S - 1437, 2
-[:lang(de)] SELECTOR_PSEUDO - 1439, 9
-[ ] S - 1448, 1
-[>] SELECTOR_COMBINATOR - 1449, 1
-[ ] S - 1450, 1
-[Q] SELECTOR_ELEMENT_NAME - 1451, 1
-[ ] S - 1452, 1
-[{] LBRACE - 1453, 1
-[ ] S - 1454, 2
-[quotes] DECLARATION_PROPERTY - 1456, 6
-[:] DECLARATION_SEPARATOR - 1462, 1
-[ ] S - 1463, 1
-['>>'] DECLARATION_VALUE_STRING - 1464, 4
-[ ] DECLARATION_VALUE_S - 1468, 1
-['<<'] DECLARATION_VALUE_STRING - 1469, 4
-[ ] DECLARATION_VALUE_S - 1473, 1
-['\2039'] DECLARATION_VALUE_STRING - 1474, 7
-[ ] DECLARATION_VALUE_S - 1481, 1
-['\203A'] DECLARATION_VALUE_STRING - 1482, 7
-[ ] S - 1489, 2
-[}] RBRACE - 1491, 1
-[
-] S - 1492, 2
-[p] SELECTOR_ELEMENT_NAME - 1494, 1
-[:first-letter] SELECTOR_PSEUDO - 1495, 13
-[ ] S - 1508, 1
-[{] LBRACE - 1509, 1
-[ ] S - 1510, 2
-[font-size] DECLARATION_PROPERTY - 1512, 9
-[:] DECLARATION_SEPARATOR - 1521, 1
-[ ] S - 1522, 1
-[3em] DECLARATION_VALUE_DIMENSION - 1523, 3
-[;] DECLARATION_DELIMITER - 1526, 1
-[ ] S - 1527, 1
-[font-weight] DECLARATION_PROPERTY - 1528, 11
-[:] DECLARATION_SEPARATOR - 1539, 1
-[ ] S - 1540, 1
-[normal] DECLARATION_VALUE_IDENT - 1541, 6
-[ ] S - 1547, 2
-[}] RBRACE - 1549, 1
-[
-] S - 1550, 2
-[p] SELECTOR_ELEMENT_NAME - 1552, 1
-[.special] SELECTOR_CLASS - 1553, 8
-[:before] SELECTOR_PSEUDO - 1561, 7
-[ ] S - 1568, 1
-[{] LBRACE - 1569, 1
-[ ] S - 1570, 1
-[content] DECLARATION_PROPERTY - 1571, 7
-[:] DECLARATION_SEPARATOR - 1578, 1
-[ ] S - 1579, 1
-["Special! "] DECLARATION_VALUE_STRING - 1580, 11
-[ ] S - 1591, 1
-[}] RBRACE - 1592, 1
-[
-] S - 1593, 2
-[p] SELECTOR_ELEMENT_NAME - 1595, 1
-[.special] SELECTOR_CLASS - 1596, 8
-[:first-letter] SELECTOR_PSEUDO - 1604, 13
-[ ] S - 1617, 1
-[{] LBRACE - 1618, 1
-[ ] S - 1619, 1
-[color] DECLARATION_PROPERTY - 1620, 5
-[:] DECLARATION_SEPARATOR - 1625, 1
-[ ] S - 1626, 1
-[#ffd800] DECLARATION_VALUE_HASH - 1627, 7
-[ ] S - 1634, 1
-[}] RBRACE - 1635, 1
-[
-] S - 1636, 2
-[BODY] SELECTOR_ELEMENT_NAME - 1638, 4
-[ ] S - 1642, 1
-[{] LBRACE - 1643, 1
-[ ] S - 1644, 1
-[font-family] DECLARATION_PROPERTY - 1645, 11
-[:] DECLARATION_SEPARATOR - 1656, 1
-[ ] S - 1657, 1
-[Baskerville] DECLARATION_VALUE_IDENT - 1658, 11
-[,] DECLARATION_VALUE_OPERATOR - 1669, 1
-[ ] DECLARATION_VALUE_S - 1670, 1
-["Heisi Mincho W3"] DECLARATION_VALUE_STRING - 1671, 17
-[,] DECLARATION_VALUE_OPERATOR - 1688, 1
-[ ] DECLARATION_VALUE_S - 1689, 1
-[Symbol] DECLARATION_VALUE_IDENT - 1690, 6
-[,] DECLARATION_VALUE_OPERATOR - 1696, 1
-[ ] DECLARATION_VALUE_S - 1697, 1
-[serif] DECLARATION_VALUE_IDENT - 1698, 5
-[ ] S - 1703, 1
-[}] RBRACE - 1704, 1
-[
-] S - 1705, 2
-[*] SELECTOR_UNIVERSAL - 1707, 1
-[:lang(ja-jp)] SELECTOR_PSEUDO - 1708, 12
-[ ] S - 1720, 1
-[{] LBRACE - 1721, 1
-[ ] S - 1722, 1
-[font] DECLARATION_PROPERTY - 1723, 4
-[:] DECLARATION_SEPARATOR - 1727, 1
-[ ] S - 1728, 1
-[900] DECLARATION_VALUE_NUMBER - 1729, 3
-[ ] DECLARATION_VALUE_S - 1732, 1
-[14pt] DECLARATION_VALUE_DIMENSION - 1733, 4
-[/] DECLARATION_VALUE_OPERATOR - 1737, 1
-[16pt] DECLARATION_VALUE_DIMENSION - 1738, 4
-[ ] DECLARATION_VALUE_S - 1742, 1
-["Heisei Mincho W9"] DECLARATION_VALUE_STRING - 1743, 18
-[,] DECLARATION_VALUE_OPERATOR - 1761, 1
-[ ] DECLARATION_VALUE_S - 1762, 1
-[serif] DECLARATION_VALUE_IDENT - 1763, 5
-[ ] S - 1768, 1
-[}] RBRACE - 1769, 1
-[
-] S - 1770, 2
-[*] SELECTOR_UNIVERSAL - 1772, 1
-[:lang(zh-tw)] SELECTOR_PSEUDO - 1773, 12
-[ ] S - 1785, 1
-[{] LBRACE - 1786, 1
-[ ] S - 1787, 1
-[font] DECLARATION_PROPERTY - 1788, 4
-[:] DECLARATION_SEPARATOR - 1792, 1
-[ ] S - 1793, 1
-[800] DECLARATION_VALUE_NUMBER - 1794, 3
-[ ] DECLARATION_VALUE_S - 1797, 1
-[14pt] DECLARATION_VALUE_DIMENSION - 1798, 4
-[/] DECLARATION_VALUE_OPERATOR - 1802, 1
-[16.5pt] DECLARATION_VALUE_DIMENSION - 1803, 6
-[ ] DECLARATION_VALUE_S - 1809, 1
-["Li Sung"] DECLARATION_VALUE_STRING - 1810, 9
-[,] DECLARATION_VALUE_OPERATOR - 1819, 1
-[ ] DECLARATION_VALUE_S - 1820, 1
-[serif] DECLARATION_VALUE_IDENT - 1821, 5
-[ ] S - 1826, 1
-[}] RBRACE - 1827, 1
-[
-] S - 1828, 2
-
--------
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSTextParserTest-sample05.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSTextParserTest-sample05.css
deleted file mode 100644
index 5bb3f2b..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSTextParserTest-sample05.css
+++ /dev/null
@@ -1,706 +0,0 @@
-[@charset] CHARSET - 0, 8
-[ ] S - 8, 1
-["ISO-8859-1"] STRING - 9, 12
-[;] DELIMITER - 21, 1
-[
-
-] S - 22, 4
-[@import] IMPORT - 26, 7
-[ ] S - 33, 1
-[url("hoge.css")] URI - 34, 15
-[;] DELIMITER - 49, 1
-[
-] S - 50, 2
-[@import] IMPORT - 52, 7
-[ ] S - 59, 1
-[/* comment */] COMMENT - 60, 13
-[ ] S - 73, 1
-[url(hoge.css)] URI - 74, 13
-[;] DELIMITER - 87, 1
-[
-] S - 88, 2
-[@import] IMPORT - 90, 7
-[ ] S - 97, 1
-["hoge.css"] STRING - 98, 10
-[ ] S - 108, 1
-[/* comment */] COMMENT - 109, 13
-[;] DELIMITER - 122, 1
-[
-] S - 123, 2
-[@IMPORT] IMPORT - 125, 7
-[ ] S - 132, 1
-['hoge.css'] STRING - 133, 10
-[ ] S - 143, 1
-[media1] MEDIUM - 144, 6
-[,] MEDIA_SEPARATOR - 150, 1
-[media2] MEDIUM - 151, 6
-[ ] S - 157, 1
-[,] MEDIA_SEPARATOR - 158, 1
-[ ] S - 159, 1
-[media3] MEDIUM - 160, 6
-[;] DELIMITER - 166, 1
-[
-
-] S - 167, 4
-[@media] MEDIA - 171, 6
-[ ] S - 177, 1
-[print] MEDIUM - 178, 5
-[ ] S - 183, 1
-[{] LBRACE - 184, 1
-[
-
-] S - 185, 4
-[}] RBRACE - 189, 1
-[
-
-] S - 190, 4
-[@page] PAGE - 194, 5
-[ ] S - 199, 1
-[:left] CSS_PAGE_SELECTOR - 200, 5
-[ ] S - 205, 1
-[{] LBRACE - 206, 1
-[
-
-] S - 207, 4
-[}] RBRACE - 211, 1
-[
-
-] S - 212, 4
-[h1] SELECTOR_ELEMENT_NAME - 216, 2
-[,] SELECTOR_SEPARATOR - 218, 1
-[ ] S - 219, 1
-[h2] SELECTOR_ELEMENT_NAME - 220, 2
-[,] SELECTOR_SEPARATOR - 222, 1
-[ ] S - 223, 1
-[h3] SELECTOR_ELEMENT_NAME - 224, 2
-[ ] S - 226, 1
-[{] LBRACE - 227, 1
-[ ] S - 228, 2
-[font-family] DECLARATION_PROPERTY - 230, 11
-[:] DECLARATION_SEPARATOR - 241, 1
-[ ] S - 242, 1
-[sans-serif] DECLARATION_VALUE_IDENT - 243, 10
-[ ] S - 253, 2
-[}] RBRACE - 255, 1
-[
-] S - 256, 2
-[h1] SELECTOR_ELEMENT_NAME - 258, 2
-[ ] SELECTOR_COMBINATOR - 260, 1
-[em] SELECTOR_ELEMENT_NAME - 261, 2
-[ ] S - 263, 1
-[{] LBRACE - 264, 1
-[ ] S - 265, 2
-[color] DECLARATION_PROPERTY - 267, 5
-[:] DECLARATION_SEPARATOR - 272, 1
-[ ] S - 273, 1
-[blue] DECLARATION_VALUE_IDENT - 274, 4
-[ ] S - 278, 2
-[}] RBRACE - 280, 1
-[
-] S - 281, 2
-[div] SELECTOR_ELEMENT_NAME - 283, 3
-[ ] SELECTOR_COMBINATOR - 286, 1
-[p] SELECTOR_ELEMENT_NAME - 287, 1
-[ ] SELECTOR_COMBINATOR - 288, 1
-[*] SELECTOR_UNIVERSAL - 289, 1
-[[] SELECTOR_ATTRIBUTE_START - 290, 1
-[href] SELECTOR_ATTRIBUTE_NAME - 291, 4
-[]] SELECTOR_ATTRIBUTE_END - 295, 1
-[ ] S - 296, 1
-[{] LBRACE - 297, 1
-[ ] S - 298, 2
-[color] DECLARATION_PROPERTY - 300, 5
-[:] DECLARATION_SEPARATOR - 305, 1
-[ ] S - 306, 1
-[blue] DECLARATION_VALUE_IDENT - 307, 4
-[ ] S - 311, 2
-[}] RBRACE - 313, 1
-[
-] S - 314, 2
-[body] SELECTOR_ELEMENT_NAME - 316, 4
-[ ] S - 320, 1
-[>] SELECTOR_COMBINATOR - 321, 1
-[ ] S - 322, 1
-[P] SELECTOR_ELEMENT_NAME - 323, 1
-[ ] S - 324, 1
-[{] LBRACE - 325, 1
-[ ] S - 326, 2
-[line-height] DECLARATION_PROPERTY - 328, 11
-[:] DECLARATION_SEPARATOR - 339, 1
-[ ] S - 340, 1
-[1.3] DECLARATION_VALUE_NUMBER - 341, 3
-[ ] S - 344, 2
-[}] RBRACE - 346, 1
-[
-] S - 347, 2
-[div] SELECTOR_ELEMENT_NAME - 349, 3
-[ ] SELECTOR_COMBINATOR - 352, 1
-[ol] SELECTOR_ELEMENT_NAME - 353, 2
-[>] SELECTOR_COMBINATOR - 355, 1
-[li] SELECTOR_ELEMENT_NAME - 356, 2
-[ ] SELECTOR_COMBINATOR - 358, 1
-[p] SELECTOR_ELEMENT_NAME - 359, 1
-[ ] S - 360, 1
-[{] LBRACE - 361, 1
-[ ] S - 362, 1
-[}] RBRACE - 363, 1
-[
-] S - 364, 2
-[math] SELECTOR_ELEMENT_NAME - 366, 4
-[ ] S - 370, 1
-[+] SELECTOR_COMBINATOR - 371, 1
-[ ] S - 372, 1
-[p] SELECTOR_ELEMENT_NAME - 373, 1
-[ ] S - 374, 1
-[{] LBRACE - 375, 1
-[ ] S - 376, 2
-[text-indent] DECLARATION_PROPERTY - 378, 11
-[:] DECLARATION_SEPARATOR - 389, 1
-[ ] S - 390, 1
-[0] DECLARATION_VALUE_NUMBER - 391, 1
-[ ] S - 392, 2
-[}] RBRACE - 394, 1
-[
-] S - 395, 2
-[h1] SELECTOR_ELEMENT_NAME - 397, 2
-[.opener] SELECTOR_CLASS - 399, 7
-[ ] S - 406, 1
-[+] SELECTOR_COMBINATOR - 407, 1
-[ ] S - 408, 1
-[h2] SELECTOR_ELEMENT_NAME - 409, 2
-[ ] S - 411, 1
-[{] LBRACE - 412, 1
-[ ] S - 413, 2
-[margin-top] DECLARATION_PROPERTY - 415, 10
-[:] DECLARATION_SEPARATOR - 425, 1
-[ ] S - 426, 1
-[-5mm] DECLARATION_VALUE_IDENT - 427, 4
-[ ] S - 431, 2
-[}] RBRACE - 433, 1
-[
-] S - 434, 2
-[h1] SELECTOR_ELEMENT_NAME - 436, 2
-[[] SELECTOR_ATTRIBUTE_START - 438, 1
-[title] SELECTOR_ATTRIBUTE_NAME - 439, 5
-[]] SELECTOR_ATTRIBUTE_END - 444, 1
-[ ] S - 445, 1
-[{] LBRACE - 446, 1
-[ ] S - 447, 2
-[color] DECLARATION_PROPERTY - 449, 5
-[:] DECLARATION_SEPARATOR - 454, 1
-[ ] S - 455, 1
-[blue] DECLARATION_VALUE_IDENT - 456, 4
-[;] DECLARATION_DELIMITER - 460, 1
-[ ] S - 461, 2
-[}] RBRACE - 463, 1
-[
-] S - 464, 2
-[span] SELECTOR_ELEMENT_NAME - 466, 4
-[[] SELECTOR_ATTRIBUTE_START - 470, 1
-[class] SELECTOR_ATTRIBUTE_NAME - 471, 5
-[=] SELECTOR_ATTRIBUTE_OPERATOR - 476, 1
-[example] SELECTOR_ATTRIBUTE_VALUE - 477, 7
-[]] SELECTOR_ATTRIBUTE_END - 484, 1
-[ ] S - 485, 1
-[{] LBRACE - 486, 1
-[ ] S - 487, 2
-[color] DECLARATION_PROPERTY - 489, 5
-[:] DECLARATION_SEPARATOR - 494, 1
-[ ] S - 495, 1
-[blue] DECLARATION_VALUE_IDENT - 496, 4
-[;] DECLARATION_DELIMITER - 500, 1
-[ ] S - 501, 2
-[}] RBRACE - 503, 1
-[
-] S - 504, 2
-[span] SELECTOR_ELEMENT_NAME - 506, 4
-[[] SELECTOR_ATTRIBUTE_START - 510, 1
-[hello] SELECTOR_ATTRIBUTE_NAME - 511, 5
-[=] SELECTOR_ATTRIBUTE_OPERATOR - 516, 1
-["Cleveland"] SELECTOR_ATTRIBUTE_VALUE - 517, 11
-[]] SELECTOR_ATTRIBUTE_END - 528, 1
-[[] SELECTOR_ATTRIBUTE_START - 529, 1
-[goodbye] SELECTOR_ATTRIBUTE_NAME - 530, 7
-[=] SELECTOR_ATTRIBUTE_OPERATOR - 537, 1
-["Columbus"] SELECTOR_ATTRIBUTE_VALUE - 538, 10
-[]] SELECTOR_ATTRIBUTE_END - 548, 1
-[ ] S - 549, 1
-[{] LBRACE - 550, 1
-[ ] S - 551, 2
-[color] DECLARATION_PROPERTY - 553, 5
-[:] DECLARATION_SEPARATOR - 558, 1
-[ ] S - 559, 1
-[blue] DECLARATION_VALUE_IDENT - 560, 4
-[;] DECLARATION_DELIMITER - 564, 1
-[ ] S - 565, 2
-[}] RBRACE - 567, 1
-[
-] S - 568, 2
-[a] SELECTOR_ELEMENT_NAME - 570, 1
-[[] SELECTOR_ATTRIBUTE_START - 571, 1
-[rel] SELECTOR_ATTRIBUTE_NAME - 572, 3
-[~=] SELECTOR_ATTRIBUTE_OPERATOR - 575, 2
-["copyright"] SELECTOR_ATTRIBUTE_VALUE - 577, 11
-[]] SELECTOR_ATTRIBUTE_END - 588, 1
-[ ] S - 589, 1
-[{] LBRACE - 590, 1
-[ ] S - 591, 2
-[color] DECLARATION_PROPERTY - 593, 5
-[:] DECLARATION_SEPARATOR - 598, 1
-[ ] S - 599, 1
-[blue] DECLARATION_VALUE_IDENT - 600, 4
-[ ] S - 604, 2
-[}] RBRACE - 606, 1
-[
-] S - 607, 2
-[a] SELECTOR_ELEMENT_NAME - 609, 1
-[[] SELECTOR_ATTRIBUTE_START - 610, 1
-[href] SELECTOR_ATTRIBUTE_NAME - 611, 4
-[=] SELECTOR_ATTRIBUTE_OPERATOR - 615, 1
-["http://www.w3.org/"] SELECTOR_ATTRIBUTE_VALUE - 616, 20
-[]] SELECTOR_ATTRIBUTE_END - 636, 1
-[ ] S - 637, 1
-[{] LBRACE - 638, 1
-[ ] S - 639, 2
-[color] DECLARATION_PROPERTY - 641, 5
-[:] DECLARATION_SEPARATOR - 646, 1
-[ ] S - 647, 1
-[blue] DECLARATION_VALUE_IDENT - 648, 4
-[ ] S - 652, 2
-[}] RBRACE - 654, 1
-[
-] S - 655, 2
-[*] SELECTOR_UNIVERSAL - 657, 1
-[[] SELECTOR_ATTRIBUTE_START - 658, 1
-[lang] SELECTOR_ATTRIBUTE_NAME - 659, 4
-[=] SELECTOR_ATTRIBUTE_OPERATOR - 663, 1
-[fr] SELECTOR_ATTRIBUTE_VALUE - 664, 2
-[]] SELECTOR_ATTRIBUTE_END - 666, 1
-[ ] S - 667, 1
-[{] LBRACE - 668, 1
-[ ] S - 669, 2
-[display] DECLARATION_PROPERTY - 671, 7
-[ ] S - 678, 1
-[:] DECLARATION_SEPARATOR - 679, 1
-[ ] S - 680, 1
-[none] DECLARATION_VALUE_IDENT - 681, 4
-[ ] S - 685, 2
-[}] RBRACE - 687, 1
-[
-] S - 688, 2
-[*] SELECTOR_UNIVERSAL - 690, 1
-[[] SELECTOR_ATTRIBUTE_START - 691, 1
-[lang] SELECTOR_ATTRIBUTE_NAME - 692, 4
-[|=] SELECTOR_ATTRIBUTE_OPERATOR - 696, 2
-["en"] SELECTOR_ATTRIBUTE_VALUE - 698, 4
-[]] SELECTOR_ATTRIBUTE_END - 702, 1
-[ ] S - 703, 1
-[{] LBRACE - 704, 1
-[ ] S - 705, 2
-[color] DECLARATION_PROPERTY - 707, 5
-[ ] S - 712, 1
-[:] DECLARATION_SEPARATOR - 713, 1
-[ ] S - 714, 1
-[red] DECLARATION_VALUE_IDENT - 715, 3
-[ ] S - 718, 2
-[}] RBRACE - 720, 1
-[
-] S - 721, 2
-[DIALOGUE] SELECTOR_ELEMENT_NAME - 723, 8
-[[] SELECTOR_ATTRIBUTE_START - 731, 1
-[character] SELECTOR_ATTRIBUTE_NAME - 732, 9
-[=] SELECTOR_ATTRIBUTE_OPERATOR - 741, 1
-[romeo] SELECTOR_ATTRIBUTE_VALUE - 742, 5
-[]] SELECTOR_ATTRIBUTE_END - 747, 1
-[
-] S - 748, 2
-[{] LBRACE - 750, 1
-[ ] S - 751, 2
-[voice-family] DECLARATION_PROPERTY - 753, 12
-[:] DECLARATION_SEPARATOR - 765, 1
-[ ] S - 766, 1
-["Lawrence Olivier"] DECLARATION_VALUE_STRING - 767, 18
-[,] DECLARATION_VALUE_OPERATOR - 785, 1
-[ ] DECLARATION_VALUE_S - 786, 1
-[charles] DECLARATION_VALUE_IDENT - 787, 7
-[,] DECLARATION_VALUE_OPERATOR - 794, 1
-[ ] DECLARATION_VALUE_S - 795, 1
-[male] DECLARATION_VALUE_IDENT - 796, 4
-[ ] S - 800, 2
-[}] RBRACE - 802, 1
-[
-] S - 803, 2
-[DIALOGUE] SELECTOR_ELEMENT_NAME - 805, 8
-[[] SELECTOR_ATTRIBUTE_START - 813, 1
-[ ] S - 814, 1
-[character] SELECTOR_ATTRIBUTE_NAME - 815, 9
-[ ] S - 824, 1
-[=] SELECTOR_ATTRIBUTE_OPERATOR - 825, 1
-[ ] S - 826, 1
-[juliet] SELECTOR_ATTRIBUTE_VALUE - 827, 6
-[ ] S - 833, 1
-[]] SELECTOR_ATTRIBUTE_END - 834, 1
-[
-] S - 835, 2
-[{] LBRACE - 837, 1
-[ ] S - 838, 2
-[voice-family] DECLARATION_PROPERTY - 840, 12
-[:] DECLARATION_SEPARATOR - 852, 1
-[ ] S - 853, 1
-["Vivien Leigh"] DECLARATION_VALUE_STRING - 854, 14
-[,] DECLARATION_VALUE_OPERATOR - 868, 1
-[ ] DECLARATION_VALUE_S - 869, 1
-[victoria] DECLARATION_VALUE_IDENT - 870, 8
-[,] DECLARATION_VALUE_OPERATOR - 878, 1
-[ ] DECLARATION_VALUE_S - 879, 1
-[female] DECLARATION_VALUE_IDENT - 880, 6
-[ ] S - 886, 2
-[}] RBRACE - 888, 1
-[
-] S - 889, 2
-[*] SELECTOR_UNIVERSAL - 891, 1
-[.pastoral] SELECTOR_CLASS - 892, 9
-[ ] S - 901, 1
-[{] LBRACE - 902, 1
-[ ] S - 903, 2
-[color] DECLARATION_PROPERTY - 905, 5
-[:] DECLARATION_SEPARATOR - 910, 1
-[ ] S - 911, 1
-[green] DECLARATION_VALUE_IDENT - 912, 5
-[ ] S - 917, 2
-[}] RBRACE - 919, 1
-[
-] S - 920, 2
-[.pastoral] SELECTOR_CLASS - 922, 9
-[ ] S - 931, 1
-[{] LBRACE - 932, 1
-[ ] S - 933, 2
-[color] DECLARATION_PROPERTY - 935, 5
-[:] DECLARATION_SEPARATOR - 940, 1
-[ ] S - 941, 1
-[green] DECLARATION_VALUE_IDENT - 942, 5
-[ ] S - 947, 2
-[}] RBRACE - 949, 1
-[
-] S - 950, 2
-[H1] SELECTOR_ELEMENT_NAME - 952, 2
-[.pastoral] SELECTOR_CLASS - 954, 9
-[ ] S - 963, 1
-[{] LBRACE - 964, 1
-[ ] S - 965, 2
-[color] DECLARATION_PROPERTY - 967, 5
-[:] DECLARATION_SEPARATOR - 972, 1
-[ ] S - 973, 1
-[green] DECLARATION_VALUE_IDENT - 974, 5
-[ ] S - 979, 2
-[}] RBRACE - 981, 1
-[
-] S - 982, 2
-[p] SELECTOR_ELEMENT_NAME - 984, 1
-[.pastoral] SELECTOR_CLASS - 985, 9
-[.marine] SELECTOR_CLASS - 994, 7
-[ ] S - 1001, 1
-[{] LBRACE - 1002, 1
-[ ] S - 1003, 2
-[color] DECLARATION_PROPERTY - 1005, 5
-[:] DECLARATION_SEPARATOR - 1010, 1
-[ ] S - 1011, 1
-[green] DECLARATION_VALUE_IDENT - 1012, 5
-[ ] S - 1017, 2
-[}] RBRACE - 1019, 1
-[
-] S - 1020, 2
-[h1] SELECTOR_ELEMENT_NAME - 1022, 2
-[#chapter1] SELECTOR_ID - 1024, 9
-[ ] S - 1033, 1
-[{] LBRACE - 1034, 1
-[ ] S - 1035, 2
-[text-align] DECLARATION_PROPERTY - 1037, 10
-[:] DECLARATION_SEPARATOR - 1047, 1
-[ ] S - 1048, 1
-[center] DECLARATION_VALUE_IDENT - 1049, 6
-[ ] S - 1055, 2
-[}] RBRACE - 1057, 1
-[
-] S - 1058, 2
-[div] SELECTOR_ELEMENT_NAME - 1060, 3
-[ ] S - 1063, 1
-[>] SELECTOR_COMBINATOR - 1064, 1
-[ ] S - 1065, 1
-[p] SELECTOR_ELEMENT_NAME - 1066, 1
-[:first-child] SELECTOR_PSEUDO - 1067, 12
-[ ] S - 1079, 1
-[{] LBRACE - 1080, 1
-[ ] S - 1081, 2
-[text-indent] DECLARATION_PROPERTY - 1083, 11
-[:] DECLARATION_SEPARATOR - 1094, 1
-[ ] S - 1095, 1
-[0] DECLARATION_VALUE_NUMBER - 1096, 1
-[ ] S - 1097, 2
-[}] RBRACE - 1099, 1
-[
-] S - 1100, 2
-[p] SELECTOR_ELEMENT_NAME - 1102, 1
-[:first-child] SELECTOR_PSEUDO - 1103, 12
-[ ] SELECTOR_COMBINATOR - 1115, 1
-[em] SELECTOR_ELEMENT_NAME - 1116, 2
-[ ] S - 1118, 1
-[{] LBRACE - 1119, 1
-[ ] S - 1120, 2
-[font-weight] DECLARATION_PROPERTY - 1122, 11
-[ ] S - 1133, 1
-[:] DECLARATION_SEPARATOR - 1134, 1
-[ ] S - 1135, 1
-[bold] DECLARATION_VALUE_IDENT - 1136, 4
-[ ] S - 1140, 2
-[}] RBRACE - 1142, 1
-[
-] S - 1143, 2
-[*] SELECTOR_UNIVERSAL - 1145, 1
-[ ] S - 1146, 1
-[>] SELECTOR_COMBINATOR - 1147, 1
-[ ] S - 1148, 1
-[a] SELECTOR_ELEMENT_NAME - 1149, 1
-[:first-child] SELECTOR_PSEUDO - 1150, 12
-[ ] S - 1162, 1
-[{] LBRACE - 1163, 1
-[ ] S - 1164, 2
-[font-weight] DECLARATION_PROPERTY - 1166, 11
-[ ] S - 1177, 1
-[:] DECLARATION_SEPARATOR - 1178, 1
-[ ] S - 1179, 1
-[bold] DECLARATION_VALUE_IDENT - 1180, 4
-[ ] S - 1184, 2
-[}] RBRACE - 1186, 1
-[
-] S - 1187, 2
-[a] SELECTOR_ELEMENT_NAME - 1189, 1
-[:first-child] SELECTOR_PSEUDO - 1190, 12
-[ ] S - 1202, 1
-[{] LBRACE - 1203, 1
-[ ] S - 1204, 2
-[font-weight] DECLARATION_PROPERTY - 1206, 11
-[ ] S - 1217, 1
-[:] DECLARATION_SEPARATOR - 1218, 1
-[ ] S - 1219, 1
-[bold] DECLARATION_VALUE_IDENT - 1220, 4
-[ ] S - 1224, 2
-[}] RBRACE - 1226, 1
-[
-] S - 1227, 2
-[a] SELECTOR_ELEMENT_NAME - 1229, 1
-[.external] SELECTOR_CLASS - 1230, 9
-[:visited] SELECTOR_PSEUDO - 1239, 8
-[ ] S - 1247, 1
-[{] LBRACE - 1248, 1
-[ ] S - 1249, 2
-[color] DECLARATION_PROPERTY - 1251, 5
-[:] DECLARATION_SEPARATOR - 1256, 1
-[ ] S - 1257, 1
-[blue] DECLARATION_VALUE_IDENT - 1258, 4
-[ ] S - 1262, 2
-[}] RBRACE - 1264, 1
-[
-] S - 1265, 2
-[a] SELECTOR_ELEMENT_NAME - 1267, 1
-[:focus] SELECTOR_PSEUDO - 1268, 6
-[:hover] SELECTOR_PSEUDO - 1274, 6
-[ ] S - 1280, 1
-[{] LBRACE - 1281, 1
-[ ] S - 1282, 2
-[background] DECLARATION_PROPERTY - 1284, 10
-[:] DECLARATION_SEPARATOR - 1294, 1
-[ ] S - 1295, 1
-[white] DECLARATION_VALUE_IDENT - 1296, 5
-[ ] S - 1301, 2
-[}] RBRACE - 1303, 1
-[
-] S - 1304, 2
-[html] SELECTOR_ELEMENT_NAME - 1306, 4
-[:lang(fr)] SELECTOR_PSEUDO - 1310, 9
-[ ] S - 1319, 1
-[{] LBRACE - 1320, 1
-[ ] S - 1321, 2
-[quotes] DECLARATION_PROPERTY - 1323, 6
-[:] DECLARATION_SEPARATOR - 1329, 1
-[ ] S - 1330, 1
-['<<'] DECLARATION_VALUE_STRING - 1331, 4
-[ ] DECLARATION_VALUE_S - 1335, 1
-['>>'] DECLARATION_VALUE_STRING - 1336, 4
-[ ] S - 1340, 2
-[}] RBRACE - 1342, 1
-[
-] S - 1343, 2
-[html] SELECTOR_ELEMENT_NAME - 1345, 4
-[:lang(de)] SELECTOR_PSEUDO - 1349, 9
-[ ] S - 1358, 1
-[{] LBRACE - 1359, 1
-[ ] S - 1360, 2
-[quotes] DECLARATION_PROPERTY - 1362, 6
-[:] DECLARATION_SEPARATOR - 1368, 1
-[ ] S - 1369, 1
-['>>'] DECLARATION_VALUE_STRING - 1370, 4
-[ ] DECLARATION_VALUE_S - 1374, 1
-['<<'] DECLARATION_VALUE_STRING - 1375, 4
-[ ] DECLARATION_VALUE_S - 1379, 1
-['\2039'] DECLARATION_VALUE_STRING - 1380, 7
-[ ] DECLARATION_VALUE_S - 1387, 1
-['\203A'] DECLARATION_VALUE_STRING - 1388, 7
-[ ] S - 1395, 2
-[}] RBRACE - 1397, 1
-[
-] S - 1398, 2
-[:lang(fr)] SELECTOR_PSEUDO - 1400, 9
-[ ] S - 1409, 1
-[>] SELECTOR_COMBINATOR - 1410, 1
-[ ] S - 1411, 1
-[Q] SELECTOR_ELEMENT_NAME - 1412, 1
-[ ] S - 1413, 1
-[{] LBRACE - 1414, 1
-[ ] S - 1415, 2
-[quotes] DECLARATION_PROPERTY - 1417, 6
-[:] DECLARATION_SEPARATOR - 1423, 1
-[ ] S - 1424, 1
-['<<'] DECLARATION_VALUE_STRING - 1425, 4
-[ ] DECLARATION_VALUE_S - 1429, 1
-['>>'] DECLARATION_VALUE_STRING - 1430, 4
-[ ] S - 1434, 2
-[}] RBRACE - 1436, 1
-[
-] S - 1437, 2
-[:lang(de)] SELECTOR_PSEUDO - 1439, 9
-[ ] S - 1448, 1
-[>] SELECTOR_COMBINATOR - 1449, 1
-[ ] S - 1450, 1
-[Q] SELECTOR_ELEMENT_NAME - 1451, 1
-[ ] S - 1452, 1
-[{] LBRACE - 1453, 1
-[ ] S - 1454, 2
-[quotes] DECLARATION_PROPERTY - 1456, 6
-[:] DECLARATION_SEPARATOR - 1462, 1
-[ ] S - 1463, 1
-['>>'] DECLARATION_VALUE_STRING - 1464, 4
-[ ] DECLARATION_VALUE_S - 1468, 1
-['<<'] DECLARATION_VALUE_STRING - 1469, 4
-[ ] DECLARATION_VALUE_S - 1473, 1
-['\2039'] DECLARATION_VALUE_STRING - 1474, 7
-[ ] DECLARATION_VALUE_S - 1481, 1
-['\203A'] DECLARATION_VALUE_STRING - 1482, 7
-[ ] S - 1489, 2
-[}] RBRACE - 1491, 1
-[
-] S - 1492, 2
-[p] SELECTOR_ELEMENT_NAME - 1494, 1
-[:first-letter] SELECTOR_PSEUDO - 1495, 13
-[ ] S - 1508, 1
-[{] LBRACE - 1509, 1
-[ ] S - 1510, 2
-[font-size] DECLARATION_PROPERTY - 1512, 9
-[:] DECLARATION_SEPARATOR - 1521, 1
-[ ] S - 1522, 1
-[3em] DECLARATION_VALUE_DIMENSION - 1523, 3
-[;] DECLARATION_DELIMITER - 1526, 1
-[ ] S - 1527, 1
-[font-weight] DECLARATION_PROPERTY - 1528, 11
-[:] DECLARATION_SEPARATOR - 1539, 1
-[ ] S - 1540, 1
-[normal] DECLARATION_VALUE_IDENT - 1541, 6
-[ ] S - 1547, 2
-[}] RBRACE - 1549, 1
-[
-] S - 1550, 2
-[p] SELECTOR_ELEMENT_NAME - 1552, 1
-[.special] SELECTOR_CLASS - 1553, 8
-[:before] SELECTOR_PSEUDO - 1561, 7
-[ ] S - 1568, 1
-[{] LBRACE - 1569, 1
-[ ] S - 1570, 1
-[content] DECLARATION_PROPERTY - 1571, 7
-[:] DECLARATION_SEPARATOR - 1578, 1
-[ ] S - 1579, 1
-["Special! "] DECLARATION_VALUE_STRING - 1580, 11
-[ ] S - 1591, 1
-[}] RBRACE - 1592, 1
-[
-] S - 1593, 2
-[p] SELECTOR_ELEMENT_NAME - 1595, 1
-[.special] SELECTOR_CLASS - 1596, 8
-[:first-letter] SELECTOR_PSEUDO - 1604, 13
-[ ] S - 1617, 1
-[{] LBRACE - 1618, 1
-[ ] S - 1619, 1
-[color] DECLARATION_PROPERTY - 1620, 5
-[:] DECLARATION_SEPARATOR - 1625, 1
-[ ] S - 1626, 1
-[#ffd800] DECLARATION_VALUE_HASH - 1627, 7
-[ ] S - 1634, 1
-[}] RBRACE - 1635, 1
-[
-] S - 1636, 2
-[BODY] SELECTOR_ELEMENT_NAME - 1638, 4
-[ ] S - 1642, 1
-[{] LBRACE - 1643, 1
-[ ] S - 1644, 1
-[font-family] DECLARATION_PROPERTY - 1645, 11
-[:] DECLARATION_SEPARATOR - 1656, 1
-[ ] S - 1657, 1
-[Baskerville] DECLARATION_VALUE_IDENT - 1658, 11
-[,] DECLARATION_VALUE_OPERATOR - 1669, 1
-[ ] DECLARATION_VALUE_S - 1670, 1
-["Heisi Mincho W3"] DECLARATION_VALUE_STRING - 1671, 17
-[,] DECLARATION_VALUE_OPERATOR - 1688, 1
-[ ] DECLARATION_VALUE_S - 1689, 1
-[Symbol] DECLARATION_VALUE_IDENT - 1690, 6
-[,] DECLARATION_VALUE_OPERATOR - 1696, 1
-[ ] DECLARATION_VALUE_S - 1697, 1
-[serif] DECLARATION_VALUE_IDENT - 1698, 5
-[ ] S - 1703, 1
-[}] RBRACE - 1704, 1
-[
-] S - 1705, 2
-[*] SELECTOR_UNIVERSAL - 1707, 1
-[:lang(ja-jp)] SELECTOR_PSEUDO - 1708, 12
-[ ] S - 1720, 1
-[{] LBRACE - 1721, 1
-[ ] S - 1722, 1
-[font] DECLARATION_PROPERTY - 1723, 4
-[:] DECLARATION_SEPARATOR - 1727, 1
-[ ] S - 1728, 1
-[900] DECLARATION_VALUE_NUMBER - 1729, 3
-[ ] DECLARATION_VALUE_S - 1732, 1
-[14pt] DECLARATION_VALUE_DIMENSION - 1733, 4
-[/] DECLARATION_VALUE_OPERATOR - 1737, 1
-[16pt] DECLARATION_VALUE_DIMENSION - 1738, 4
-[ ] DECLARATION_VALUE_S - 1742, 1
-["Heisei Mincho W9"] DECLARATION_VALUE_STRING - 1743, 18
-[,] DECLARATION_VALUE_OPERATOR - 1761, 1
-[ ] DECLARATION_VALUE_S - 1762, 1
-[serif] DECLARATION_VALUE_IDENT - 1763, 5
-[ ] S - 1768, 1
-[}] RBRACE - 1769, 1
-[
-] S - 1770, 2
-[*] SELECTOR_UNIVERSAL - 1772, 1
-[:lang(zh-tw)] SELECTOR_PSEUDO - 1773, 12
-[ ] S - 1785, 1
-[{] LBRACE - 1786, 1
-[ ] S - 1787, 1
-[font] DECLARATION_PROPERTY - 1788, 4
-[:] DECLARATION_SEPARATOR - 1792, 1
-[ ] S - 1793, 1
-[800] DECLARATION_VALUE_NUMBER - 1794, 3
-[ ] DECLARATION_VALUE_S - 1797, 1
-[14pt] DECLARATION_VALUE_DIMENSION - 1798, 4
-[/] DECLARATION_VALUE_OPERATOR - 1802, 1
-[16.5pt] DECLARATION_VALUE_DIMENSION - 1803, 6
-[ ] DECLARATION_VALUE_S - 1809, 1
-["Li Sung"] DECLARATION_VALUE_STRING - 1810, 9
-[,] DECLARATION_VALUE_OPERATOR - 1819, 1
-[ ] DECLARATION_VALUE_S - 1820, 1
-[serif] DECLARATION_VALUE_IDENT - 1821, 5
-[ ] S - 1826, 1
-[}] RBRACE - 1827, 1
-[
-] S - 1828, 2
-
--------
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSTextParserTest-sample06.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSTextParserTest-sample06.css
deleted file mode 100644
index 82217c0..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSTextParserTest-sample06.css
+++ /dev/null
@@ -1,101 +0,0 @@
-[declaration] SELECTOR_ELEMENT_NAME - 0, 11
-[ ] S - 11, 1
-[{] LBRACE - 12, 1
-[
- ] S - 13, 3
-[dimension] DECLARATION_PROPERTY - 16, 9
-[ ] S - 25, 1
-[:] DECLARATION_SEPARATOR - 26, 1
-[ ] S - 27, 1
-[100ex] DECLARATION_VALUE_DIMENSION - 28, 5
-[;] DECLARATION_DELIMITER - 33, 1
-[
- ] S - 34, 3
-[function] DECLARATION_PROPERTY - 37, 8
-[ ] S - 45, 1
-[:] DECLARATION_SEPARATOR - 46, 1
-[ ] S - 47, 1
-[rect(] DECLARATION_VALUE_FUNCTION - 48, 5
-[100] DECLARATION_VALUE_NUMBER - 53, 3
-[,] DECLARATION_VALUE_OPERATOR - 56, 1
-[ ] DECLARATION_VALUE_S - 57, 1
-[200] DECLARATION_VALUE_NUMBER - 58, 3
-[,] DECLARATION_VALUE_OPERATOR - 61, 1
-[ ] DECLARATION_VALUE_S - 62, 1
-[300] DECLARATION_VALUE_NUMBER - 63, 3
-[,] DECLARATION_VALUE_OPERATOR - 66, 1
-[ ] DECLARATION_VALUE_S - 67, 1
-[400] DECLARATION_VALUE_NUMBER - 68, 3
-[)] DECLARATION_VALUE_PARENTHESIS_CLOSE - 71, 1
-[,] DECLARATION_VALUE_OPERATOR - 72, 1
-[ ] DECLARATION_VALUE_S - 73, 1
-[format(] DECLARATION_VALUE_FUNCTION - 74, 7
-["intellifont"] DECLARATION_VALUE_STRING - 81, 13
-[)] DECLARATION_VALUE_PARENTHESIS_CLOSE - 94, 1
-[,] DECLARATION_VALUE_OPERATOR - 95, 1
-[ ] DECLARATION_VALUE_S - 96, 1
-[local(] DECLARATION_VALUE_FUNCTION - 97, 6
-["Excelsior Cyrilllic Upright"] DECLARATION_VALUE_STRING - 103, 29
-[)] DECLARATION_VALUE_PARENTHESIS_CLOSE - 132, 1
-[;] DECLARATION_DELIMITER - 133, 1
-[
- ] S - 134, 3
-[hash] DECLARATION_PROPERTY - 137, 4
-[ ] S - 141, 1
-[:] DECLARATION_SEPARATOR - 142, 1
-[ ] S - 143, 1
-[#aabbcc] DECLARATION_VALUE_HASH - 144, 7
-[;] DECLARATION_DELIMITER - 151, 1
-[
- ] S - 152, 3
-[ident] DECLARATION_PROPERTY - 155, 5
-[ ] S - 160, 1
-[:] DECLARATION_SEPARATOR - 161, 1
-[ ] S - 162, 1
-[any] DECLARATION_VALUE_IDENT - 163, 3
-[;] DECLARATION_DELIMITER - 166, 1
-[
- ] S - 167, 3
-[number] DECLARATION_PROPERTY - 170, 6
-[ ] S - 176, 1
-[:] DECLARATION_SEPARATOR - 177, 1
-[ ] S - 178, 1
-[99999] DECLARATION_VALUE_NUMBER - 179, 5
-[;] DECLARATION_DELIMITER - 184, 1
-[
- ] S - 185, 3
-[percentage] DECLARATION_PROPERTY - 188, 10
-[ ] S - 198, 1
-[:] DECLARATION_SEPARATOR - 199, 1
-[ ] S - 200, 1
-[100%] DECLARATION_VALUE_PERCENTAGE - 201, 4
-[;] DECLARATION_DELIMITER - 205, 1
-[
- ] S - 206, 3
-[string] DECLARATION_PROPERTY - 209, 6
-[ ] S - 215, 1
-[:] DECLARATION_SEPARATOR - 216, 1
-[ ] S - 217, 1
-["string"] DECLARATION_VALUE_STRING - 218, 8
-[;] DECLARATION_DELIMITER - 226, 1
-[
- ] S - 227, 3
-[unicode-range] DECLARATION_PROPERTY - 230, 13
-[ ] S - 243, 1
-[:] DECLARATION_SEPARATOR - 244, 1
-[ ] S - 245, 1
-[U+??] DECLARATION_VALUE_UNICODE_RANGE - 246, 4
-[,] DECLARATION_VALUE_OPERATOR - 250, 1
-[ ] DECLARATION_VALUE_S - 251, 1
-[U+100-220] DECLARATION_VALUE_UNICODE_RANGE - 252, 9
-[,] DECLARATION_VALUE_OPERATOR - 261, 1
-[ ] DECLARATION_VALUE_S - 262, 1
-[U+4??] DECLARATION_VALUE_UNICODE_RANGE - 263, 5
-[;] DECLARATION_DELIMITER - 268, 1
-[
-] S - 269, 2
-[}] RBRACE - 271, 1
-[
-] S - 272, 2
-
--------
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSTextParserTest-sample07.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSTextParserTest-sample07.css
deleted file mode 100644
index 74b3076..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/results/CSSTextParserTest-sample07.css
+++ /dev/null
@@ -1,583 +0,0 @@
-[@charset] CHARSET - 0, 8
-[ ] S - 8, 1
-["ISO-8859-1"] STRING - 9, 12
-[;] DELIMITER - 21, 1
-[
-
-] S - 22, 4
-[@import] IMPORT - 26, 7
-[ ] S - 33, 1
-[url("../sample2.css")] URI - 34, 21
-[ ] S - 55, 1
-[projection] MEDIUM - 56, 10
-[,] MEDIA_SEPARATOR - 66, 1
-[ ] S - 67, 1
-[tv] MEDIUM - 68, 2
-[;] DELIMITER - 70, 1
-[
-
-] S - 71, 4
-[BODY] SELECTOR_ELEMENT_NAME - 75, 4
-[ ] S - 79, 1
-[{] LBRACE - 80, 1
-[
- ] S - 81, 6
-[color] DECLARATION_PROPERTY - 87, 5
-[ ] S - 92, 1
-[:] DECLARATION_SEPARATOR - 93, 1
-[ ] S - 94, 1
-[black] DECLARATION_VALUE_IDENT - 95, 5
-[;] DECLARATION_DELIMITER - 100, 1
-[
- ] S - 101, 6
-[text-align] DECLARATION_PROPERTY - 107, 10
-[ ] S - 117, 1
-[:] DECLARATION_SEPARATOR - 118, 1
-[ ] S - 119, 1
-[center] DECLARATION_VALUE_IDENT - 120, 6
-[;] DECLARATION_DELIMITER - 126, 1
-[
- ] S - 127, 6
-[background-color] DECLARATION_PROPERTY - 133, 16
-[ ] S - 149, 1
-[:] DECLARATION_SEPARATOR - 150, 1
-[ ] S - 151, 1
-[rgb(] DECLARATION_VALUE_FUNCTION - 152, 4
-[ ] DECLARATION_VALUE_S - 156, 1
-[181] DECLARATION_VALUE_NUMBER - 157, 3
-[,] DECLARATION_VALUE_OPERATOR - 160, 1
-[ ] DECLARATION_VALUE_S - 161, 1
-[253] DECLARATION_VALUE_NUMBER - 162, 3
-[,] DECLARATION_VALUE_OPERATOR - 165, 1
-[ ] DECLARATION_VALUE_S - 166, 1
-[211] DECLARATION_VALUE_NUMBER - 167, 3
-[ ] DECLARATION_VALUE_S - 170, 1
-[)] DECLARATION_VALUE_PARENTHESIS_CLOSE - 171, 1
-[
-] S - 172, 2
-[}] RBRACE - 174, 1
-[
-
-] S - 175, 4
-[UL] SELECTOR_ELEMENT_NAME - 179, 2
-[ ] S - 181, 1
-[{] LBRACE - 182, 1
-[
- ] S - 183, 6
-[color] DECLARATION_PROPERTY - 189, 5
-[ ] S - 194, 1
-[:] DECLARATION_SEPARATOR - 195, 1
-[ ] S - 196, 1
-[black] DECLARATION_VALUE_IDENT - 197, 5
-[;] DECLARATION_DELIMITER - 202, 1
-[
- ] S - 203, 6
-[list-style-image] DECLARATION_PROPERTY - 209, 16
-[ ] S - 225, 1
-[:] DECLARATION_SEPARATOR - 226, 1
-[ ] S - 227, 1
-[url("images/l_a01.gif")] DECLARATION_VALUE_URI - 228, 23
-[;] DECLARATION_DELIMITER - 251, 1
-[
- ] S - 252, 6
-[list-style-position] DECLARATION_PROPERTY - 258, 19
-[ ] S - 277, 1
-[:] DECLARATION_SEPARATOR - 278, 1
-[ ] S - 279, 1
-[outside] DECLARATION_VALUE_IDENT - 280, 7
-[
-] S - 287, 2
-[}] RBRACE - 289, 1
-[
-
-] S - 290, 4
-[H1] SELECTOR_ELEMENT_NAME - 294, 2
-[ ] S - 296, 1
-[{] LBRACE - 297, 1
-[
- ] S - 298, 6
-[color] DECLARATION_PROPERTY - 304, 5
-[ ] S - 309, 1
-[:] DECLARATION_SEPARATOR - 310, 1
-[ ] S - 311, 1
-[white] DECLARATION_VALUE_IDENT - 312, 5
-[;] DECLARATION_DELIMITER - 317, 1
-[
- ] S - 318, 6
-[text-align] DECLARATION_PROPERTY - 324, 10
-[ ] S - 334, 1
-[:] DECLARATION_SEPARATOR - 335, 1
-[ ] S - 336, 1
-[center] DECLARATION_VALUE_IDENT - 337, 6
-[;] DECLARATION_DELIMITER - 343, 1
-[
- ] S - 344, 6
-[border-left-color] DECLARATION_PROPERTY - 350, 17
-[ ] S - 367, 1
-[:] DECLARATION_SEPARATOR - 368, 1
-[ ] S - 369, 1
-[#996666] DECLARATION_VALUE_HASH - 370, 7
-[;] DECLARATION_DELIMITER - 377, 1
-[
- ] S - 378, 6
-[padding-top] DECLARATION_PROPERTY - 384, 11
-[ ] S - 395, 1
-[:] DECLARATION_SEPARATOR - 396, 1
-[ ] S - 397, 1
-[0px] DECLARATION_VALUE_DIMENSION - 398, 3
-[;] DECLARATION_DELIMITER - 401, 1
-[
- ] S - 402, 6
-[padding-right] DECLARATION_PROPERTY - 408, 13
-[ ] S - 421, 1
-[:] DECLARATION_SEPARATOR - 422, 1
-[ ] S - 423, 1
-[1cm] DECLARATION_VALUE_DIMENSION - 424, 3
-[;] DECLARATION_DELIMITER - 427, 1
-[
- ] S - 428, 6
-[padding-bottom] DECLARATION_PROPERTY - 434, 14
-[ ] S - 448, 1
-[:] DECLARATION_SEPARATOR - 449, 1
-[ ] S - 450, 1
-[2] DECLARATION_VALUE_NUMBER - 451, 1
-[;] DECLARATION_DELIMITER - 452, 1
-[
- ] S - 453, 6
-[padding-left] DECLARATION_PROPERTY - 459, 12
-[ ] S - 471, 1
-[:] DECLARATION_SEPARATOR - 472, 1
-[ ] S - 473, 1
-[3em] DECLARATION_VALUE_DIMENSION - 474, 3
-[;] DECLARATION_DELIMITER - 477, 1
-[
- ] S - 478, 6
-[border-style] DECLARATION_PROPERTY - 484, 12
-[ ] S - 496, 1
-[:] DECLARATION_SEPARATOR - 497, 1
-[ ] S - 498, 1
-[solid] DECLARATION_VALUE_IDENT - 499, 5
-[;] DECLARATION_DELIMITER - 504, 1
-[
- ] S - 505, 6
-[border-top-width] DECLARATION_PROPERTY - 511, 16
-[ ] S - 527, 1
-[:] DECLARATION_SEPARATOR - 528, 1
-[ ] S - 529, 1
-[4.5ex] DECLARATION_VALUE_DIMENSION - 530, 5
-[;] DECLARATION_DELIMITER - 535, 1
-[
- ] S - 536, 6
-[border-right-width] DECLARATION_PROPERTY - 542, 18
-[ ] S - 560, 1
-[:] DECLARATION_SEPARATOR - 561, 1
-[ ] S - 562, 1
-[5in] DECLARATION_VALUE_DIMENSION - 563, 3
-[;] DECLARATION_DELIMITER - 566, 1
-[
- ] S - 567, 6
-[border-bottom-width] DECLARATION_PROPERTY - 573, 19
-[ ] S - 592, 1
-[:] DECLARATION_SEPARATOR - 593, 1
-[ ] S - 594, 1
-[6.02mm] DECLARATION_VALUE_DIMENSION - 595, 6
-[;] DECLARATION_DELIMITER - 601, 1
-[
- ] S - 602, 6
-[border-left-width] DECLARATION_PROPERTY - 608, 17
-[ ] S - 625, 1
-[:] DECLARATION_SEPARATOR - 626, 1
-[ ] S - 627, 1
-[7] DECLARATION_VALUE_NUMBER - 628, 1
-[
-] S - 629, 2
-[}] RBRACE - 631, 1
-[
-
-] S - 632, 4
-[H1] SELECTOR_ELEMENT_NAME - 636, 2
-[:before] SELECTOR_PSEUDO - 638, 7
-[ ] S - 645, 1
-[{] LBRACE - 646, 1
-[
- ] S - 647, 6
-[content] DECLARATION_PROPERTY - 653, 7
-[ ] S - 660, 1
-[:] DECLARATION_SEPARATOR - 661, 1
-[ ] S - 662, 1
-["Chapter "] DECLARATION_VALUE_STRING - 663, 10
-[ ] DECLARATION_VALUE_S - 673, 1
-[counter(] DECLARATION_VALUE_FUNCTION - 674, 8
-[ ] DECLARATION_VALUE_S - 682, 1
-[chapter] DECLARATION_VALUE_IDENT - 683, 7
-[ ] DECLARATION_VALUE_S - 690, 1
-[)] DECLARATION_VALUE_PARENTHESIS_CLOSE - 691, 1
-[ ] DECLARATION_VALUE_S - 692, 1
-[". "] DECLARATION_VALUE_STRING - 693, 4
-[;] DECLARATION_DELIMITER - 697, 1
-[
- ] S - 698, 6
-[counter-increment] DECLARATION_PROPERTY - 704, 17
-[ ] S - 721, 1
-[:] DECLARATION_SEPARATOR - 722, 1
-[ ] S - 723, 1
-[chapter] DECLARATION_VALUE_IDENT - 724, 7
-[;] DECLARATION_DELIMITER - 731, 1
-[
- ] S - 732, 6
-[counter-reset] DECLARATION_PROPERTY - 738, 13
-[ ] S - 751, 1
-[:] DECLARATION_SEPARATOR - 752, 1
-[ ] S - 753, 1
-[section] DECLARATION_VALUE_IDENT - 754, 7
-[
-] S - 761, 2
-[}] RBRACE - 763, 1
-[
-
-] S - 764, 4
-[IMG] SELECTOR_ELEMENT_NAME - 768, 3
-[:before] SELECTOR_PSEUDO - 771, 7
-[ ] S - 778, 1
-[{] LBRACE - 779, 1
-[content] DECLARATION_PROPERTY - 780, 7
-[ ] S - 787, 1
-[:] DECLARATION_SEPARATOR - 788, 1
-[ ] S - 789, 1
-[attr(] DECLARATION_VALUE_FUNCTION - 790, 5
-[alt] DECLARATION_VALUE_IDENT - 795, 3
-[)] DECLARATION_VALUE_PARENTHESIS_CLOSE - 798, 1
-[}] RBRACE - 799, 1
-[
-
-] S - 800, 4
-[DIV] SELECTOR_ELEMENT_NAME - 804, 3
-[.sample] SELECTOR_CLASS - 807, 7
-[ ] S - 814, 1
-[{] LBRACE - 815, 1
-[
- ] S - 816, 6
-[font-family] DECLARATION_PROPERTY - 822, 11
-[ ] S - 833, 1
-[:] DECLARATION_SEPARATOR - 834, 1
-[ ] S - 835, 1
-["Robson Celtic"] DECLARATION_VALUE_STRING - 836, 15
-[,] DECLARATION_VALUE_OPERATOR - 851, 1
-[ ] DECLARATION_VALUE_S - 852, 1
-[sans-serif] DECLARATION_VALUE_IDENT - 853, 10
-[;] DECLARATION_DELIMITER - 863, 1
-[
- ] S - 864, 6
-[position] DECLARATION_PROPERTY - 870, 8
-[ ] S - 878, 1
-[:] DECLARATION_SEPARATOR - 879, 1
-[ ] S - 880, 1
-[absolute] DECLARATION_VALUE_IDENT - 881, 8
-[;] DECLARATION_DELIMITER - 889, 1
-[
- ] S - 890, 6
-[left] DECLARATION_PROPERTY - 896, 4
-[ ] S - 900, 1
-[:] DECLARATION_SEPARATOR - 901, 1
-[ ] S - 902, 1
-[833.5pc] DECLARATION_VALUE_DIMENSION - 903, 7
-[;] DECLARATION_DELIMITER - 910, 1
-[
- ] S - 911, 6
-[top] DECLARATION_PROPERTY - 917, 3
-[ ] S - 920, 1
-[:] DECLARATION_SEPARATOR - 921, 1
-[ ] S - 922, 1
-[90%] DECLARATION_VALUE_PERCENTAGE - 923, 3
-[;] DECLARATION_DELIMITER - 926, 1
-[
- ] S - 927, 6
-[width] DECLARATION_PROPERTY - 933, 5
-[ ] S - 938, 1
-[:] DECLARATION_SEPARATOR - 939, 1
-[ ] S - 940, 1
-[100pt] DECLARATION_VALUE_DIMENSION - 941, 5
-[;] DECLARATION_DELIMITER - 946, 1
-[
- ] S - 947, 6
-[height] DECLARATION_PROPERTY - 953, 6
-[ ] S - 959, 1
-[:] DECLARATION_SEPARATOR - 960, 1
-[ ] S - 961, 1
-[110.777px] DECLARATION_VALUE_DIMENSION - 962, 9
-[;] DECLARATION_DELIMITER - 971, 1
-[
- ] S - 972, 6
-[clip] DECLARATION_PROPERTY - 978, 4
-[ ] S - 982, 1
-[:] DECLARATION_SEPARATOR - 983, 1
-[ ] S - 984, 1
-[rect(] DECLARATION_VALUE_FUNCTION - 985, 5
-[ ] DECLARATION_VALUE_S - 990, 1
-[-5px] DECLARATION_VALUE_IDENT - 991, 4
-[,] DECLARATION_VALUE_OPERATOR - 995, 1
-[ ] DECLARATION_VALUE_S - 996, 1
-[80px] DECLARATION_VALUE_DIMENSION - 997, 4
-[,] DECLARATION_VALUE_OPERATOR - 1001, 1
-[ ] DECLARATION_VALUE_S - 1002, 1
-[130px] DECLARATION_VALUE_DIMENSION - 1003, 5
-[,] DECLARATION_VALUE_OPERATOR - 1008, 1
-[ ] DECLARATION_VALUE_S - 1009, 1
-[0px] DECLARATION_VALUE_DIMENSION - 1010, 3
-[ ] DECLARATION_VALUE_S - 1013, 1
-[)] DECLARATION_VALUE_PARENTHESIS_CLOSE - 1014, 1
-[
-] S - 1015, 2
-[}] RBRACE - 1017, 1
-[
-
-] S - 1018, 4
-[@font-face] FONT_FACE - 1022, 10
-[ ] S - 1032, 1
-[{] LBRACE - 1033, 1
-[
- ] S - 1034, 6
-[font-family] DECLARATION_PROPERTY - 1040, 11
-[ ] S - 1051, 1
-[:] DECLARATION_SEPARATOR - 1052, 1
-[ ] S - 1053, 1
-["Swiss 721"] DECLARATION_VALUE_STRING - 1054, 11
-[;] DECLARATION_DELIMITER - 1065, 1
-[
- ] S - 1066, 6
-[src] DECLARATION_PROPERTY - 1072, 3
-[ ] S - 1075, 1
-[:] DECLARATION_SEPARATOR - 1076, 1
-[ ] S - 1077, 1
-[url("swiss721t.pfr")] DECLARATION_VALUE_URI - 1078, 20
-[ ] DECLARATION_VALUE_S - 1098, 1
-[format(] DECLARATION_VALUE_FUNCTION - 1099, 7
-["intellifont"] DECLARATION_VALUE_STRING - 1106, 13
-[)] DECLARATION_VALUE_PARENTHESIS_CLOSE - 1119, 1
-[,] DECLARATION_VALUE_OPERATOR - 1120, 1
-[ ] DECLARATION_VALUE_S - 1121, 1
-[local(] DECLARATION_VALUE_FUNCTION - 1122, 6
-["Excelsior Cyrilllic Upright"] DECLARATION_VALUE_STRING - 1128, 29
-[)] DECLARATION_VALUE_PARENTHESIS_CLOSE - 1157, 1
-[;] DECLARATION_DELIMITER - 1158, 1
-[
- ] S - 1159, 6
-[unicode-range] DECLARATION_PROPERTY - 1165, 13
-[ ] S - 1178, 1
-[:] DECLARATION_SEPARATOR - 1179, 1
-[ ] S - 1180, 1
-[U+??] DECLARATION_VALUE_UNICODE_RANGE - 1181, 4
-[,] DECLARATION_VALUE_OPERATOR - 1185, 1
-[ ] DECLARATION_VALUE_S - 1186, 1
-[U+100-220] DECLARATION_VALUE_UNICODE_RANGE - 1187, 9
-[,] DECLARATION_VALUE_OPERATOR - 1196, 1
-[ ] DECLARATION_VALUE_S - 1197, 1
-[U+4??] DECLARATION_VALUE_UNICODE_RANGE - 1198, 5
-[;] DECLARATION_DELIMITER - 1203, 1
-[
- ] S - 1204, 6
-[font-weight] DECLARATION_PROPERTY - 1210, 11
-[ ] S - 1221, 1
-[:] DECLARATION_SEPARATOR - 1222, 1
-[ ] S - 1223, 1
-[100] DECLARATION_VALUE_NUMBER - 1224, 3
-[,] DECLARATION_VALUE_OPERATOR - 1227, 1
-[ ] DECLARATION_VALUE_S - 1228, 1
-[200] DECLARATION_VALUE_NUMBER - 1229, 3
-[,] DECLARATION_VALUE_OPERATOR - 1232, 1
-[ ] DECLARATION_VALUE_S - 1233, 1
-[300] DECLARATION_VALUE_NUMBER - 1234, 3
-[,] DECLARATION_VALUE_OPERATOR - 1237, 1
-[ ] DECLARATION_VALUE_S - 1238, 1
-[400] DECLARATION_VALUE_NUMBER - 1239, 3
-[,] DECLARATION_VALUE_OPERATOR - 1242, 1
-[ ] DECLARATION_VALUE_S - 1243, 1
-[500] DECLARATION_VALUE_NUMBER - 1244, 3
-[
-] S - 1247, 2
-[}] RBRACE - 1249, 1
-[
-
-] S - 1250, 4
-[@page] PAGE - 1254, 5
-[ ] S - 1259, 1
-[:left] CSS_PAGE_SELECTOR - 1260, 5
-[ ] S - 1265, 1
-[{] LBRACE - 1266, 1
-[margin-left] DECLARATION_PROPERTY - 1267, 11
-[ ] S - 1278, 1
-[:] DECLARATION_SEPARATOR - 1279, 1
-[ ] S - 1280, 1
-[4cm] DECLARATION_VALUE_DIMENSION - 1281, 3
-[}] RBRACE - 1284, 1
-[
-
-] S - 1285, 4
-[@media] MEDIA - 1289, 6
-[ ] S - 1295, 1
-[aural] MEDIUM - 1296, 5
-[ ] S - 1301, 1
-[{] LBRACE - 1302, 1
-[
- ] S - 1303, 6
-[H1] SELECTOR_ELEMENT_NAME - 1309, 2
-[,] SELECTOR_SEPARATOR - 1311, 1
-[ ] S - 1312, 1
-[H2] SELECTOR_ELEMENT_NAME - 1313, 2
-[,] SELECTOR_SEPARATOR - 1315, 1
-[ ] S - 1316, 1
-[H3] SELECTOR_ELEMENT_NAME - 1317, 2
-[,] SELECTOR_SEPARATOR - 1319, 1
-[ ] S - 1320, 1
-[H4] SELECTOR_ELEMENT_NAME - 1321, 2
-[,] SELECTOR_SEPARATOR - 1323, 1
-[ ] S - 1324, 1
-[H5] SELECTOR_ELEMENT_NAME - 1325, 2
-[,] SELECTOR_SEPARATOR - 1327, 1
-[ ] S - 1328, 1
-[H6] SELECTOR_ELEMENT_NAME - 1329, 2
-[ ] S - 1331, 1
-[{] LBRACE - 1332, 1
-[
- ] S - 1333, 10
-[voice-family] DECLARATION_PROPERTY - 1343, 12
-[ ] S - 1355, 1
-[:] DECLARATION_SEPARATOR - 1356, 1
-[ ] S - 1357, 1
-[paul] DECLARATION_VALUE_IDENT - 1358, 4
-[,] DECLARATION_VALUE_OPERATOR - 1362, 1
-[ ] DECLARATION_VALUE_S - 1363, 1
-[child] DECLARATION_VALUE_IDENT - 1364, 5
-[;] DECLARATION_DELIMITER - 1369, 1
-[
- ] S - 1370, 10
-[stress] DECLARATION_PROPERTY - 1380, 6
-[ ] S - 1386, 1
-[:] DECLARATION_SEPARATOR - 1387, 1
-[ ] S - 1388, 1
-[20] DECLARATION_VALUE_NUMBER - 1389, 2
-[;] DECLARATION_DELIMITER - 1391, 1
-[
- ] S - 1392, 10
-[richness] DECLARATION_PROPERTY - 1402, 8
-[ ] S - 1410, 1
-[:] DECLARATION_SEPARATOR - 1411, 1
-[ ] S - 1412, 1
-[90] DECLARATION_VALUE_NUMBER - 1413, 2
-[;] DECLARATION_DELIMITER - 1415, 1
-[
- ] S - 1416, 10
-[cue-before] DECLARATION_PROPERTY - 1426, 10
-[ ] S - 1436, 1
-[:] DECLARATION_SEPARATOR - 1437, 1
-[ ] S - 1438, 1
-[url("ping.au")] DECLARATION_VALUE_URI - 1439, 14
-[
- ] S - 1453, 6
-[}] RBRACE - 1459, 1
-[
- ] S - 1460, 6
-[P] SELECTOR_ELEMENT_NAME - 1466, 1
-[.heidi] SELECTOR_CLASS - 1467, 6
-[ ] S - 1473, 1
-[{] LBRACE - 1474, 1
-[
- ] S - 1475, 10
-[azimuth] DECLARATION_PROPERTY - 1485, 7
-[ ] S - 1492, 1
-[:] DECLARATION_SEPARATOR - 1493, 1
-[ ] S - 1494, 1
-[center-left] DECLARATION_VALUE_IDENT - 1495, 11
-[;] DECLARATION_DELIMITER - 1506, 1
-[
- ] S - 1507, 10
-[elevation] DECLARATION_PROPERTY - 1517, 9
-[ ] S - 1526, 1
-[:] DECLARATION_SEPARATOR - 1527, 1
-[ ] S - 1528, 1
-[12.3deg] DECLARATION_VALUE_DIMENSION - 1529, 7
-[;] DECLARATION_DELIMITER - 1536, 1
-[
- ] S - 1537, 10
-[pause] DECLARATION_PROPERTY - 1547, 5
-[ ] S - 1552, 1
-[:] DECLARATION_SEPARATOR - 1553, 1
-[ ] S - 1554, 1
-[30ms] DECLARATION_VALUE_DIMENSION - 1555, 4
-[ ] DECLARATION_VALUE_S - 1559, 1
-[1.6s] DECLARATION_VALUE_DIMENSION - 1560, 4
-[
- ] S - 1564, 6
-[}] RBRACE - 1570, 1
-[
- ] S - 1571, 6
-[P] SELECTOR_ELEMENT_NAME - 1577, 1
-[.peter] SELECTOR_CLASS - 1578, 6
-[ ] S - 1584, 1
-[{] LBRACE - 1585, 1
-[
- ] S - 1586, 10
-[azimuth] DECLARATION_PROPERTY - 1596, 7
-[ ] S - 1603, 1
-[:] DECLARATION_SEPARATOR - 1604, 1
-[ ] S - 1605, 1
-[right] DECLARATION_VALUE_IDENT - 1606, 5
-[;] DECLARATION_DELIMITER - 1611, 1
-[
- ] S - 1612, 10
-[elevation] DECLARATION_PROPERTY - 1622, 9
-[ ] S - 1631, 1
-[:] DECLARATION_SEPARATOR - 1632, 1
-[ ] S - 1633, 1
-[-0.36rad] DECLARATION_VALUE_DIMENSION - 1634, 8
-[;] DECLARATION_DELIMITER - 1642, 1
-[
- ] S - 1643, 10
-[pitch] DECLARATION_PROPERTY - 1653, 5
-[ ] S - 1658, 1
-[:] DECLARATION_SEPARATOR - 1659, 1
-[ ] S - 1660, 1
-[210Hz] DECLARATION_VALUE_DIMENSION - 1661, 5
-[
- ] S - 1666, 6
-[}] RBRACE - 1672, 1
-[
- ] S - 1673, 6
-[P] SELECTOR_ELEMENT_NAME - 1679, 1
-[.goat] SELECTOR_CLASS - 1680, 5
-[ ] S - 1685, 1
-[{] LBRACE - 1686, 1
-[
- ] S - 1687, 10
-[volume] DECLARATION_PROPERTY - 1697, 6
-[ ] S - 1703, 1
-[:] DECLARATION_SEPARATOR - 1704, 1
-[ ] S - 1705, 1
-[x-soft] DECLARATION_VALUE_IDENT - 1706, 6
-[;] DECLARATION_DELIMITER - 1712, 1
-[
- ] S - 1713, 10
-[elevation] DECLARATION_PROPERTY - 1723, 9
-[ ] S - 1732, 1
-[:] DECLARATION_SEPARATOR - 1733, 1
-[ ] S - 1734, 1
-[66grad] DECLARATION_VALUE_DIMENSION - 1735, 6
-[;] DECLARATION_DELIMITER - 1741, 1
-[
- ] S - 1742, 10
-[pitch] DECLARATION_PROPERTY - 1752, 5
-[ ] S - 1757, 1
-[:] DECLARATION_SEPARATOR - 1758, 1
-[ ] S - 1759, 1
-[0.17kHz] DECLARATION_VALUE_DIMENSION - 1760, 7
-[
- ] S - 1767, 6
-[}] RBRACE - 1773, 1
-[
-] S - 1774, 2
-[}] RBRACE - 1776, 1
-[
-
-] S - 1777, 4
-
--------
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/sample01.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/sample01.css
deleted file mode 100644
index 3c89826..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/sample01.css
+++ /dev/null
@@ -1,8 +0,0 @@
-H1 {
-
- color: white
- ;
-
- background-color : black
-
-}
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/sample02.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/sample02.css
deleted file mode 100644
index 5a4c4dd..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/sample02.css
+++ /dev/null
@@ -1,11 +0,0 @@
-@import url("hoge.css");
-@import /* comment */ url(hoge.css);
-@import "hoge.css" /* comment */;
-@IMPORT 'hoge.css' ,media1,media2,,media3 media4,media5 @import media6;
-
-<!-- /* hogehoge */
-
--->
-
-/* comment 2 */
-kuso
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/sample03.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/sample03.css
deleted file mode 100644
index e57ccc0..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/sample03.css
+++ /dev/null
@@ -1,20 +0,0 @@
-@import url("../sample2.css");
-
-/* Sample Styles */
-
-BODY {
- color : black;
- background-color : rgb(181, 253, 211);
- text-align : center;
- font-family : "Heisei Mincho W3", serif
-}
-
-@page :left { margin-left : 4cm }
-
-@media aural {
- P.heidi {
- azimuth : center-left;
- elevation : 12.3deg;
- pause : 30ms 1.6s
- }
-}
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/sample04.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/sample04.css
deleted file mode 100644
index d2de4f4..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/sample04.css
+++ /dev/null
@@ -1,54 +0,0 @@
-@charset "ISO-8859-1";
-
-@import url("hoge.css");
-@import /* comment */ url(hoge.css);
-@import "hoge.css" /* comment */;
-@IMPORT 'hoge.css' media1,media2 , media3;
-
-@media print {
-
-}
-
-@page :left {
-
-}
-
-h1, h2, h3 { font-family: sans-serif }
-h1 em { color: blue }
-div p *[href] { color: blue }
-body > P { line-height: 1.3 }
-div ol>li p { }
-math + p { text-indent: 0 }
-h1.opener + h2 { margin-top: -5mm }
-h1[title] { color: blue; }
-span[class=example] { color: blue; }
-span[hello="Cleveland"][goodbye="Columbus"] { color: blue; }
-a[rel~="copyright"] { color: blue }
-a[href="http://www.w3.org/"] { color: blue }
-*[lang=fr] { display : none }
-*[lang|="en"] { color : red }
-DIALOGUE[character=romeo]
-{ voice-family: "Lawrence Olivier", charles, male }
-DIALOGUE[ character = juliet ]
-{ voice-family: "Vivien Leigh", victoria, female }
-*.pastoral { color: green }
-.pastoral { color: green }
-H1.pastoral { color: green }
-p.pastoral.marine { color: green }
-h1#chapter1 { text-align: center }
-div > p:first-child { text-indent: 0 }
-p:first-child em { font-weight : bold }
-* > a:first-child { font-weight : bold }
-a:first-child { font-weight : bold }
-a.external:visited { color: blue }
-a:focus:hover { background: white }
-html:lang(fr) { quotes: '<<' '>>' }
-html:lang(de) { quotes: '>>' '<<' '\2039' '\203A' }
-:lang(fr) > Q { quotes: '<<' '>>' }
-:lang(de) > Q { quotes: '>>' '<<' '\2039' '\203A' }
-p:first-letter { font-size: 3em; font-weight: normal }
-p.special:before { content: "Special! " }
-p.special:first-letter { color: #ffd800 }
-BODY { font-family: Baskerville, "Heisi Mincho W3", Symbol, serif }
-*:lang(ja-jp) { font: 900 14pt/16pt "Heisei Mincho W9", serif }
-*:lang(zh-tw) { font: 800 14pt/16.5pt "Li Sung", serif }
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/sample05.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/sample05.css
deleted file mode 100644
index d2de4f4..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/sample05.css
+++ /dev/null
@@ -1,54 +0,0 @@
-@charset "ISO-8859-1";
-
-@import url("hoge.css");
-@import /* comment */ url(hoge.css);
-@import "hoge.css" /* comment */;
-@IMPORT 'hoge.css' media1,media2 , media3;
-
-@media print {
-
-}
-
-@page :left {
-
-}
-
-h1, h2, h3 { font-family: sans-serif }
-h1 em { color: blue }
-div p *[href] { color: blue }
-body > P { line-height: 1.3 }
-div ol>li p { }
-math + p { text-indent: 0 }
-h1.opener + h2 { margin-top: -5mm }
-h1[title] { color: blue; }
-span[class=example] { color: blue; }
-span[hello="Cleveland"][goodbye="Columbus"] { color: blue; }
-a[rel~="copyright"] { color: blue }
-a[href="http://www.w3.org/"] { color: blue }
-*[lang=fr] { display : none }
-*[lang|="en"] { color : red }
-DIALOGUE[character=romeo]
-{ voice-family: "Lawrence Olivier", charles, male }
-DIALOGUE[ character = juliet ]
-{ voice-family: "Vivien Leigh", victoria, female }
-*.pastoral { color: green }
-.pastoral { color: green }
-H1.pastoral { color: green }
-p.pastoral.marine { color: green }
-h1#chapter1 { text-align: center }
-div > p:first-child { text-indent: 0 }
-p:first-child em { font-weight : bold }
-* > a:first-child { font-weight : bold }
-a:first-child { font-weight : bold }
-a.external:visited { color: blue }
-a:focus:hover { background: white }
-html:lang(fr) { quotes: '<<' '>>' }
-html:lang(de) { quotes: '>>' '<<' '\2039' '\203A' }
-:lang(fr) > Q { quotes: '<<' '>>' }
-:lang(de) > Q { quotes: '>>' '<<' '\2039' '\203A' }
-p:first-letter { font-size: 3em; font-weight: normal }
-p.special:before { content: "Special! " }
-p.special:first-letter { color: #ffd800 }
-BODY { font-family: Baskerville, "Heisi Mincho W3", Symbol, serif }
-*:lang(ja-jp) { font: 900 14pt/16pt "Heisei Mincho W9", serif }
-*:lang(zh-tw) { font: 800 14pt/16.5pt "Li Sung", serif }
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/sample06.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/sample06.css
deleted file mode 100644
index ea73cea..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/sample06.css
+++ /dev/null
@@ -1,10 +0,0 @@
-declaration {
- dimension : 100ex;
- function : rect(100, 200, 300, 400), format("intellifont"), local("Excelsior Cyrilllic Upright");
- hash : #aabbcc;
- ident : any;
- number : 99999;
- percentage : 100%;
- string : "string";
- unicode-range : U+??, U+100-220, U+4??;
-}
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/sample07.css b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/sample07.css
deleted file mode 100644
index fd34729..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/testfiles/sample07.css
+++ /dev/null
@@ -1,82 +0,0 @@
-@charset "ISO-8859-1";
-
-@import url("../sample2.css") projection, tv;
-
-BODY {
- color : black;
- text-align : center;
- background-color : rgb( 181, 253, 211 )
-}
-
-UL {
- color : black;
- list-style-image : url("images/l_a01.gif");
- list-style-position : outside
-}
-
-H1 {
- color : white;
- text-align : center;
- border-left-color : #996666;
- padding-top : 0px;
- padding-right : 1cm;
- padding-bottom : 2;
- padding-left : 3em;
- border-style : solid;
- border-top-width : 4.5ex;
- border-right-width : 5in;
- border-bottom-width : 6.02mm;
- border-left-width : 7
-}
-
-H1:before {
- content : "Chapter " counter( chapter ) ". ";
- counter-increment : chapter;
- counter-reset : section
-}
-
-IMG:before {content : attr(alt)}
-
-DIV.sample {
- font-family : "Robson Celtic", sans-serif;
- position : absolute;
- left : 833.5pc;
- top : 90%;
- width : 100pt;
- height : 110.777px;
- clip : rect( -5px, 80px, 130px, 0px )
-}
-
-@font-face {
- font-family : "Swiss 721";
- src : url("swiss721t.pfr") format("intellifont"), local("Excelsior Cyrilllic Upright");
- unicode-range : U+??, U+100-220, U+4??;
- font-weight : 100, 200, 300, 400, 500
-}
-
-@page :left {margin-left : 4cm}
-
-@media aural {
- H1, H2, H3, H4, H5, H6 {
- voice-family : paul, child;
- stress : 20;
- richness : 90;
- cue-before : url("ping.au")
- }
- P.heidi {
- azimuth : center-left;
- elevation : 12.3deg;
- pause : 30ms 1.6s
- }
- P.peter {
- azimuth : right;
- elevation : -0.36rad;
- pitch : 210Hz
- }
- P.goat {
- volume : x-soft;
- elevation : 66grad;
- pitch : 0.17kHz
- }
-}
-
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/util/FileUtil.java b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/util/FileUtil.java
deleted file mode 100644
index d7706d4..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/util/FileUtil.java
+++ /dev/null
@@ -1,103 +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.css.core.tests.util;
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.FileReader;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.Reader;
-import java.io.Writer;
-import java.net.URL;
-
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.wst.css.core.document.ICSSModel;
-import org.eclipse.wst.sse.core.IModelManager;
-import org.eclipse.wst.sse.core.IStructuredModel;
-import org.eclipse.wst.sse.core.StructuredModelManager;
-import org.osgi.framework.Bundle;
-
-/**
- *
- */
-public class FileUtil {
- public static final String commonEOL = "\r\n";
-
- public static File createFile(String directory, String filename) throws IOException {
- Bundle bundle = Platform.getBundle("org.eclipse.wst.css.core.tests"); //$NON-NLS-1$
- URL url = bundle.getEntry("/"); //$NON-NLS-1$
- URL localURL = Platform.asLocalURL(url);
- String installPath = localURL.getPath();
- String totalDirectory = installPath + directory;
- String totalPath = totalDirectory + "/" + filename; //$NON-NLS-1$
- URL totalURL = new URL(url, totalPath);
- String finalFile = totalURL.getFile();
- File file = new File(finalFile);
- return file;
- }
-
- // public static Reader createReader(File file) throws
- // FileNotFoundException {
- // return new FileReader(file);
- // }
- //
- // public static Reader createReader(String directory, String filename)
- // throws IOException {
- // File file = createFile(directory, filename);
- // return createReader(file);
- // }
-
- public static String createString(String directory, String filename) throws FileNotFoundException, IOException {
- StringBuffer buf = new StringBuffer();
- Reader fileReader = new FileReader(createFile(directory, filename));
- BufferedReader reader = new BufferedReader(fileReader);
- String line;
- while ((line = reader.readLine()) != null) {
- buf.append(line);
- buf.append(commonEOL);
- }
- return buf.toString();
- // return new DataInputStream(new
- // FileInputStream(createFile(directory, filename))).readUTF();
- }
-
- static int uniqueNum = 0;
-
- public static ICSSModel createModel() {
- IStructuredModel model = null;
- try {
-
- IModelManager modelManager = StructuredModelManager.getModelManager();
-
- model = modelManager.getModelForEdit("test" + uniqueNum++ + ".css", new NullInputStream(), null); //$NON-NLS-1$
-
- // always use the same line delimiter for these tests, regardless
- // of plaform or preference settings
- model.getStructuredDocument().setLineDelimiter(commonEOL);
-
-
- }
- catch (Exception e) {
- e.printStackTrace();
- }
- return (ICSSModel) model;
-
- }
-
- public static void dumpString(String string, String directory, String filename) throws IOException {
- File file = createFile(directory, filename);
- Writer writer = new FileWriter(file);
- writer.write(string);
- writer.close();
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/util/NullInputStream.java b/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/util/NullInputStream.java
deleted file mode 100644
index ad9b2fd..0000000
--- a/tests/org.eclipse.wst.css.core.tests/src/org/eclipse/wst/css/core/tests/util/NullInputStream.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 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
- * Jens Lukowski/Innoopract - initial renaming/restructuring
- *
- *******************************************************************************/
-package org.eclipse.wst.css.core.tests.util;
-
-import java.io.IOException;
-import java.io.InputStream;
-
-
-public class NullInputStream extends InputStream {
-
- /*
- * (non-Javadoc)
- *
- * @see java.io.InputStream#mark(int)
- */
- public synchronized void mark(int readlimit) {
- // nothing to do
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.io.InputStream#markSupported()
- */
- public boolean markSupported() {
- // we can mark nothing.
- // and, we are using this Null class specifically for
- // a "fake" resettable stream.
- return true;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.io.InputStream#read()
- */
- public int read() throws IOException {
-
- return -1;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.io.InputStream#reset()
- */
- public synchronized void reset() throws IOException {
- // nothing to do
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.io.InputStream#skip(long)
- */
- public long skip(long n) throws IOException {
- return 0;
- }
-}
diff --git a/tests/org.eclipse.wst.css.core.tests/test.xml b/tests/org.eclipse.wst.css.core.tests/test.xml
deleted file mode 100644
index c7b2786..0000000
--- a/tests/org.eclipse.wst.css.core.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}\..\.." /> -->
-
- <!-- sets the properties plugin-name, and library-file -->
- <property name="plugin-name" value="org.eclipse.wst.css.core.tests" />
- <property name="library-file" value="${eclipse-home}/plugins/org.eclipse.test_3.1.0/library.xml" />
-
- <echo message="basedir ${basedir}" />
- <echo message="eclipse place ${eclipse-home}" />
-
- <!-- 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.css.core.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.css.core.tests.CSSCoreTestSuite" />
- <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.css.core.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
diff --git a/tests/org.eclipse.wst.sse.core.tests/.classpath b/tests/org.eclipse.wst.sse.core.tests/.classpath
deleted file mode 100644
index 275b34c..0000000
--- a/tests/org.eclipse.wst.sse.core.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.sse.core.tests/.compatibility b/tests/org.eclipse.wst.sse.core.tests/.compatibility
deleted file mode 100644
index 5a04d8c..0000000
--- a/tests/org.eclipse.wst.sse.core.tests/.compatibility
+++ /dev/null
@@ -1,2 +0,0 @@
-#Wed Mar 24 13:53:52 EST 2004
-.project=12113
diff --git a/tests/org.eclipse.wst.sse.core.tests/.cvsignore b/tests/org.eclipse.wst.sse.core.tests/.cvsignore
deleted file mode 100644
index 7dd370a..0000000
--- a/tests/org.eclipse.wst.sse.core.tests/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-bin
-build.xml
-temp.folder
-ssemodeltests.jar
diff --git a/tests/org.eclipse.wst.sse.core.tests/.project b/tests/org.eclipse.wst.sse.core.tests/.project
deleted file mode 100644
index b073ff4..0000000
--- a/tests/org.eclipse.wst.sse.core.tests/.project
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.sse.core.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.sse.core.tests/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.wst.sse.core.tests/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 4ae7945..0000000
--- a/tests/org.eclipse.wst.sse.core.tests/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,48 +0,0 @@
-#Wed Jan 12 16:48:55 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.sse.core.tests/build.properties b/tests/org.eclipse.wst.sse.core.tests/build.properties
deleted file mode 100644
index 31a164e..0000000
--- a/tests/org.eclipse.wst.sse.core.tests/build.properties
+++ /dev/null
@@ -1,17 +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,\
- ssemodeltests.jar,\
- test.xml
-source.ssemodeltests.jar = src/
-output.ssemodeltests.jar = bin/
-src.includes = test.xml,\
- plugin.xml
diff --git a/tests/org.eclipse.wst.sse.core.tests/plugin.xml b/tests/org.eclipse.wst.sse.core.tests/plugin.xml
deleted file mode 100644
index 30a0633..0000000
--- a/tests/org.eclipse.wst.sse.core.tests/plugin.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.0"?>
-<plugin
- id="org.eclipse.wst.sse.core.tests"
- name="Tests Plug-in"
- version="1.0.0"
- provider-name="Eclipse.org"
- class="org.eclipse.wst.sse.core.tests.SSEModelTestsPlugin">
-
- <runtime>
- <library name="ssemodeltests.jar">
- <export name="*" />
- </library>
- </runtime>
- <requires>
- <import plugin="org.eclipse.core.resources" />
- <import plugin="org.junit" />
- <import plugin="org.eclipse.wst.sse.core"/>
- <import plugin="org.eclipse.core.runtime"/>
- </requires>
-
-
-<!--
- <extension point = "org.eclipse.wst.sse.core.adaptOnCreateFactory">
- <AdaptOnCreateFactory
- class="org.eclipse.wst.sse.core.tests.adaptdom.AdapterFactoryTestOnly"
- type="org.eclipse.wst.sse.core.tests.adaptdom.AdapterFactoryTestOnly"
- />
- </extension>
--->
-
-
-</plugin>
diff --git a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/ExistenceTest.java b/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/ExistenceTest.java
deleted file mode 100644
index b19ccdc..0000000
--- a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/ExistenceTest.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package org.eclipse.wst.sse.core.tests;
-
-
-import junit.framework.TestCase;
-
-import org.eclipse.wst.sse.core.internal.SSECorePlugin;
-
-
-public class ExistenceTest extends TestCase {
-
- public void testPluginExists(){
- assertNotNull(SSECorePlugin.getDefault());
- }
-}
diff --git a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/Logger.java b/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/Logger.java
deleted file mode 100644
index e2d6efc..0000000
--- a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/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.sse.core.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.sse.core.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.sse.core.tests/src/org/eclipse/wst/sse/core/tests/SSEModelTestSuite.java b/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/SSEModelTestSuite.java
deleted file mode 100644
index 2c5c850..0000000
--- a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/SSEModelTestSuite.java
+++ /dev/null
@@ -1,54 +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.sse.core.tests;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-
-public class SSEModelTestSuite extends TestSuite {
-
- /**
- * to get picked up by BVT
- *
- * @return
- */
- public static Test suite() {
- return new SSEModelTestSuite();
- }
-
- // not ready for threaded tests, yet.
- // private static Class[] classes = new Class[]{TestOfThreadLocalImprovement.class, TestOfThreadLocalWithChanges.class, TestCreation.class};
-
- // private static Class[] classes = new Class[]{TestCreation.class, TestDocumentReader.class};
- // private static Class[] classes = new Class[]{TestCreation.class, TestDocumentReader.class, TestCharSequenceReader.class, TestRegionMatches.class};
-
- private static Class[] classes = new Class[]{ExistenceTest.class};
-
- public SSEModelTestSuite() {
- super("SSE Model Basic Test Suite");
- for (int i = 0; i < classes.length; i++) {
- addTest(new TestSuite(classes[i], classes[i].getName()));
- }
- }
-
- public SSEModelTestSuite(Class theClass, String name) {
- super(theClass, name);
- }
-
- public SSEModelTestSuite(Class theClass) {
- super(theClass);
- }
-
- public SSEModelTestSuite(String name) {
- super(name);
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/SSEModelTestsPlugin.java b/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/SSEModelTestsPlugin.java
deleted file mode 100644
index bbd670d..0000000
--- a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/SSEModelTestsPlugin.java
+++ /dev/null
@@ -1,77 +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.sse.core.tests;
-
-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.Plugin;
-
-/**
- * The main plugin class to be used in the desktop.
- */
-public class SSEModelTestsPlugin extends Plugin {
- //The shared instance.
- private static SSEModelTestsPlugin plugin;
- //Resource bundle.
- private ResourceBundle resourceBundle;
-
- /**
- * The constructor.
- */
- public SSEModelTestsPlugin() {
- super();
- plugin = this;
- try {
- resourceBundle = ResourceBundle.getBundle("org.eclipse.wst.sse.core.tests.TestsPluginResources");
- }
- catch (MissingResourceException x) {
- resourceBundle = null;
- }
- }
-
- /**
- * Returns the shared instance.
- */
- public static SSEModelTestsPlugin getDefault() {
- return plugin;
- }
-
- /**
- * Returns the workspace instance.
- */
- public static IWorkspace getWorkspace() {
- return ResourcesPlugin.getWorkspace();
- }
-
- /**
- * Returns the string from the plugin's resource bundle,
- * or 'key' if not found.
- */
- public static String getResourceString(String key) {
- ResourceBundle bundle = SSEModelTestsPlugin.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.sse.core.tests/src/org/eclipse/wst/sse/core/tests/adaptdom/AdapterFactoryTestOnly.java b/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/adaptdom/AdapterFactoryTestOnly.java
deleted file mode 100644
index 66619ec..0000000
--- a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/adaptdom/AdapterFactoryTestOnly.java
+++ /dev/null
@@ -1,113 +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.sse.core.tests.adaptdom;
-
-import java.util.Iterator;
-
-import org.eclipse.wst.sse.core.AdapterFactory;
-import org.eclipse.wst.sse.core.INodeAdapter;
-import org.eclipse.wst.sse.core.INodeNotifier;
-import org.w3c.dom.Attr;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-
-/**
- * This class exists only to satisfy some of the unit tests.
- *
- * To test, use following line in client, such as when it intitialized.
- * FactoryRegistry.getFactoryRegistry().addFactory(new AdapterFactoryTestOnly());
- *
- * Creation date: (11/14/00 7:08:18 PM)
- * @author: David Williams
- */
-public class AdapterFactoryTestOnly implements AdapterFactory {
- // This factory deals with three adapters
- java.util.List adapters = new java.util.ArrayList();
-
- /**
- * CAAdapterFactory constructor.
- */
- public AdapterFactoryTestOnly() {
- super();
- adapters.add(new AdapterForDocumentTestOnly());
- adapters.add(new AdapterForElementTestOnly());
- adapters.add(new AdapterForAttrTestOnly());
- }
-
- /**
- * Method that returns the adapter associated with the this factory and the given object,
- * and "sets up" the adaptable object to use the adapter.
- *
- * The adapter may be a singleton or not ... depending on the needs of the INodeAdapter ...
- * but in general it is recommended for an adapter to be stateless,
- * so the efficiencies of a singleton can be gained.
- *
- * The implementation of this method should call addAdapter on the adapted
- * object with the correct instance of the adapter.
- */
- public INodeAdapter adapt(INodeNotifier target) {
- //object.addAdapter(adapterInstance);
- //return adapterInstance;
- INodeAdapter result = null;
-
- Iterator adaptersList = adapters.iterator();
- while (adaptersList.hasNext()) {
- INodeAdapter adapter = (INodeAdapter) adaptersList.next();
- if (adapter.isAdapterForType(target)) {
- INodeAdapter existingAdapter = target.getExistingAdapter(adapter);
- if (existingAdapter == null) {
- target.addAdapter(adapter);
- result = adapter;
- }
- }
- }
-
- return result;
-
- }
-
- /**
- * isFactoryForType method comment.
- */
- public boolean isFactoryForType(java.lang.Object type) {
- boolean result = false;
-
- // for now, one adapter for documents, elements, and attr.
- //
- if (type instanceof Document) {
- result = true;
- }
- else {
- if (type instanceof Element) {
- result = true;
- }
- else {
- if (type instanceof Attr) {
- result = true;
- }
- }
- }
-
- return result;
- }
-
- /**
- *
- */
- public void release() {
- }
-
- public AdapterFactory copy() {
- return new AdapterFactoryTestOnly();
- }
-
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/adaptdom/AdapterForAttrTestOnly.java b/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/adaptdom/AdapterForAttrTestOnly.java
deleted file mode 100644
index 8269ba7..0000000
--- a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/adaptdom/AdapterForAttrTestOnly.java
+++ /dev/null
@@ -1,47 +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.sse.core.tests.adaptdom;
-
-import org.eclipse.wst.sse.core.INodeAdapter;
-import org.eclipse.wst.sse.core.INodeNotifier;
-import org.w3c.dom.Attr;
-
-
-/**
- * Insert the type's description here.
- * Creation date: (1/9/01 3:37:01 PM)
- * @author: David Williams
- */
-public class AdapterForAttrTestOnly implements INodeAdapter {
- /**
- * CAAdapterTestOnly constructor comment.
- */
- public AdapterForAttrTestOnly() {
- super();
- }
-
- /**
- * Allowing the INodeAdapter to compare itself against the type
- * allows it to return true in more than one case.
- */
- public boolean isAdapterForType(Object type) {
- if (type instanceof Attr)
- return true;
- else
- return false;
- }
-
- /**
- */
- public void notifyChanged(INodeNotifier notifier, int eventType, Object changedFeature, Object oldValue, Object newValue, int pos) {
- System.out.println("INodeAdapter AdapterForAttrTestOnly " + this.hashCode() + " has been notified of " + INodeNotifier.EVENT_TYPE_STRINGS[eventType] + " (when " + notifier + " notified it)");
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/adaptdom/AdapterForDocumentTestOnly.java b/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/adaptdom/AdapterForDocumentTestOnly.java
deleted file mode 100644
index 7b7db09..0000000
--- a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/adaptdom/AdapterForDocumentTestOnly.java
+++ /dev/null
@@ -1,47 +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.sse.core.tests.adaptdom;
-
-import org.eclipse.wst.sse.core.INodeAdapter;
-import org.eclipse.wst.sse.core.INodeNotifier;
-import org.w3c.dom.Document;
-
-
-/**
- * Insert the type's description here.
- * Creation date: (1/9/01 3:37:01 PM)
- * @author: David Williams
- */
-public class AdapterForDocumentTestOnly implements INodeAdapter {
- /**
- * CAAdapterTestOnly constructor comment.
- */
- public AdapterForDocumentTestOnly() {
- super();
- }
-
- /**
- * Allowing the INodeAdapter to compare itself against the type
- * allows it to return true in more than one case.
- */
- public boolean isAdapterForType(Object type) {
- if (type instanceof Document)
- return true;
- else
- return false;
- }
-
- /**
- */
- public void notifyChanged(INodeNotifier notifier, int eventType, Object changedFeature, Object oldValue, Object newValue, int pos) {
- System.out.println("INodeAdapter AdapterForDocumentTestOnly " + this.hashCode() + " has been notified of " + INodeNotifier.EVENT_TYPE_STRINGS[eventType] + " (when " + notifier + " notified it)");
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/adaptdom/AdapterForElementTestOnly.java b/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/adaptdom/AdapterForElementTestOnly.java
deleted file mode 100644
index dbe1590..0000000
--- a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/adaptdom/AdapterForElementTestOnly.java
+++ /dev/null
@@ -1,47 +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.sse.core.tests.adaptdom;
-
-import org.eclipse.wst.sse.core.INodeAdapter;
-import org.eclipse.wst.sse.core.INodeNotifier;
-import org.w3c.dom.Element;
-
-
-/**
- * Insert the type's description here.
- * Creation date: (1/9/01 3:37:01 PM)
- * @author: David Williams
- */
-public class AdapterForElementTestOnly implements INodeAdapter {
- /**
- * CAAdapterTestOnly constructor comment.
- */
- public AdapterForElementTestOnly() {
- super();
- }
-
- /**
- * Allowing the INodeAdapter to compare itself against the type
- * allows it to return true in more than one case.
- */
- public boolean isAdapterForType(Object type) {
- if (type instanceof Element)
- return true;
- else
- return false;
- }
-
- /**
- */
- public void notifyChanged(INodeNotifier notifier, int eventType, Object changedFeature, Object oldValue, Object newValue, int pos) {
- System.out.println("INodeAdapter AdapterForElementTestOnly " + this.hashCode() + " has been notified of " + INodeNotifier.EVENT_TYPE_STRINGS[eventType] + " (when " + notifier + " notified it)");
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/document/TestCharSequenceReader.java b/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/document/TestCharSequenceReader.java
deleted file mode 100644
index 1a585c1..0000000
--- a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/document/TestCharSequenceReader.java
+++ /dev/null
@@ -1,194 +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.sse.core.tests.document;
-
-import java.io.IOException;
-
-import org.eclipse.wst.sse.core.internal.text.CharSequenceReader;
-
-import junit.framework.TestCase;
-
-
-
-public class TestCharSequenceReader extends TestCase {
-
-
- public TestCharSequenceReader() {
- super();
- }
-
-
- public TestCharSequenceReader(String name) {
- super(name);
- }
-
- String fStandardString = "test123";
-
- public void testStandardBeginning() {
- CharSequenceReader reader = new CharSequenceReader(fStandardString, 0, 3);
- char char1 = (char) reader.read();
- assertTrue(char1 == 't');
- char char2 = (char) reader.read();
- assertTrue(char2 == 'e');
- char char3 = (char) reader.read();
- assertTrue(char3 == 's');
- int eof = reader.read();
- assertTrue(eof == -1);
- }
-
- public void testStandardMiddle() {
- CharSequenceReader reader = new CharSequenceReader(fStandardString, 2, 3);
- char char1 = (char) reader.read();
- assertTrue(char1 == 's');
- char char2 = (char) reader.read();
- assertTrue(char2 == 't');
- char char3 = (char) reader.read();
- assertTrue(char3 == '1');
- int eof = reader.read();
- assertTrue(eof == -1);
- }
-
- public void testStandardEnd() {
- CharSequenceReader reader = new CharSequenceReader(fStandardString, 4, 3);
- char char1 = (char) reader.read();
- assertTrue(char1 == '1');
- char char2 = (char) reader.read();
- assertTrue(char2 == '2');
- char char3 = (char) reader.read();
- assertTrue(char3 == '3');
- int eof = reader.read();
- assertTrue(eof == -1);
- }
-
- public void testStandardOutOfRange() {
- CharSequenceReader reader = new CharSequenceReader(fStandardString, 50, 3);
- int eof = reader.read();
- assertTrue(eof == -1);
- }
-
- public void testStandardPartiallyOutOfRange() {
- CharSequenceReader reader = new CharSequenceReader(fStandardString, 5, 3);
- char char1 = (char) reader.read();
- assertTrue(char1 == '2');
- char char2 = (char) reader.read();
- assertTrue(char2 == '3');
- int eof = reader.read();
- assertTrue(eof == -1);
- }
-
- public void testBufferBegining() throws IOException {
- CharSequenceReader reader = new CharSequenceReader(fStandardString, 0, 3);
- String targetString = "tes";
-
- // intentionally small sized buffer
- char[] charbuffer = new char[2];
- StringBuffer stringBuffer = new StringBuffer();
- int nRead = 0;
- while (nRead != -1) {
- nRead = reader.read(charbuffer);
- if (nRead > 0) {
- stringBuffer.append(charbuffer, 0, nRead);
- }
- }
- String testString = stringBuffer.toString();
-
- assertEquals(targetString, testString);
-
- }
- public void testBufferEnd() throws IOException {
- CharSequenceReader reader = new CharSequenceReader(fStandardString, 4, 3);
- String targetString = "123";
-
- // intentionally small sized buffer
- char[] charbuffer = new char[2];
- StringBuffer stringBuffer = new StringBuffer();
- int nRead = 0;
- while (nRead != -1) {
- nRead = reader.read(charbuffer);
- if (nRead > 0) {
- stringBuffer.append(charbuffer, 0, nRead);
- }
- }
- String testString = stringBuffer.toString();
-
- assertEquals(targetString, testString);
-
- } public void testBufferEndEnlarged() throws IOException {
- CharSequenceReader reader = new CharSequenceReader(fStandardString, 4, 3);
- String targetString = "123";
-
- // intentionally small sized buffer
- char[] charbuffer = new char[200];
- StringBuffer stringBuffer = new StringBuffer();
- int nRead = 0;
- while (nRead != -1) {
- nRead = reader.read(charbuffer);
- if (nRead > 0) {
- stringBuffer.append(charbuffer, 0, nRead);
- }
- }
- String testString = stringBuffer.toString();
-
- assertEquals(targetString, testString);
-
- }
- public void testBufferBeginingEnlarged() throws IOException {
- CharSequenceReader reader = new CharSequenceReader(fStandardString, 0, 3);
- String targetString = "tes";
-
- // intentionally small sized buffer
- char[] charbuffer = new char[200];
- StringBuffer stringBuffer = new StringBuffer();
- int nRead = 0;
- while (nRead != -1) {
- nRead = reader.read(charbuffer);
- if (nRead > 0) {
- stringBuffer.append(charbuffer, 0, nRead);
- }
- }
- String testString = stringBuffer.toString();
-
- assertEquals(targetString, testString);
-
- }
- public void testBufferBeginingReduced() throws IOException {
- CharSequenceReader reader = new CharSequenceReader(fStandardString, 0, 3);
- String targetString = "te";
-
- // intentionally small sized buffer
- char[] charbuffer = new char[2];
- StringBuffer stringBuffer = new StringBuffer();
- int nRead = 0;
- //while (nRead != -1) {
- nRead = reader.read(charbuffer, 0, 2);
- if (nRead > 0) {
- stringBuffer.append(charbuffer, 0, nRead);
- }
- //}
- String testString = stringBuffer.toString();
-
- assertEquals(targetString, testString);
- /// now continue reading same reader
- targetString = "s";
- stringBuffer = new StringBuffer();
- nRead = 0;
- //while (nRead != -1) {
- nRead = reader.read(charbuffer, 0, 2);
- if (nRead > 0) {
- stringBuffer.append(charbuffer, 0, nRead);
- }
- //}
- testString = stringBuffer.toString();
- assertEquals(targetString, testString);
-
- }
-
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/document/TestRegionMatches.java b/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/document/TestRegionMatches.java
deleted file mode 100644
index c93d1aa..0000000
--- a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/document/TestRegionMatches.java
+++ /dev/null
@@ -1,93 +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.sse.core.tests.document;
-
-import org.eclipse.wst.sse.core.internal.text.StructuredDocumentTextStore;
-
-import junit.framework.TestCase;
-
-
-
-public class TestRegionMatches extends TestCase {
-
- /**
- *
- */
- public TestRegionMatches() {
- super();
-
- }
-
- /**
- * @param name
- */
- public TestRegionMatches(String name) {
- super(name);
-
- }
-
- public void testRegionMatches1() {
- StructuredDocumentTextStore structuredDocumentTextStore = new StructuredDocumentTextStore();
- structuredDocumentTextStore.set("testing123");
- boolean result = structuredDocumentTextStore.regionMatches(0, 1, "t");
- assertEquals(true, result);
- }
-
- public void testRegionMatches2() {
- StructuredDocumentTextStore structuredDocumentTextStore = new StructuredDocumentTextStore();
- structuredDocumentTextStore.set("testing123");
- boolean result = structuredDocumentTextStore.regionMatches(0, 2, "t");
- assertEquals(false, result);
- }
- public void testRegionMatches3() {
- StructuredDocumentTextStore structuredDocumentTextStore = new StructuredDocumentTextStore();
- structuredDocumentTextStore.set("testing123");
- boolean result = structuredDocumentTextStore.regionMatches(7, 3, "123");
- assertEquals(true, result);
- }
- public void testRegionMatches4() {
- StructuredDocumentTextStore structuredDocumentTextStore = new StructuredDocumentTextStore();
- structuredDocumentTextStore.set("testing123");
- boolean result = structuredDocumentTextStore.regionMatches(8, 3, "234");
- assertEquals(false, result);
- }
-
- public void testRegionMatchesIgnoreCase() {
- StructuredDocumentTextStore structuredDocumentTextStore = new StructuredDocumentTextStore();
- String test = "testing123";
- String compare = "TeSting123";
- structuredDocumentTextStore.set(test);
- boolean result = structuredDocumentTextStore.regionMatches(0, test.length(), compare);
- assertEquals(false, result);
- result = structuredDocumentTextStore.regionMatchesIgnoreCase(0, test.length(), compare);
- assertEquals(true, result);
- }
- public void testRegionMatchesIgnoreCase2() {
- StructuredDocumentTextStore structuredDocumentTextStore = new StructuredDocumentTextStore();
- String test = "test\u0130ng123";
- String compare = "TeStIng123";
- structuredDocumentTextStore.set(test);
- boolean result = structuredDocumentTextStore.regionMatches(0, test.length(), compare);
- assertEquals(false, result);
- result = structuredDocumentTextStore.regionMatchesIgnoreCase(0, test.length(), compare);
- assertEquals(true, result);
- }
- public void testRegionMatchesIgnoreCase3() {
- StructuredDocumentTextStore structuredDocumentTextStore = new StructuredDocumentTextStore();
- String test = "testing123";
- String compare = "TeSt\u0131ng123";
- structuredDocumentTextStore.set(test);
- boolean result = structuredDocumentTextStore.regionMatches(0, test.length(), compare);
- assertEquals(false, result);
- result = structuredDocumentTextStore.regionMatchesIgnoreCase(0, test.length(), compare);
- assertEquals(true, result);
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/examples/TestAtSign.java b/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/examples/TestAtSign.java
deleted file mode 100644
index 9d91000..0000000
--- a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/examples/TestAtSign.java
+++ /dev/null
@@ -1,42 +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.sse.core.tests.examples;
-
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.Properties;
-
-
-public class TestAtSign {
-
- public TestAtSign() {
- super();
- }
-
- public static void main(String[] args) throws IOException {
- Properties properties = new Properties(); //System.getProperties();
- properties.put("at sign", "this is an \u0040 sign");
- properties.list(System.out);
- FileOutputStream outputStream = new FileOutputStream("testAt.txt");
- properties.store(outputStream, "tests");
- outputStream.close();
- InputStream inStream = new FileInputStream("testAt.txt");
- Properties readProperties = new Properties();
- readProperties.load(inStream);
- String atSign = (String) readProperties.get("at sign");
- System.out.println("at sign from read: " + atSign);
-
-
-
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/life/EmptyModelForTests.java b/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/life/EmptyModelForTests.java
deleted file mode 100644
index ed2435a..0000000
--- a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/life/EmptyModelForTests.java
+++ /dev/null
@@ -1,31 +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.sse.core.tests.life;
-
-import org.eclipse.wst.sse.core.AbstractStructuredModel;
-import org.eclipse.wst.sse.core.IndexedRegion;
-
-
-
-public class EmptyModelForTests extends AbstractStructuredModel {
-
- public EmptyModelForTests() {
-
- super();
- // TODO Auto-generated constructor stub
- }
-
- public IndexedRegion getIndexedRegion(int offset) {
-
- // TODO Auto-generated method stub
- return null;
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/life/TestCreation.java b/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/life/TestCreation.java
deleted file mode 100644
index 832331d..0000000
--- a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/life/TestCreation.java
+++ /dev/null
@@ -1,70 +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.sse.core.tests.life;
-
-import org.eclipse.wst.sse.core.IStructuredModel;
-import org.eclipse.wst.sse.core.ModelLifecycleEvent;
-
-import junit.framework.TestCase;
-
-
-
-
-public class TestCreation extends TestCase {
- private boolean DEBUG = false;
-
- public void testCreation() {
- IStructuredModel structuredModel = new EmptyModelForTests();
- ModelLifecycleEvent event = new ModelLifecycleEvent(structuredModel, ModelLifecycleEvent.MODEL_RELEASED);
- if (DEBUG) {
- System.out.println(event);
- }
- event = new ModelLifecycleEvent(structuredModel, ModelLifecycleEvent.MODEL_DIRTY_STATE);
- if (DEBUG) {
- System.out.println(event);
- }
- event = new ModelLifecycleEvent(structuredModel, ModelLifecycleEvent.MODEL_DOCUMENT_CHANGED);
- if (DEBUG) {
- System.out.println(event);
- }
- /* event = new ModelLifecycleEvent(structuredModel, ModelLifecycleEvent.MODEL_REINITIALIZED);
- if (DEBUG) {
- System.out.println(event);
- }
- event = new ModelLifecycleEvent(structuredModel, ModelLifecycleEvent.ADAPTERS_NOTIFIED);
- if (DEBUG) {
- System.out.println(event);
- }
- event = new ModelLifecycleEvent(structuredModel, ModelLifecycleEvent.MODEL_RELOADED);
- if (DEBUG) {
- System.out.println(event);
- }
- event = new ModelLifecycleEvent(structuredModel, ModelLifecycleEvent.MODEL_RESOURCE_DELETED);
- if (DEBUG) {
- System.out.println(event);
- }
- event = new ModelLifecycleEvent(structuredModel, ModelLifecycleEvent.MODEL_RESOURCE_MOVED);
- if (DEBUG) {
- System.out.println(event);
- }
- */
- event = new ModelLifecycleEvent(structuredModel, ModelLifecycleEvent.MODEL_SAVED);
- if (DEBUG) {
- System.out.println(event);
- }
-
-
- // if gets to here without exception, assume ok.
- assertTrue(true);
-
-
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/threading/TestOfThreadLocalImprovement.java b/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/threading/TestOfThreadLocalImprovement.java
deleted file mode 100644
index f0e6a3f..0000000
--- a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/threading/TestOfThreadLocalImprovement.java
+++ /dev/null
@@ -1,187 +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.sse.core.tests.threading;
-
-import java.io.IOException;
-
-import junit.framework.TestCase;
-
-import org.eclipse.wst.sse.core.IModelManager;
-import org.eclipse.wst.sse.core.StructuredModelManager;
-import org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument;
-import org.eclipse.wst.sse.core.text.IStructuredDocument;
-import org.eclipse.wst.sse.core.text.IStructuredDocumentRegion;
-
-
-/**
- * To print out timings, set DEBUG_TEST to true, other wise, this test passes
- * if no exceptions thrown.
- */
-public class TestOfThreadLocalImprovement extends TestCase {
- // number of times a pair of tests (with and without) thread local are
- // repeated (for more accurate averages).
- int nTrials = 3;
- IStructuredDocument fDocument = null;
- private static final boolean DEBUG_TEST = false;
- private static final boolean DEBUG_TEST_DETAIL = false;
- // tests from 1 to MAX_TREADS-1 threads
- private int MAX_THREADS = 5;
- private long SLEEP_TIME = 0;
-
- public TestOfThreadLocalImprovement() throws IOException {
- super();
- }
-
- private final String getContent() {
- return "<test>" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "</test>";
- }
-
- private IStructuredDocument getDocument(String content) throws IOException {
- if (fDocument == null) {
- IModelManager modelManager = StructuredModelManager.getModelManager();
- fDocument = modelManager.createStructuredDocumentFor("testPerf.xml", content, null);
- }
- return fDocument;
- }
-
- void linkRunner(final Boolean direction, IStructuredDocument document) {
- IStructuredDocument structuredDocument = document;
- IStructuredDocumentRegion previousDocumentRegion = null;
- long startTime = System.currentTimeMillis();
- int start = 0;
- int length = structuredDocument.getLength();
- int nRegions = 0;
- for (int i = start; i < length; i++) {
- int index = i;
- if (!direction.booleanValue()) {
- index = (length - 1) - i;
- }
- IStructuredDocumentRegion currentDocumentRegion = structuredDocument.getRegionAtCharacterOffset(index);
- if (currentDocumentRegion != previousDocumentRegion) {
- nRegions++;
- previousDocumentRegion = currentDocumentRegion;
- }
- Thread.yield();
- try {
- Thread.sleep(SLEEP_TIME);
- }
- catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
- long endTime = System.currentTimeMillis();
- if (DEBUG_TEST_DETAIL) {
- System.out.println("Thread: " + Thread.currentThread() + " from " + length + " characters, found " + nRegions + " regions in " + (endTime - startTime) + " msecs.");
- }
- }
-
- private long dotestDocumentWalkingWithThreadLocal(int nThreads) throws IOException {
- BasicStructuredDocument.setUSE_LOCAL_THREAD(true);
- fDocument = getDocument(getContent());
- long startTimeOverall = System.currentTimeMillis();
- doDocumentWalking(nThreads);
- long endTimeOverall = System.currentTimeMillis();
- long finalOverall = endTimeOverall - startTimeOverall;
- if (DEBUG_TEST_DETAIL) {
- System.out.println("Overall time using Local_Thread: " + finalOverall);
- }
- return finalOverall;
- }
-
- private long dotestDocumentWalkingWithoutThreadLocal(int nThreads) throws IOException {
- BasicStructuredDocument.setUSE_LOCAL_THREAD(false);
- fDocument = getDocument(getContent());
- long startTimeOverall = System.currentTimeMillis();
- doDocumentWalking(nThreads);
- long endTimeOverall = System.currentTimeMillis();
- long finalOverall = endTimeOverall - startTimeOverall;
- if (DEBUG_TEST_DETAIL) {
- System.out.println("Overall time NOT using Local_Thread: " + finalOverall);
- }
- return finalOverall;
- }
-
- private void doDocumentWalking(int nThreads) throws IOException {
- Thread[] threads = new Thread[nThreads];
- boolean toggle = true;
- for (int i = 0; i < threads.length; i++) {
- final Boolean direction = new Boolean(toggle);
- toggle = !toggle;
- ThreadGroup threadGroup = new ThreadGroup("sse unit tests");
- Thread thread = new Thread(threadGroup, new Runnable() {
- public void run() {
- linkRunner(direction, fDocument);
- }
- }, ("sse unit test thread " + i));
- // I used MIN_PRIORITY since that makes it easier to "see" in debugger list of threads
- thread.setPriority(Thread.MIN_PRIORITY);
- threads[i] = thread;
- }
- for (int i = 0; i < threads.length; i++) {
- threads[i].start();
- }
- try {
- for (int i = 0; i < threads.length; i++) {
- threads[i].join();
-
- }
- }
- catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- public void testNThreads() throws IOException {
- for (int i = 1; i < MAX_THREADS; i++) {
- int nThreads = i;
- if (DEBUG_TEST_DETAIL) {
- System.out.println(" >>>>---- N Threads: " + i);
- }
- float woCumm = 0;
- float wCumm = 0;
-
- for (int j = 0; j < nTrials; j++) {
- woCumm = woCumm + dotestDocumentWalkingWithoutThreadLocal(nThreads);
- wCumm = wCumm + dotestDocumentWalkingWithThreadLocal(nThreads);
- }
- float averageWO = woCumm / nTrials;
- float averageW = wCumm / nTrials;
- float perThreadWO = averageWO / nThreads;
- float perThreadW = averageW / nThreads;
- int roundedWO = new Float(perThreadWO).intValue();
- int roundedW = new Float(perThreadW).intValue();
- if (DEBUG_TEST) {
- System.out.println("Average per thread: without: " + roundedWO + " with: " + roundedW);
- System.out.println(" <<<<<---- N Threads: " + i);
- }
- }
- // if gets to here (with no exceptions) all is ok.
- assertTrue(0 == 0);
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/threading/TestOfThreadLocalWithChanges.java b/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/threading/TestOfThreadLocalWithChanges.java
deleted file mode 100644
index 506de0e..0000000
--- a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/threading/TestOfThreadLocalWithChanges.java
+++ /dev/null
@@ -1,191 +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.sse.core.tests.threading;
-
-import java.io.IOException;
-import java.util.Random;
-
-import junit.framework.TestCase;
-
-import org.eclipse.wst.sse.core.IModelManager;
-import org.eclipse.wst.sse.core.StructuredModelManager;
-import org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument;
-import org.eclipse.wst.sse.core.text.IStructuredDocument;
-import org.eclipse.wst.sse.core.text.IStructuredDocumentRegion;
-
-
-/**
- * This class started off as copy of TestOfThreadLocalImprovements, and I just
- * added another thread with modifies the document.
- */
-public class TestOfThreadLocalWithChanges extends TestCase {
- // number of times a pair of tests (with and without) thread local are
- // repeated (for more accurate averages).
- int nTrials = 3;
- IStructuredDocument fDocument = null;
- private static final boolean DEBUG_TEST_DETAIL = false;
- // tests from 1 to MAX_TREADS-1 threads
- private int MAX_THREADS = 14;
- private long SLEEP_TIME = 2;
- private int N_CHANGES = 10000;
-
- public TestOfThreadLocalWithChanges() throws IOException {
- super();
- }
-
- private final String getContent() {
- return "<test>" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)"
- + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "<extra> <junk> to make a <large/> file (over <1000> chars)" + "</test>";
- }
-
- private IStructuredDocument getDocument(String content) throws IOException {
- if (fDocument == null) {
- IModelManager modelManager = StructuredModelManager.getModelManager();
- fDocument = modelManager.createStructuredDocumentFor("testPerf.xml", content, null);
- }
- return fDocument;
- }
-
- void linkRunner(final Boolean direction, IStructuredDocument document) {
- IStructuredDocument structuredDocument = document;
- IStructuredDocumentRegion previousDocumentRegion = null;
- long startTime = System.currentTimeMillis();
- int start = 0;
- int length = structuredDocument.getLength();
- int nRegions = 0;
- // I made length "dynamic" after adding modification thread
- for (int i = start; i < structuredDocument.getLength(); i++) {
- int index = i;
- if (!direction.booleanValue()) {
- int currentLength = structuredDocument.getLength();
- index = (currentLength - 1) - i;
- }
- IStructuredDocumentRegion currentDocumentRegion = structuredDocument.getRegionAtCharacterOffset(index);
- if (currentDocumentRegion != previousDocumentRegion) {
- nRegions++;
- previousDocumentRegion = currentDocumentRegion;
- }
- Thread.yield();
- try {
- Thread.sleep(SLEEP_TIME);
- }
- catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
- long endTime = System.currentTimeMillis();
- if (DEBUG_TEST_DETAIL) {
- System.out.println("Thread: " + Thread.currentThread() + " from " + length + " characters, found " + nRegions + " regions in " + (endTime - startTime) + " msecs.");
- }
- }
-
- private long dotestDocumentWalkingWithThreadLocal(int nThreads) throws IOException {
- BasicStructuredDocument.setUSE_LOCAL_THREAD(true);
- fDocument = getDocument(getContent());
- long startTimeOverall = System.currentTimeMillis();
- doDocumentWalking(nThreads);
- long endTimeOverall = System.currentTimeMillis();
- long finalOverall = endTimeOverall - startTimeOverall;
- if (DEBUG_TEST_DETAIL) {
- System.out.println("Overall time using Local_Thread: " + finalOverall);
- }
- return finalOverall;
- }
-
- private void doDocumentWalking(int nThreads) throws IOException {
- Thread[] threads = new Thread[nThreads];
- boolean toggle = true;
- for (int i = 0; i < threads.length; i++) {
- final Boolean direction = new Boolean(toggle);
- // toggle controls whether moves from start to end, or end to start
- // of document.
- toggle = !toggle;
- ThreadGroup threadGroup = new ThreadGroup("unit tests");
- Thread thread = new Thread(threadGroup, new Runnable() {
- public void run() {
- linkRunner(direction, fDocument);
- }
- }, ("sse unit test thread " + i));
- // I used MIN_PRIORITY since that makes it easier to "see" in
- // debugger list of threads
- thread.setPriority(Thread.MIN_PRIORITY);
- threads[i] = thread;
- }
- for (int i = 0; i < threads.length; i++) {
- threads[i].start();
- }
- // now that "readers" have started, we'll start a modification thread
- // too
- Thread modifyingThread = new Thread(new Runnable() {
- public void run() {
- modifiyDocument(fDocument);
- }
- }, ("sse unit test modification thread "));
- // I used MAX_PRIORITY to be sure lots of modifications take place
- modifyingThread.setPriority(Thread.MIN_PRIORITY);
- modifyingThread.start();
- try {
- for (int i = 0; i < threads.length; i++) {
- threads[i].join();
- }
- modifyingThread.join();
- }
- catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- void modifiyDocument(IStructuredDocument document) {
- Random random = new Random();
- for (int i = 0; i < N_CHANGES + 1; i++) {
- int randomOffset = random.nextInt(document.getLength());
- // 100 just seems like a good maximum length to replace
- // (could play with in future).
- int randomLength = random.nextInt(100);
- // if we "accidently" get more than the length, just skipit
- if (randomOffset + randomLength < document.getLength()) {
- document.replaceText(this, randomOffset, randomLength, "testingtext");
- }
- }
- }
-
- public void testNThreads() throws IOException {
- for (int i = 1; i < MAX_THREADS; i++) {
- int nThreads = i;
- if (DEBUG_TEST_DETAIL) {
- System.out.println(" >>>>---- N Threads: " + i);
- }
- float wCumm = 0;
- for (int j = 0; j < nTrials; j++) {
- wCumm = wCumm + dotestDocumentWalkingWithThreadLocal(nThreads);
- }
- }
- // if gets to here (with no exceptions) all is ok.
- assertTrue(0 == 0);
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/threading/ThreadLocalExample.java b/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/threading/ThreadLocalExample.java
deleted file mode 100644
index 747d01f..0000000
--- a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/threading/ThreadLocalExample.java
+++ /dev/null
@@ -1,86 +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.sse.core.tests.threading;
-
-import java.util.Random;
-
-/**
- * See http://java.sun.com/developer/JDCTechTips/2003/tt1208.html#2 for
- * informative article.
- */
-public class ThreadLocalExample {
-
- // Create thread local class
- // Initial value is a random number from 0-999
- private static class MyThreadLocal extends ThreadLocal {
- private Random innerRandom = new Random();
-
- protected Object initialValue() {
- return new Integer(innerRandom.nextInt(1000));
- }
- }
-
- // Create class variable
- static volatile int counter = 0;
-
- // Define/create thread local variable
- static ThreadLocal threadLocal = new MyThreadLocal();
-
- // For random number generation
- // static Random random = new Random();
-
- // Displays thread local variable, counter,
- // and thread name
- static void displayValues() {
- System.out.println(threadLocal.get() + "\t" + counter + "\t" + Thread.currentThread().getName());
- }
-
- public static void main(String args[]) {
-
- // Each thread increments counter
- // Displays variable info
- // And sleeps for the random amount of time
- // Before displaying info again
- Runnable runner = new Runnable() {
- public void run() {
- synchronized (ThreadLocalExample.class) {
- counter++;
- }
- displayValues();
- try {
- Thread.sleep(((Integer) threadLocal.get()).intValue());
- displayValues();
- }
- catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
- };
-
- // Another instance of class created
- // and values displayed
- displayValues();
-
- // Here's where the other threads
- // are actually created
- for (int i = 0; i < 5; i++) {
- Thread t = new Thread(runner);
- t.start();
- }
- }
-
- /**
- *
- */
- public ThreadLocalExample() {
- super();
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/threading/ThreadLocalInstanceExample.java b/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/threading/ThreadLocalInstanceExample.java
deleted file mode 100644
index 5d08f59..0000000
--- a/tests/org.eclipse.wst.sse.core.tests/src/org/eclipse/wst/sse/core/tests/threading/ThreadLocalInstanceExample.java
+++ /dev/null
@@ -1,90 +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.sse.core.tests.threading;
-
-import java.util.Random;
-
-/**
- * See http://java.sun.com/developer/JDCTechTips/2003/tt1208.html#2 for
- * informative article.
- */
-public class ThreadLocalInstanceExample {
-
- // Create thread local class
- // Initial value is a random number from 0-999
- private class MyThreadLocal extends ThreadLocal {
- private Random innerRandom = new Random();
-
- protected Object initialValue() {
- return new Integer(innerRandom.nextInt(1000));
- }
- }
-
- // Create class variable
- static volatile int counter = 0;
-
- // Define/create thread local variable
- ThreadLocal threadLocal = new MyThreadLocal();
-
- // For random number generation
- // static Random random = new Random();
-
- // Displays thread local variable, counter,
- // and thread name
- void displayValues() {
- System.out.println(threadLocal.get() + "\t" + counter + "\t" + Thread.currentThread().getName());
- }
-
- public static void main(String args[]) {
- new ThreadLocalInstanceExample().startRun();
- }
-
- private void startRun() {
-
- // Each thread increments counter
- // Displays variable info
- // And sleeps for the random amount of time
- // Before displaying info again
- Runnable runner = new Runnable() {
- public void run() {
- synchronized (this) {
- counter++;
- }
- displayValues();
- try {
- Thread.sleep(((Integer) threadLocal.get()).intValue());
- displayValues();
- }
- catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
- };
-
- // Another instance of class created
- // and values displayed
- displayValues();
-
- // Here's where the other threads
- // are actually created
- for (int i = 0; i < 5; i++) {
- Thread t = new Thread(runner);
- t.start();
- }
- }
-
- /**
- *
- */
- public ThreadLocalInstanceExample() {
- super();
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.sse.core.tests/test.xml b/tests/org.eclipse.wst.sse.core.tests/test.xml
deleted file mode 100644
index cd6833b..0000000
--- a/tests/org.eclipse.wst.sse.core.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.sse.core.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.sse.core.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.sse.core.tests.SSEModelTestSuite" />
- <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.sse.core.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
diff --git a/tests/org.eclipse.wst.sse.ui.tests/.classpath b/tests/org.eclipse.wst.sse.ui.tests/.classpath
deleted file mode 100644
index 065ac06..0000000
--- a/tests/org.eclipse.wst.sse.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.sse.ui.tests/.compatibility b/tests/org.eclipse.wst.sse.ui.tests/.compatibility
deleted file mode 100644
index 7bc3730..0000000
--- a/tests/org.eclipse.wst.sse.ui.tests/.compatibility
+++ /dev/null
@@ -1,2 +0,0 @@
-#Wed Mar 24 13:53:52 EST 2004
-.project=6174
diff --git a/tests/org.eclipse.wst.sse.ui.tests/.cvsignore b/tests/org.eclipse.wst.sse.ui.tests/.cvsignore
deleted file mode 100644
index f72a1d8..0000000
--- a/tests/org.eclipse.wst.sse.ui.tests/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-bin
-build.xml
-temp.folder
-sseeditortests.jar
diff --git a/tests/org.eclipse.wst.sse.ui.tests/.project b/tests/org.eclipse.wst.sse.ui.tests/.project
deleted file mode 100644
index 0b072b9..0000000
--- a/tests/org.eclipse.wst.sse.ui.tests/.project
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.sse.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.sse.ui.tests/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.wst.sse.ui.tests/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index f6ccc0d..0000000
--- a/tests/org.eclipse.wst.sse.ui.tests/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,48 +0,0 @@
-#Wed Jan 12 16:49:03 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.sse.ui.tests/build.properties b/tests/org.eclipse.wst.sse.ui.tests/build.properties
deleted file mode 100644
index 5303a96..0000000
--- a/tests/org.eclipse.wst.sse.ui.tests/build.properties
+++ /dev/null
@@ -1,17 +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
-###############################################################################
-source.sseeditortests.jar = src/
-output.sseeditortests.jar = bin/
-bin.includes = plugin.xml,\
- sseeditortests.jar,\
- test.xml
-src.includes = plugin.xml,\
- test.xml
diff --git a/tests/org.eclipse.wst.sse.ui.tests/icons/sourceEditor.gif b/tests/org.eclipse.wst.sse.ui.tests/icons/sourceEditor.gif
deleted file mode 100644
index 75ebdb8..0000000
--- a/tests/org.eclipse.wst.sse.ui.tests/icons/sourceEditor.gif
+++ /dev/null
Binary files differ
diff --git a/tests/org.eclipse.wst.sse.ui.tests/plugin.xml b/tests/org.eclipse.wst.sse.ui.tests/plugin.xml
deleted file mode 100644
index 1b6bbba..0000000
--- a/tests/org.eclipse.wst.sse.ui.tests/plugin.xml
+++ /dev/null
@@ -1,103 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.0"?>
-<plugin
- id="org.eclipse.wst.sse.ui.tests"
- name="Structured Source Editor Tests"
- version="1.0.0"
- provider-name="Eclipse.org"
- class="org.eclipse.wst.sse.ui.tests.SSETestsPlugin">
-
- <runtime>
- <library name="sseeditortests.jar">
- <export name="*"/>
- </library>
- </runtime>
- <requires>
- <import plugin="org.eclipse.ui"/>
- <import plugin="org.eclipse.ui.ide"/>
- <import plugin="org.eclipse.wst.sse.ui"/>
- <import plugin="org.eclipse.wst.sse.core"/>
- <import plugin="org.junit"/>
- <import plugin="org.eclipse.core.resources"/>
- <import plugin="org.eclipse.ui.workbench.texteditor"/>
- <import plugin="org.eclipse.ui.editors"/>
- <import plugin="org.eclipse.jface.text"/>
- <import plugin="org.eclipse.core.runtime"/>
- </requires>
-
- <extension
- point="org.eclipse.ui.editors">
- <editor
- default="true"
- name="Source Page Editor"
- extensions="project, classpath, websettings, serverPreference"
- icon="icons/sourceEditor.gif"
- class="org.eclipse.wst.sse.ui.StructuredTextEditor"
- contributorClass="org.eclipse.wst.sse.ui.edit.util.ActionContributor"
- id="org.eclipse.wst.sse.ui.StructuredTextEditor.test">
- </editor>
- </extension>
-<!-- Editor actionsets -->
- <extension
- point="org.eclipse.ui.actionSetPartAssociations">
- <actionSetPartAssociation
- targetID="org.eclipse.ui.edit.text.actionSet.annotationNavigation">
- <part
- id="org.eclipse.wst.sse.ui.StructuredTextEditor.test">
- </part>
- </actionSetPartAssociation>
- <actionSetPartAssociation
- targetID="org.eclipse.ui.NavigateActionSet">
- <part
- id="org.eclipse.wst.sse.ui.StructuredTextEditor.test">
- </part>
- </actionSetPartAssociation>
- </extension>
-
- <extension
- point="org.eclipse.ui.views">
- <category
- name="SSE Testing"
- id="org.eclipse.wst.sse.ui.tests">
- </category>
- <view
- name="ExtendedStorageEditorInput Management Tester"
- category="org.eclipse.wst.sse.ui.tests"
- class="org.eclipse.wst.sse.ui.tests.ExtendedStorageEditorInputView"
- id="org.eclipse.wst.sse.ui.tests.ExtendedStorageEditorInputView">
- </view>
- <view
- name="Action Tester"
- category="org.eclipse.wst.sse.ui.tests"
- class="org.eclipse.wst.sse.ui.tests.ActionTestView"
- id="org.eclipse.wst.sse.ui.tests.ActionTestView">
- </view>
- </extension>
-
- <extension point="org.eclipse.ui.popupMenus">
- <viewerContribution
- targetID="org.eclipse.wst.sse.ui.StructuredTextEditor.context"
- id="org.eclipse.wst.sse.ui.tests.test">
- <action
- label="org.eclipse.ui.popupMenus Test Action"
- class="org.eclipse.wst.sse.ui.tests.TestActionDelegate"
- menubarPath="additions"
- id="org.eclipse.wst.sse.ui.tests.test.1"/>
- </viewerContribution>
- </extension>
-
- <extension point="org.eclipse.wst.sse.ui.extendedconfiguration">
- <configuration
- type="linestyleprovider"
- class="org.eclipse.wst.sse.ui.tests.TestLineStyleProvider"
- target="org.eclipse.wst.html.SCRIPT.language.BLUE" />
- <configuration
- type="linestyleprovider"
- class="org.eclipse.wst.sse.ui.tests.TestLineStyleProvider"
- target="org.eclipse.wst.html.SCRIPT.type.TEXT/BLUE" />
- <configuration
- type="linestyleprovider"
- class="org.eclipse.wst.sse.ui.tests.TestLineStyleProvider"
- target="org.eclipse.jst.jsp.SCRIPT.BLUE" />
- </extension>
-</plugin>
diff --git a/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/ActionTestView.java b/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/ActionTestView.java
deleted file mode 100644
index 26f5e90..0000000
--- a/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/ActionTestView.java
+++ /dev/null
@@ -1,158 +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.sse.ui.tests;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jface.action.Action;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.action.IContributionItem;
-import org.eclipse.jface.text.Document;
-import org.eclipse.jface.text.IDocument;
-import org.eclipse.jface.text.ITextViewer;
-import org.eclipse.jface.text.TextViewer;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.custom.StyledText;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.ui.IEditorPart;
-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.wst.sse.core.internal.builder.StructuredDocumentBuilder;
-
-
-/**
- * @author nitin
- *
- * A view to hang actions off of to execute arbitrary code at arbitrary times.
- */
-public class ActionTestView extends ViewPart {
-
- class RegisterBuilderAction extends Action {
- public RegisterBuilderAction() {
- super("Register SDMB");
- setToolTipText("Register Structured Document Builder");
- }
-
- public void run() {
- super.run();
- StructuredDocumentBuilder.add(new NullProgressMonitor(), ResourcesPlugin.getWorkspace().getRoot(), null);
- }
- }
-
- class RegisterBuilderActionWithContext extends Action {
- public RegisterBuilderActionWithContext() {
- super("Register SDMB w/UI");
- setToolTipText("Register Structured Document Builder with UI Context");
- }
-
- public void run() {
- super.run();
- StructuredDocumentBuilder.add(new NullProgressMonitor(), ResourcesPlugin.getWorkspace().getRoot(), fControl);
- }
- }
-
- class EmptyTextSetter extends Action {
- public EmptyTextSetter() {
- super("Set Text Editor text to empty");
- setToolTipText("Set Text Editor text to empty using set() API");
- }
-
- public void run() {
- super.run();
- IEditorPart editor = getViewSite().getPage().getActiveEditor();
- ITextEditor textEditor = null;
- if (editor instanceof ITextEditor)
- textEditor = (ITextEditor) editor;
- else
- textEditor = (ITextEditor) editor.getAdapter(ITextEditor.class);
- if (textEditor != null) {
- IDocument document = textEditor.getDocumentProvider().getDocument(editor.getEditorInput());
- document.set("");
- }
- else {
- print("Error getting IDocument.\n");
- }
- }
- }
-
- Control fControl = null;
-
- private List createActions() {
- List actions = new ArrayList();
-
- actions.add(new RegisterBuilderAction());
- actions.add(new RegisterBuilderActionWithContext());
- actions.add(new EmptyTextSetter());
-
- return actions;
- }
-
- /**
- * @return
- */
- private List createContribututions() {
- List actions = new ArrayList();
- return actions;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.IWorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
- */
- public void createPartControl(Composite parent) {
- ITextViewer text = new TextViewer(parent, SWT.READ_ONLY);
- text.setDocument(new Document());
- fControl = text.getTextWidget();
- text.getDocument().set("Use either the toolbar or the menu to run your actions\n\n");
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.IViewPart#init(org.eclipse.ui.IViewSite)
- */
- public void init(IViewSite site) throws PartInitException {
- super.init(site);
- List actions = createActions();
- for (int i = 0; i < actions.size(); i++) {
- site.getActionBars().getToolBarManager().add((IAction) actions.get(i));
- site.getActionBars().getMenuManager().add((IAction) actions.get(i));
- }
- List contributions = createContribututions();
- for (int i = 0; i < contributions.size(); i++) {
- site.getActionBars().getToolBarManager().add((IContributionItem) contributions.get(i));
- site.getActionBars().getMenuManager().add((IContributionItem) contributions.get(i));
- }
- }
-
- void print(String s) {
- ((StyledText) fControl).append(s);
- }
-
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.IWorkbenchPart#setFocus()
- */
- public void setFocus() {
- if (fControl != null && !fControl.isDisposed()) {
- fControl.setFocus();
- }
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/ExtendedStorageEditorInputView.java b/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/ExtendedStorageEditorInputView.java
deleted file mode 100644
index 8f2e025..0000000
--- a/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/ExtendedStorageEditorInputView.java
+++ /dev/null
@@ -1,568 +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.sse.ui.tests;
-
-import java.io.ByteArrayInputStream;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import java.io.InputStream;
-import java.nio.ByteBuffer;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Vector;
-
-import org.eclipse.core.resources.IStorage;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jface.action.Action;
-import org.eclipse.jface.action.MenuManager;
-import org.eclipse.jface.action.Separator;
-import org.eclipse.jface.dialogs.ErrorDialog;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.jface.util.Assert;
-import org.eclipse.jface.viewers.ArrayContentProvider;
-import org.eclipse.jface.viewers.DoubleClickEvent;
-import org.eclipse.jface.viewers.IDoubleClickListener;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.jface.viewers.ListViewer;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.FileDialog;
-import org.eclipse.swt.widgets.Menu;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.IEditorDescriptor;
-import org.eclipse.ui.IEditorRegistry;
-import org.eclipse.ui.IPersistableElement;
-import org.eclipse.ui.IViewSite;
-import org.eclipse.ui.IWorkbench;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.editors.text.EditorsUI;
-import org.eclipse.ui.part.ViewPart;
-import org.eclipse.ui.texteditor.IElementStateListener;
-import org.eclipse.wst.sse.core.util.StringUtils;
-import org.eclipse.wst.sse.ui.extensions.breakpoint.IExtendedStorageEditorInput;
-
-
-/**
- *
- * @author nitin
- *
- * A view to assist in testing out ExtendedStorageEditorInput handling.
- * In-progress.
- */
-public class ExtendedStorageEditorInputView extends ViewPart {
-
- class AddInputAction extends Action {
- public AddInputAction() {
- super("Add");
- }
-
- public void run() {
- super.run();
- FileDialog dlg = new FileDialog(getListViewer().getControl().getShell());
- String fileName = dlg.open();
- if (fileName != null) {
- fInputs.add(new FileStorageEditorInput(new File(fileName)));
- getListViewer().refresh(true);
- }
- }
- }
-
- class FileBackedStorage implements IStorage {
- File fFile = null;
-
- FileBackedStorage(File file) {
- super();
- fFile = file;
- }
-
- boolean exists() {
- return fFile.exists();
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
- */
- public Object getAdapter(Class adapter) {
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.core.resources.IStorage#getContents()
- */
- public InputStream getContents() throws CoreException {
- InputStream contents = null;
- try {
- contents = new FileInputStream(fFile);
- ByteBuffer buffer = ByteBuffer.allocate((int) fFile.length());
- byte[] bytes = new byte[2048];
- while (contents.available() > 0) {
- int count = contents.read(bytes);
- buffer.put(bytes, 0, count);
- }
- contents.close();
-
- contents = new ByteArrayInputStream(buffer.array());
- } catch (FileNotFoundException e) {
- contents = new ByteArrayInputStream(new byte[0]);
- } catch (IOException e) {
- contents = new ByteArrayInputStream(new byte[0]);
- }
- return contents;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.core.resources.IStorage#getFullPath()
- */
- public IPath getFullPath() {
- return new Path(fFile.getAbsolutePath());
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.core.resources.IStorage#getName()
- */
- public String getName() {
- return fFile.getName();
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.core.resources.IStorage#isReadOnly()
- */
- public boolean isReadOnly() {
- return true;
- }
- }
-
- class FileStorageEditorInputLabelProvider extends LabelProvider {
- public String getText(Object element) {
- String text = super.getText(element);
- Assert.isTrue(element instanceof FileStorageEditorInput);
- try {
- text = ((FileStorageEditorInput) element).getStorage().getFullPath().toString();
- if (((FileStorageEditorInput) element).isDirty()) {
- text = "*" + text;
- }
- } catch (CoreException e) {
- }
- return text;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.jface.viewers.LabelProvider#getImage(java.lang.Object)
- */
- public Image getImage(Object element) {
- return null;
- }
- }
-
- class FileStorageEditorInput implements IExtendedStorageEditorInput {
- List fElementStateListeners = new Vector(0);
- boolean fIsDirty = false;
- FileBackedStorage fStorage = null;
-
- File getFile() {
- return fStorage.fFile;
- }
-
- FileStorageEditorInput(File file) {
- fStorage = new FileBackedStorage(file);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.sse.ui.extensions.breakpoint.IExtendedStorageEditorInput#addElementStateListener(org.eclipse.ui.texteditor.IElementStateListener)
- */
- public void addElementStateListener(IElementStateListener listener) {
- fElementStateListeners.add(listener);
- }
-
- void elementContentAboutToBeReplaced() {
- for (int i = 0; i < fElementStateListeners.size(); i++) {
- ((IElementStateListener) fElementStateListeners.get(i)).elementContentAboutToBeReplaced(FileStorageEditorInput.this);
- }
- }
-
- void elementContentReplaced() {
- for (int i = 0; i < fElementStateListeners.size(); i++) {
- ((IElementStateListener) fElementStateListeners.get(i)).elementContentReplaced(FileStorageEditorInput.this);
- }
- }
-
- void elementDeleted() {
- for (int i = 0; i < fElementStateListeners.size(); i++) {
- ((IElementStateListener) fElementStateListeners.get(i)).elementDeleted(FileStorageEditorInput.this);
- }
- }
-
- void elementDirtyStateChanged(boolean dirty) {
- setDirty(dirty);
- for (int i = 0; i < fElementStateListeners.size(); i++) {
- ((IElementStateListener) fElementStateListeners.get(i)).elementDirtyStateChanged(FileStorageEditorInput.this, dirty);
- }
- }
-
- void elementMoved(Object oldElement, Object newElement) {
- for (int i = 0; i < fElementStateListeners.size(); i++) {
- ((IElementStateListener) fElementStateListeners.get(i)).elementMoved(FileStorageEditorInput.this, FileStorageEditorInput.this);
- }
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.IEditorInput#exists()
- */
- public boolean exists() {
- return fStorage.exists();
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
- */
- public Object getAdapter(Class adapter) {
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.IEditorInput#getImageDescriptor()
- */
- public ImageDescriptor getImageDescriptor() {
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.IEditorInput#getName()
- */
- public String getName() {
- return fStorage.getName();
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.IEditorInput#getPersistable()
- */
- public IPersistableElement getPersistable() {
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.IStorageEditorInput#getStorage()
- */
- public IStorage getStorage() throws CoreException {
- return fStorage;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.IEditorInput#getToolTipText()
- */
- public String getToolTipText() {
- return fStorage.getFullPath().toString();
- }
-
- boolean isDirty() {
- return fIsDirty;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.sse.ui.extensions.breakpoint.IExtendedStorageEditorInput#removeElementStateListener(org.eclipse.ui.texteditor.IElementStateListener)
- */
- public void removeElementStateListener(IElementStateListener listener) {
- fElementStateListeners.remove(listener);
- }
-
- void setDirty(boolean dirty) {
- fIsDirty = dirty;
- }
- }
-
- class InputChangeDirtyStateAction extends Action {
- public InputChangeDirtyStateAction() {
- super("Toggle dirty flag");
- }
-
- public void run() {
- super.run();
- FileStorageEditorInput[] inputs = getSelectedInputs();
- for (int i = 0; i < inputs.length; i++) {
- inputs[i].elementDirtyStateChanged(!inputs[i].isDirty());
- }
- getListViewer().refresh(true);
- }
-
- }
-
- class InputDeleteAction extends Action {
- public InputDeleteAction() {
- super("Delete Input");
- }
-
- public void run() {
- super.run();
- FileStorageEditorInput[] inputs = getSelectedInputs();
- for (int i = 0; i < inputs.length; i++) {
- inputs[i].elementDeleted();
- }
- for (int i = 0; i < inputs.length; i++) {
- fInputs.remove(inputs[i]);
- }
- getListViewer().refresh();
- }
- }
-
- class InputMoveAction extends Action {
- public InputMoveAction() {
- super("Move Input");
- }
-
- public void run() {
- super.run();
- FileStorageEditorInput[] inputs = getSelectedInputs();
- for (int i = 0; i < inputs.length; i++) {
- inputs[i].elementMoved(inputs[i], inputs[i]);
- }
- }
- }
-
- class InputOpenAction extends Action {
- public InputOpenAction() {
- super("Open");
- }
-
- public void run() {
- super.run();
- FileStorageEditorInput[] inputs = getSelectedInputs();
- for (int i = 0; i < inputs.length; i++) {
- try {
- getSite().getWorkbenchWindow().getActivePage().openEditor(inputs[i], getEditorId(inputs[i].getName()));
- } catch (PartInitException e) {
- openError(getSite().getWorkbenchWindow().getActivePage().getWorkbenchWindow().getShell(), "OpenSystemEditorAction.dialogTitle", e.getMessage(), e);
- }
- }
- }
- }
-
- /**
- * Open an error style dialog for PartInitException by including any extra
- * information from the nested CoreException if present.
- */
- public static void openError(Shell parent, String title, String message, PartInitException exception) {
- // Check for a nested CoreException
- CoreException nestedException = null;
- IStatus status = exception.getStatus();
- if (status != null && status.getException() instanceof CoreException)
- nestedException = (CoreException) status.getException();
-
- if (nestedException != null) {
- // Open an error dialog and include the extra
- // status information from the nested CoreException
- ErrorDialog.openError(parent, title, message, nestedException.getStatus());
- } else {
- // Open a regular error dialog since there is no
- // extra information to display
- MessageDialog.openError(parent, title, message);
- }
- }
-
-
- class InputReplaceContentsAction extends Action {
- public InputReplaceContentsAction() {
- super("Replace Input's Contents");
- }
-
- public void run() {
- super.run();
- FileStorageEditorInput[] inputs = getSelectedInputs();
- for (int i = 0; i < inputs.length; i++) {
- inputs[i].elementContentAboutToBeReplaced();
- inputs[i].elementContentReplaced();
- }
- }
- }
-
- class RemoveInputAction extends Action {
- public RemoveInputAction() {
- super("Remove");
- }
-
- public void run() {
- super.run();
- FileStorageEditorInput[] inputs = getSelectedInputs();
- for (int i = 0; i < inputs.length; i++) {
- fInputs.remove(inputs[i]);
- }
- getListViewer().refresh();
- }
- }
-
- ListViewer fInputList = null;
-
- List fInputs = new ArrayList(0);
-
- class DoubleClickListener implements IDoubleClickListener {
- public void doubleClick(DoubleClickEvent event) {
- new InputOpenAction().run();
- }
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.IWorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
- */
- public void createPartControl(Composite parent) {
- fInputList = new ListViewer(parent, SWT.MULTI);
- fInputList.setContentProvider(new ArrayContentProvider());
- fInputList.setLabelProvider(new FileStorageEditorInputLabelProvider());
- fInputList.addDoubleClickListener(new DoubleClickListener());
-
- MenuManager menuManager = new MenuManager("#popup"); //$NON-NLS-1$
- menuManager.setRemoveAllWhenShown(false);
-
- menuManager.add(new InputOpenAction());
- menuManager.add(new Separator());
- menuManager.add(new InputMoveAction());
- menuManager.add(new InputChangeDirtyStateAction());
- menuManager.add(new InputDeleteAction());
- menuManager.add(new InputReplaceContentsAction());
- menuManager.add(new Separator());
- menuManager.add(new RemoveInputAction());
- Menu menu = menuManager.createContextMenu(fInputList.getControl());
- fInputList.getControl().setMenu(menu);
-
-
- SSETestsPlugin.getDefault().getPluginPreferences().setDefault(getInputsPreferenceName(), "");
- String paths[] = StringUtils.unpack(SSETestsPlugin.getDefault().getPluginPreferences().getString(getInputsPreferenceName()));
- for (int i = 0; i < paths.length; i++) {
- fInputs.add(new FileStorageEditorInput(new File(paths[i])));
- }
-
- fInputList.setInput(fInputs);
- }
-
-
- String getEditorId(String filename) {
- IWorkbench workbench = PlatformUI.getWorkbench();
- IEditorRegistry editorRegistry = workbench.getEditorRegistry();
- IEditorDescriptor descriptor = editorRegistry.getDefaultEditor(filename);
- if (descriptor != null)
- return descriptor.getId();
- return EditorsUI.DEFAULT_TEXT_EDITOR_ID;
- }
-
- ListViewer getListViewer() {
- return fInputList;
- }
-
- FileStorageEditorInput[] getSelectedInputs() {
- ISelection selection = getListViewer().getSelection();
- if (selection instanceof IStructuredSelection) {
- IStructuredSelection sel = (IStructuredSelection) selection;
- if (sel.isEmpty()) {
- return new FileStorageEditorInput[0];
- } else {
- Object[] arr = sel.toArray();
- FileStorageEditorInput[] inputs = new FileStorageEditorInput[arr.length];
- System.arraycopy(arr, 0, inputs, 0, inputs.length);
- return inputs;
- }
- }
- return new FileStorageEditorInput[0];
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.IWorkbenchPart#dispose()
- */
- public void dispose() {
- List paths = new ArrayList(0);
- for (int i = 0; i < fInputs.size(); i++) {
- try {
- String path = ((FileStorageEditorInput) fInputs.get(i)).getFile().getCanonicalPath();
- paths.add(path);
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
- SSETestsPlugin.getDefault().getPluginPreferences().setValue(getInputsPreferenceName(), StringUtils.pack((String[]) paths.toArray(new String[0])));
- SSETestsPlugin.getDefault().savePluginPreferences();
- }
-
- /**
- * @return
- */
- String getInputsPreferenceName() {
- return "ExtendedStorageEditorInputView:inputs";
- }
-
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.IViewPart#init(org.eclipse.ui.IViewSite)
- */
- public void init(IViewSite site) throws PartInitException {
- super.init(site);
- site.getActionBars().getToolBarManager().add(new AddInputAction());
- site.getActionBars().getToolBarManager().add(new RemoveInputAction());
-
- site.getActionBars().getMenuManager().add(new InputOpenAction());
- site.getActionBars().getMenuManager().add(new Separator());
- site.getActionBars().getMenuManager().add(new InputMoveAction());
- site.getActionBars().getMenuManager().add(new InputChangeDirtyStateAction());
- site.getActionBars().getMenuManager().add(new InputDeleteAction());
- site.getActionBars().getMenuManager().add(new InputReplaceContentsAction());
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.IWorkbenchPart#setFocus()
- */
- public void setFocus() {
- getListViewer().getControl().setFocus();
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/Logger.java b/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/Logger.java
deleted file mode 100644
index d37e8a0..0000000
--- a/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/Logger.java
+++ /dev/null
@@ -1,154 +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.sse.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.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.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/SSETestsPlugin.java b/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/SSETestsPlugin.java
deleted file mode 100644
index 5c4d91e..0000000
--- a/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/SSETestsPlugin.java
+++ /dev/null
@@ -1,66 +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.sse.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 SSETestsPlugin extends Plugin {
- //The shared instance.
- private static SSETestsPlugin plugin;
- //Resource bundle.
- private ResourceBundle resourceBundle;
-
- /**
- * The constructor.
- */
- public SSETestsPlugin() {
- super();
- plugin = this;
- try {
- resourceBundle = ResourceBundle.getBundle("org.eclipse.wst.sse.ui.tests.TestsPluginResources");
- } catch (MissingResourceException x) {
- resourceBundle = null;
- }
- }
-
- /**
- * Returns the shared instance.
- */
- public static SSETestsPlugin 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 = SSETestsPlugin.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.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/SSEUITestSuite.java b/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/SSEUITestSuite.java
deleted file mode 100644
index 08d64e0..0000000
--- a/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/SSEUITestSuite.java
+++ /dev/null
@@ -1,29 +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.sse.ui.tests;
-
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-/**
- * @author pavery
- */
-public class SSEUITestSuite extends TestSuite {
- public static Test suite() {
- return new SSEUITestSuite();
- }
-
- public SSEUITestSuite() {
- super("SSE UI Test Suite");
- addTest(new TestSuite(VerifyEditorPlugin.class));
- }
-}
diff --git a/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/TestActionDelegate.java b/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/TestActionDelegate.java
deleted file mode 100644
index 96feed2..0000000
--- a/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/TestActionDelegate.java
+++ /dev/null
@@ -1,88 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 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.sse.ui.tests;
-
-import org.eclipse.jface.action.Action;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.ui.IEditorActionDelegate;
-import org.eclipse.ui.IEditorPart;
-
-/**
- * @author nsd
- *
- */
-public class TestActionDelegate extends Action implements IEditorActionDelegate {
- IEditorPart editor = null;
- IAction action = null;
-
- /**
- *
- */
- public TestActionDelegate() {
- super();
- }
-
- /**
- * @param text
- */
- public TestActionDelegate(String text) {
- super(text);
- }
-
- /**
- * @param text
- * @param image
- */
- public TestActionDelegate(String text, ImageDescriptor image) {
- super(text, image);
- }
-
- /**
- * @param text
- * @param style
- */
- public TestActionDelegate(String text, int style) {
- super(text, style);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.IEditorActionDelegate#setActiveEditor(org.eclipse.jface.action.IAction,
- * org.eclipse.ui.IEditorPart)
- */
- public void setActiveEditor(IAction targetAction, IEditorPart targetEditor) {
- editor = targetEditor;
- action = targetAction;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
- */
- public void run(IAction runAction) {
- MessageDialog.openInformation(editor.getEditorSite().getShell(), "Test", "Completed");
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
- * org.eclipse.jface.viewers.ISelection)
- */
- public void selectionChanged(IAction action, ISelection selection) {
- }
-}
diff --git a/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/TestEmailNotice.java b/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/TestEmailNotice.java
deleted file mode 100644
index c4c3eea..0000000
--- a/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/TestEmailNotice.java
+++ /dev/null
@@ -1,27 +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.sse.ui.tests;
-
-import junit.framework.TestCase;
-
-public class TestEmailNotice extends TestCase {
- private boolean sendNotifications = false;
-
- public TestEmailNotice() {
- super();
- }
-
- public TestEmailNotice(String name) {
- super(name);
- }
-
- public void testEmail() {
- assertFalse("Simple test to be sure email gets sent on failure", sendNotifications);
- }
-}
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/TestLineStyleProvider.java b/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/TestLineStyleProvider.java
deleted file mode 100644
index 69da04f..0000000
--- a/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/TestLineStyleProvider.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 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.sse.ui.tests;
-
-import java.util.Collection;
-
-import org.eclipse.jface.text.ITypedRegion;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.custom.StyleRange;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.RGB;
-import org.eclipse.wst.sse.core.text.IStructuredDocument;
-import org.eclipse.wst.sse.ui.style.Highlighter;
-import org.eclipse.wst.sse.ui.style.LineStyleProvider;
-import org.eclipse.wst.sse.ui.util.EditorUtility;
-
-public class TestLineStyleProvider implements LineStyleProvider {
-
- Color foreground = null;
-
- /**
- *
- */
- public TestLineStyleProvider() {
- super();
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.sse.ui.style.LineStyleProvider#init(org.eclipse.wst.sse.core.text.IStructuredDocument,
- * org.eclipse.wst.sse.ui.style.Highlighter)
- */
- public void init(IStructuredDocument document, Highlighter highlighter) {
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.sse.ui.style.LineStyleProvider#prepareRegions(org.eclipse.jface.text.ITypedRegion,
- * int, int, java.util.Collection)
- */
- public boolean prepareRegions(ITypedRegion currentRegion, int start, int length, Collection styleRanges) {
- // make everything bold grey
- if (foreground == null)
- foreground = EditorUtility.getColor(new RGB(127, 127, 127));
- styleRanges.add(new StyleRange(start, length, foreground, null, SWT.BOLD));
- return true;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.sse.ui.style.LineStyleProvider#release()
- */
- public void release() {
- }
-
-}
diff --git a/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/VerifyEditorPlugin.java b/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/VerifyEditorPlugin.java
deleted file mode 100644
index 82851ce..0000000
--- a/tests/org.eclipse.wst.sse.ui.tests/src/org/eclipse/wst/sse/ui/tests/VerifyEditorPlugin.java
+++ /dev/null
@@ -1,68 +0,0 @@
-package org.eclipse.wst.sse.ui.tests;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import junit.framework.TestCase;
-
-import org.eclipse.core.runtime.Plugin;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.RGB;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.wst.sse.ui.EditorPlugin;
-
-/*****************************************************************************
- * 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
- *
- ****************************************************************************/
-
-public class VerifyEditorPlugin extends TestCase {
-
- List colorList = new ArrayList();
-
- public void testPluginExists() {
- Plugin plugin = null;
- try {
- plugin = EditorPlugin.getDefault();
-
- } catch (Exception e) {
- plugin = null;
- }
- assertNotNull("sse editor plugin could not be instantiated", plugin);
-
- }
- /**
- * The purpose of this test is just to test if we can directly create
- * lots of RBG colors, even if display set to "256" (on Linux).
- * And, BTW, it does not fail even with 256 colors set, at least
- * on Linux, in dev. env. Varying all three RGB numbers, though,
- * it is easy to run out of memory!
- *
- */
- public void testColorHandles() {
- Display display = Display.getCurrent();
- if (display == null) display = Display.getDefault();
- assertNotNull("display could not be instantiated", display);
- for (int i = 0; i < 256; i++) {
- for (int j = 0; j < 256; j++) {
-// 256 cubed runs out of memory
-// for (int k = 0; k < 256; k++) {
- colorList.add(
- new Color(display,
- new RGB(i,j,50)
- )
- );
-// }
-
- }
-
- }
- // if we get this far without error, all is ok.
- assertTrue(true);
- }
-}
diff --git a/tests/org.eclipse.wst.sse.ui.tests/test.xml b/tests/org.eclipse.wst.sse.ui.tests/test.xml
deleted file mode 100644
index d3683fa..0000000
--- a/tests/org.eclipse.wst.sse.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.sse.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.sse.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="${workspace}" 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.sse.ui.tests.SSEUITestSuite" />
- <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.sse.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