Author: sdzmitrovich
Date: 2009-09-29 07:28:00 -0400 (Tue, 29 Sep 2009)
New Revision: 17789
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/pages/JBIDE/4940/
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/pages/JBIDE/4940/caseSensitiveTest.css
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/jbide/CaseSensitiveTest_JBIDE4940.java
Modified:
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSAllTests.java
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/jbide/IncorrectPageAfterSelectionTest_JBIDE4849.java
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/jbide/NotCompletedCSS_JBIDE4677.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4940
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/pages/JBIDE/4940/caseSensitiveTest.css
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/pages/JBIDE/4940/caseSensitiveTest.css
(rev 0)
+++
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/pages/JBIDE/4940/caseSensitiveTest.css 2009-09-29
11:28:00 UTC (rev 17789)
@@ -0,0 +1,3 @@
+.test {
+ COLOR: red;
+}
\ No newline at end of file
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/resources/cssTest/WebContent/pages/JBIDE/4940/caseSensitiveTest.css
___________________________________________________________________
Name: svn:mime-type
+ text/css
Name: svn:eol-style
+ native
Modified:
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSAllTests.java
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSAllTests.java 2009-09-29
11:02:02 UTC (rev 17788)
+++
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/CSSAllTests.java 2009-09-29
11:28:00 UTC (rev 17789)
@@ -14,6 +14,7 @@
import junit.framework.Test;
import junit.framework.TestSuite;
+import org.jboss.tools.jst.css.test.jbide.CaseSensitiveTest_JBIDE4940;
import org.jboss.tools.jst.css.test.jbide.ExtendingCSSViewTest_JBIDE4850;
import org.jboss.tools.jst.css.test.jbide.IncorrectPageAfterSelectionTest_JBIDE4849;
import org.jboss.tools.jst.css.test.jbide.InputFractionalValueTest_JBIDE4790;
@@ -41,6 +42,7 @@
suite.addTestSuite(ExtendingCSSViewTest_JBIDE4850.class);
suite.addTestSuite(NotCompletedCSS_JBIDE4677.class);
suite.addTestSuite(IncorrectPageAfterSelectionTest_JBIDE4849.class);
+ suite.addTestSuite(CaseSensitiveTest_JBIDE4940.class);
// $JUnit-END$
return new ProjectImportTestSetup(
Added:
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/jbide/CaseSensitiveTest_JBIDE4940.java
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/jbide/CaseSensitiveTest_JBIDE4940.java
(rev 0)
+++
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/jbide/CaseSensitiveTest_JBIDE4940.java 2009-09-29
11:28:00 UTC (rev 17789)
@@ -0,0 +1,62 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jst.css.test.jbide;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.ui.part.IPage;
+import org.eclipse.wst.sse.ui.StructuredTextEditor;
+import org.jboss.tools.jst.css.properties.CSSPropertyPage;
+import org.jboss.tools.jst.css.test.AbstractCSSViewTest;
+import org.jboss.tools.jst.css.view.CSSEditorView;
+import org.jboss.tools.test.util.JobUtils;
+
+/**
+ * @author Sergey Dzmitrovich
+ *
+ */
+public class CaseSensitiveTest_JBIDE4940 extends AbstractCSSViewTest {
+
+ public static final String TEST_PAGE_NAME =
"/JBIDE/4940/caseSensitiveTest.css"; //$NON-NLS-1$
+
+ public static final String TESTED_ATTRIBUTE = "color"; //$NON-NLS-1$
+
+ public void testCaseSensitive() throws CoreException,
+ SecurityException, IllegalArgumentException, NoSuchFieldException,
+ IllegalAccessException {
+
+ IFile pageFile = getComponentPath(TEST_PAGE_NAME, getProjectName());
+
+ assertNotNull(pageFile);
+
+ StructuredTextEditor editor = (StructuredTextEditor) openEditor(
+ pageFile, CSS_EDITOR_ID);
+
+ JobUtils.waitForIdle();
+
+ assertNotNull(editor);
+
+ CSSEditorView view = (CSSEditorView) openView(CSS_EDITOR_VIEW);
+
+ assertNotNull(view);
+
+ IPage page = view.getCurrentPage();
+
+ assertNotNull(page);
+
+ assertTrue(page instanceof CSSPropertyPage);
+
+ assertNotNull(((CSSPropertyPage) page).getStyleAttributes().get(
+ TESTED_ATTRIBUTE));
+
+ }
+
+}
Property changes on:
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/jbide/CaseSensitiveTest_JBIDE4940.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Modified:
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/jbide/IncorrectPageAfterSelectionTest_JBIDE4849.java
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/jbide/IncorrectPageAfterSelectionTest_JBIDE4849.java 2009-09-29
11:02:02 UTC (rev 17788)
+++
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/jbide/IncorrectPageAfterSelectionTest_JBIDE4849.java 2009-09-29
11:28:00 UTC (rev 17789)
@@ -28,7 +28,7 @@
public static final String TEST_PAGE_NAME =
"JBIDE/4849/incorrectPageTest.css"; //$NON-NLS-1$
- public void testInlineStyleEditing() throws CoreException,
+ public void testIncorrectPageAfterSelection() throws CoreException,
SecurityException, IllegalArgumentException, NoSuchFieldException,
IllegalAccessException {
Modified:
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/jbide/NotCompletedCSS_JBIDE4677.java
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/jbide/NotCompletedCSS_JBIDE4677.java 2009-09-29
11:02:02 UTC (rev 17788)
+++
trunk/jst/tests/org.jboss.tools.jst.css.test/src/org/jboss/tools/jst/css/test/jbide/NotCompletedCSS_JBIDE4677.java 2009-09-29
11:28:00 UTC (rev 17789)
@@ -28,7 +28,7 @@
public static final String TEST_PAGE_NAME = "JBIDE/4677/notCompletedCss.css";
//$NON-NLS-1$
- public void testInlineStyleEditing() throws CoreException,
+ public void testNotCompletedCSS() throws CoreException,
SecurityException, IllegalArgumentException, NoSuchFieldException,
IllegalAccessException {