Author: dgolovin
Date: 2009-10-06 06:31:53 -0400 (Tue, 06 Oct 2009)
New Revision: 17917
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/.classpath
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/.project
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/.settings/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/.settings/org.eclipse.jdt.core.prefs
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/META-INF/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/META-INF/MANIFEST.MF
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/editor/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/editor/BlockCommentTestLinesToggle.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/editor/BlockCommentTestToggle.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/editor/CommentTestUntoggle.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/editor/ToggleCommentTestToggle.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/editor/VerificationOfNameSpaces.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/log4j.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/Activator.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/ComparisonException.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/TestDomUtil.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/TestUtil.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/VPEAllTests.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/VPEAutoTestCase.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/BlockCommentTest$1.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/BlockCommentTest$2.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/BlockCommentTest.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/ToggleCommentTest$1.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/ToggleCommentTest.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/VPEEditorTestCase.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/VerificationOfNameSpacesTest.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/AddSubstitutedELExpressionFolderScopeTest.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/PageDesignTestCase.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/SubstitutedELTestCase.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/preferences/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/preferences/AlwaysHideSelectionBarWithoutPromptTest.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/preferences/BorderForUnknownTagsTest.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ChangeEditorTabForTheFirstOpenPageTest.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/preferences/PreferencesTestCase.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowNonVisualTagsTest.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowResourceBundlesUsageasELexpressionsTest.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowSelectionTagBarTest.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/jbide/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/jbide/JBIDE4556Test.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/palette/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/palette/CancelTagLibDefenitionTest.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/palette/ImportTagsFromTLDFileTest$1.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/palette/ImportTagsFromTLDFileTest$2.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/palette/ImportTagsFromTLDFileTest.class
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/pagedesign/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/pagedesign/AddSubstitutedELExpressionHelloPage.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/pagedesign/AddSubstitutedELExpressionTestPage.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/pagedesign/RemoveSubstitutedELExpressionHelloPage.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/pagedesign/RemoveSubstitutedELExpressionTestPage.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/preferences/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/preferences/DumpedTestPage.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/preferences/HideBorderForUnknownTag.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/preferences/HideResourceBundlesUsageasELExpressions.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/preferences/ShowBorderForUnknownTag.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/preferences/ShowNonVisualTags.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/preferences/ShowResourceBundlesUsageasELExpressions.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/projectProperties.properties
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/build.properties
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/BlockCommentTestLinesToggle.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/BlockCommentTestToggle.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/CommentTestUntoggle.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/ToggleCommentTestToggle.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/VerificationOfNameSpaces.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign/AddSubstitutedELExpressionHelloPage.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign/AddSubstitutedELExpressionTestPage.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign/RemoveSubstitutedELExpressionHelloPage.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign/RemoveSubstitutedELExpressionTestPage.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/DumpedTestPage.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/HideBorderForUnknownTag.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/HideResourceBundlesUsageasELExpressions.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/ShowBorderForUnknownTag.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/ShowNonVisualTags.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/ShowResourceBundlesUsageasELExpressions.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/projectProperties.properties
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-AddSubstitutedELExpressionFolderScopeTest.testAddSubstitutedELExpressionFolderScope.jpeg
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-AlwaysHideSelectionBarWithoutPromptTest.testAlwaysHideSelectionBarWithoutPrompt.jpeg
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-BlockCommentTest.testBlockComment.jpeg
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-BorderForUnknownTagsTest.testBorderForUnknownTags.jpeg
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-CancelTagLibDefenitionTest.testCancelTagLibDefenition.jpeg
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-ChangeEditorTabForTheFirstOpenPageTest.testChangeEditorTabForTheFirstOpenPage.jpeg
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-ImportTagsFromTLDFileTest.testImportTagsFromTLDFile.jpeg
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-JBIDE4556Test.testCancelTagLibDefenition.jpeg
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-ShowNonVisualTagsTest.testShowNonVisualTags.jpeg
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-ShowResourceBundlesUsageasELexpressionsTest.testShowResourceBundlesUsageasELexpressions.jpeg
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-ShowSelectionTagBarTest.testShowSelectionTagBar.jpeg
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-ToggleCommentTest.testToggleComment.jpeg
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-VerificationOfNameSpacesTest.testVerificationOfNameSpaces.jpeg
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/log4j.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/Activator.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/ComparisonException.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/TestDomUtil.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/TestUtil.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllTests.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAutoTestCase.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/BlockCommentTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/ToggleCommentTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/VPEEditorTestCase.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/VerificationOfNameSpacesTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/AddSubstitutedELExpressionFolderScopeTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/PageDesignTestCase.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/SubstitutedELTestCase.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/AlwaysHideSelectionBarWithoutPromptTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/BorderForUnknownTagsTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ChangeEditorTabForTheFirstOpenPageTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/PreferencesTestCase.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowNonVisualTagsTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowResourceBundlesUsageasELexpressionsTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowSelectionTagBarTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/jbide/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/jbide/JBIDE4556Test.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/palette/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/palette/CancelTagLibDefenitionTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/palette/ImportTagsFromTLDFileTest.java
Log:
share vpe swtbot tests with fixes to be runnable from tests builder
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/.classpath
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/.classpath
(rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/.classpath 2009-10-06 10:31:53 UTC
(rev 17917)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry exported="true" kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry exported="true" kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="resources"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/.project
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/.project (rev
0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/.project 2009-10-06 10:31:53 UTC (rev
17917)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.vpe.ui.bot.test</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>
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/.settings/org.eclipse.jdt.core.prefs 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,8 @@
+#Fri Jun 12 15:16:42 EEST 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/META-INF/MANIFEST.MF
(rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/META-INF/MANIFEST.MF 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,33 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: SWTBotTests
+Bundle-SymbolicName: org.jboss.tools.vpe.ui.bot.test
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.jboss.tools.vpe.ui.bot.test.Activator
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.jboss.tools.jst.ui.bot.test;bundle-version="1.0.0",
+ org.eclipse.swtbot.eclipse.core;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.finder;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.spy;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.ui;bundle-version="2.0.0",
+ org.eclipse.swtbot.swt.finder;bundle-version="2.0.0",
+ org.apache.log4j;bundle-version="1.2.13",
+ org.eclipse.core.resources;bundle-version="3.5.0",
+ org.eclipse.ui.ide;bundle-version="3.5.0",
+ org.jboss.tools.vpe;bundle-version="2.1.0",
+ org.jboss.tools.jst.jsp;bundle-version="2.0.0",
+ org.jboss.tools.common.text.ext;bundle-version="2.0.0",
+ org.jboss.tools.jst.web;bundle-version="2.0.0",
+ org.hamcrest;bundle-version="1.1.0",
+ org.mozilla.xpcom;bundle-version="1.8.1",
+ org.jboss.tools.vpe.xulrunner;bundle-version="2.1.0",
+ org.eclipse.jface.text;bundle-version="3.5.0",
+ org.junit;bundle-version="3.8.2"
+Eclipse-RegisterBuddy: org.apache.log4j
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Import-Package: junit.framework
+Export-Package: org.jboss.tools.vpe.ui.bot.test,
+ org.jboss.tools.vpe.ui.bot.test.jbide
+
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/editor/BlockCommentTestLinesToggle.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/editor/BlockCommentTestLinesToggle.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/editor/BlockCommentTestLinesToggle.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,39 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Input User Name Page
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H1 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Hello Demo Application
+</SPAN>
+</H1>
+<UL STYLE="color: red; -moz-user-modify: read-only;">
+<LI>
+Error Messages
+</LI>
+</UL>
+<FORM STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px;">
+<SPAN CLASS="vpe-text">
+Name:
+</SPAN>
+<!--<h:inputText value="#{user.name}" required="true">
+ <f:validateLength maximum="30" minimum="3"/>
+ </h:inputText>-->
+<INPUT TYPE="button" VALUE="Say Hello!"
STYLE="-moz-user-modify: read-only;"/>
+
+</FORM>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/editor/BlockCommentTestToggle.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/editor/BlockCommentTestToggle.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/editor/BlockCommentTestToggle.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,41 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Input User Name Page
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H1 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Hello Demo Application
+</SPAN>
+</H1>
+<UL STYLE="color: red; -moz-user-modify: read-only;">
+<LI>
+Error Messages
+</LI>
+</UL>
+<FORM STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px;">
+<SPAN CLASS="vpe-text">
+Name:
+</SPAN>
+<SPAN CLASS="vpe-text">
+<SPAN CLASS="vpe-text">
+</SPAN>
+<INPUT VALUE="#{user.name}"/>
+
+</SPAN>
+<!--<h:commandButton action="hello" value="Say Hello!"
/>-->
+</FORM>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/editor/CommentTestUntoggle.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/editor/CommentTestUntoggle.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/editor/CommentTestUntoggle.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,42 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Input User Name Page
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H1 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Hello Demo Application
+</SPAN>
+</H1>
+<UL STYLE="color: red; -moz-user-modify: read-only;">
+<LI>
+Error Messages
+</LI>
+</UL>
+<FORM STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px;">
+<SPAN CLASS="vpe-text">
+Name:
+</SPAN>
+<SPAN CLASS="vpe-text">
+<SPAN CLASS="vpe-text">
+</SPAN>
+<INPUT VALUE="#{user.name}"/>
+
+</SPAN>
+<INPUT TYPE="button" VALUE="Say Hello!"
STYLE="-moz-user-modify: read-only;"/>
+
+</FORM>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/editor/ToggleCommentTestToggle.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/editor/ToggleCommentTestToggle.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/editor/ToggleCommentTestToggle.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,41 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Input User Name Page
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H1 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Hello Demo Application
+</SPAN>
+</H1>
+<UL STYLE="color: red; -moz-user-modify: read-only;">
+<LI>
+Error Messages
+</LI>
+</UL>
+<FORM STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px;">
+<SPAN CLASS="vpe-text">
+Name:
+</SPAN>
+<SPAN CLASS="vpe-text">
+<SPAN CLASS="vpe-text">
+</SPAN>
+<INPUT VALUE="#{user.name}"/>
+
+</SPAN>
+<!-- <h:commandButton action="hello" value="Say Hello!"
/>-->
+</FORM>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/editor/VerificationOfNameSpaces.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/editor/VerificationOfNameSpaces.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/editor/VerificationOfNameSpaces.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,6 @@
+<BODY ID="__content__area__">
+<SPAN CLASS="vpe-text">
+...
+</SPAN><BR VPE:PSEUDO-ELEMENT="yes" STYLE="font-style: italic;
color: green; -moz-user-modify: read-only;"/>
+
+</BODY>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/log4j.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/log4j.xml
(rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/log4j.xml 2009-10-06 10:31:53 UTC
(rev 17917)
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+<log4j:configuration
xmlns:log4j="http://jakarta.apache.org/log4j/"
+ debug="false">
+
+ <appender name="consoleAppender"
class="org.apache.log4j.ConsoleAppender">
+ <param name="Target" value="System.out" />
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern"
+ value="%d{dd MMM yyyy HH:mm:ss.SSS} - %25t - %-5p - %30c{1} - (%C{1}.java:%L) -
%m%n" />
+ </layout>
+ </appender>
+
+ <appender name="fileAppender"
class="org.apache.log4j.FileAppender">
+ <param name="File" value="/tmp/debug.log" />
+ <param name="Append" value="false" />
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern"
+ value="%d{dd MMM yyyy HH:mm:ss.SSS} - %25t - %-5p - %30c{1} - (%C{1}.java:%L) -
%m%n" />
+ </layout>
+ </appender>
+
+ <appender name="asyncAppender"
class="org.apache.log4j.AsyncAppender">
+ <!-- appender-ref ref="consoleAppender" / -->
+ <appender-ref ref="fileAppender" />
+ </appender>
+
+ <!-- don't log matchers, this is very high amount of chatter -->
+ <category name="org.eclipse.swtbot.swt.finder.matchers">
+ <priority value="OFF" />
+ </category>
+
+ <!--
+ don't log widget notification events, this is moderately high chatter
+ -->
+ <category name="org.eclipse.swtbot.swt.finder.widgets">
+ <priority value="OFF" />
+ </category>
+
+ <!-- don't log finders, this is moderate chatter -->
+ <category name="org.eclipse.swtbot.swt.finder.finders">
+ <priority value="DEBUG" />
+ </category>
+
+ <category name="org.eclipse.swtbot.swt.finder.keyboard">
+ <!-- set to a value higher than debug to turn on. -->
+ <priority value="DEBUG" />
+ </category>
+
+ <category name="org.eclipse.swtbot">
+ <priority value="ALL" />
+ </category>
+
+ <root>
+ <priority value="INFO" />
+ <appender-ref ref="consoleAppender" />
+ <appender-ref ref="fileAppender" />
+ </root>
+
+</log4j:configuration>
\ No newline at end of file
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/Activator.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/Activator.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/ComparisonException.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/ComparisonException.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/TestDomUtil.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/TestDomUtil.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/TestUtil.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/TestUtil.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/VPEAllTests.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/VPEAllTests.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/VPEAutoTestCase.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/VPEAutoTestCase.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/BlockCommentTest$1.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/BlockCommentTest$1.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/BlockCommentTest$2.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/BlockCommentTest$2.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/BlockCommentTest.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/BlockCommentTest.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/ToggleCommentTest$1.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/ToggleCommentTest$1.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/ToggleCommentTest.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/ToggleCommentTest.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/VPEEditorTestCase.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/VPEEditorTestCase.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/VerificationOfNameSpacesTest.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/VerificationOfNameSpacesTest.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/AddSubstitutedELExpressionFolderScopeTest.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/AddSubstitutedELExpressionFolderScopeTest.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/PageDesignTestCase.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/PageDesignTestCase.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/SubstitutedELTestCase.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/SubstitutedELTestCase.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/preferences/AlwaysHideSelectionBarWithoutPromptTest.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/preferences/AlwaysHideSelectionBarWithoutPromptTest.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/preferences/BorderForUnknownTagsTest.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/preferences/BorderForUnknownTagsTest.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ChangeEditorTabForTheFirstOpenPageTest.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ChangeEditorTabForTheFirstOpenPageTest.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/preferences/PreferencesTestCase.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/preferences/PreferencesTestCase.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowNonVisualTagsTest.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowNonVisualTagsTest.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowResourceBundlesUsageasELexpressionsTest.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowResourceBundlesUsageasELexpressionsTest.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowSelectionTagBarTest.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowSelectionTagBarTest.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/jbide/JBIDE4556Test.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/jbide/JBIDE4556Test.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/palette/CancelTagLibDefenitionTest.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/palette/CancelTagLibDefenitionTest.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/palette/ImportTagsFromTLDFileTest$1.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/palette/ImportTagsFromTLDFileTest$1.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/palette/ImportTagsFromTLDFileTest$2.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/palette/ImportTagsFromTLDFileTest$2.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/palette/ImportTagsFromTLDFileTest.class
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/org/jboss/tools/vpe/ui/bot/test/palette/ImportTagsFromTLDFileTest.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/pagedesign/AddSubstitutedELExpressionHelloPage.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/pagedesign/AddSubstitutedELExpressionHelloPage.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/pagedesign/AddSubstitutedELExpressionHelloPage.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,33 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Hello!
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H3 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Hello
+</SPAN>
+<SPAN CLASS="vpe-text">
+,
+</SPAN>
+<SPAN CLASS="vpe-text">
+Any Name
+</SPAN>
+<SPAN CLASS="vpe-text">
+!
+</SPAN>
+</H3>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/pagedesign/AddSubstitutedELExpressionTestPage.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/pagedesign/AddSubstitutedELExpressionTestPage.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/pagedesign/AddSubstitutedELExpressionTestPage.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,42 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Input User Name Page
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H1 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Hello Demo Application
+</SPAN>
+</H1>
+<UL STYLE="color: red; -moz-user-modify: read-only;">
+<LI>
+Error Messages
+</LI>
+</UL>
+<FORM STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px;">
+<SPAN CLASS="vpe-text">
+Name:
+</SPAN>
+<SPAN CLASS="vpe-text">
+<SPAN CLASS="vpe-text">
+</SPAN>
+<INPUT VALUE="Any Name"/>
+
+</SPAN>
+<INPUT TYPE="button" VALUE="Say Hello!"
STYLE="-moz-user-modify: read-only;"/>
+
+</FORM>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/pagedesign/RemoveSubstitutedELExpressionHelloPage.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/pagedesign/RemoveSubstitutedELExpressionHelloPage.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/pagedesign/RemoveSubstitutedELExpressionHelloPage.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,33 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Hello!
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H3 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Hello
+</SPAN>
+<SPAN CLASS="vpe-text">
+,
+</SPAN>
+<SPAN CLASS="vpe-text">
+#{user.name}
+</SPAN>
+<SPAN CLASS="vpe-text">
+!
+</SPAN>
+</H3>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/pagedesign/RemoveSubstitutedELExpressionTestPage.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/pagedesign/RemoveSubstitutedELExpressionTestPage.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/pagedesign/RemoveSubstitutedELExpressionTestPage.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,42 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Input User Name Page
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H1 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Hello Demo Application
+</SPAN>
+</H1>
+<UL STYLE="color: red; -moz-user-modify: read-only;">
+<LI>
+Error Messages
+</LI>
+</UL>
+<FORM STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px;">
+<SPAN CLASS="vpe-text">
+Name:
+</SPAN>
+<SPAN CLASS="vpe-text">
+<SPAN CLASS="vpe-text">
+</SPAN>
+<INPUT VALUE="#{user.name}"/>
+
+</SPAN>
+<INPUT TYPE="button" VALUE="Say Hello!"
STYLE="-moz-user-modify: read-only;"/>
+
+</FORM>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/preferences/DumpedTestPage.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/preferences/DumpedTestPage.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/preferences/DumpedTestPage.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,42 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Input User Name Page
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H1 STYLE="-moz-user-modify: read-write;" >
+<SPAN CLASS="vpe-text">
+Hello Demo Application
+</SPAN>
+</H1>
+<UL STYLE="color: red; -moz-user-modify: read-only;">
+<LI>
+Error Messages
+</LI>
+</UL>
+<FORM STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px;">
+<SPAN CLASS="vpe-text">
+Name:
+</SPAN>
+<SPAN CLASS="vpe-text">
+<SPAN CLASS="vpe-text">
+</SPAN>
+<INPUT VALUE="#{user.name}"/>
+
+</SPAN>
+<INPUT TYPE="button" VALUE="Say Hello!"
STYLE="-moz-user-modify: read-only;"/>
+
+</FORM>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/preferences/HideBorderForUnknownTag.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/preferences/HideBorderForUnknownTag.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/preferences/HideBorderForUnknownTag.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,46 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Input User Name Page
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H1 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Hello Demo Application
+</SPAN>
+</H1>
+<DIV CLASS="__any__tag__caption" STYLE="-moz-user-modify:
read-only;">
+tagunknown<BR VPE:PSEUDO-ELEMENT="yes" STYLE="font-style: italic;
color: green; -moz-user-modify: read-only;"/>
+
+</DIV>
+<UL STYLE="color: red; -moz-user-modify: read-only;">
+<LI>
+Error Messages
+</LI>
+</UL>
+<FORM STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px;">
+<SPAN CLASS="vpe-text">
+Name:
+</SPAN>
+<SPAN CLASS="vpe-text">
+<SPAN CLASS="vpe-text">
+</SPAN>
+<INPUT VALUE="#{user.name}"/>
+
+</SPAN>
+<INPUT TYPE="button" VALUE="Say Hello!"
STYLE="-moz-user-modify: read-only;"/>
+
+</FORM>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/preferences/HideResourceBundlesUsageasELExpressions.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/preferences/HideResourceBundlesUsageasELExpressions.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/preferences/HideResourceBundlesUsageasELExpressions.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,42 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Input User Name Page
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H1 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Hello Demo Application
+</SPAN>
+</H1>
+<UL STYLE="color: red; -moz-user-modify: read-only;">
+<LI>
+Error Messages
+</LI>
+</UL>
+<FORM STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px;">
+<SPAN CLASS="vpe-text">
+Name:
+</SPAN>
+<SPAN CLASS="vpe-text">
+<SPAN CLASS="vpe-text">
+</SPAN>
+<INPUT VALUE="#{user.name}"/>
+
+</SPAN>
+<INPUT TYPE="button" VALUE="Say Hello!"
STYLE="-moz-user-modify: read-only;"/>
+
+</FORM>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/preferences/ShowBorderForUnknownTag.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/preferences/ShowBorderForUnknownTag.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/preferences/ShowBorderForUnknownTag.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,46 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Input User Name Page
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H1 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Hello Demo Application
+</SPAN>
+</H1>
+<DIV CLASS="__any__tag__caption" STYLE="border: 1px solid green;
-moz-user-modify: read-only;">
+tagunknown<BR VPE:PSEUDO-ELEMENT="yes" STYLE="font-style: italic;
color: green; -moz-user-modify: read-only;"/>
+
+</DIV>
+<UL STYLE="color: red; -moz-user-modify: read-only;">
+<LI>
+Error Messages
+</LI>
+</UL>
+<FORM STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px;">
+<SPAN CLASS="vpe-text">
+Name:
+</SPAN>
+<SPAN CLASS="vpe-text">
+<SPAN CLASS="vpe-text">
+</SPAN>
+<INPUT VALUE="#{user.name}"/>
+
+</SPAN>
+<INPUT TYPE="button" VALUE="Say Hello!"
STYLE="-moz-user-modify: read-only;"/>
+
+</FORM>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/preferences/ShowNonVisualTags.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/preferences/ShowNonVisualTags.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/preferences/ShowNonVisualTags.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,79 @@
+<BODY ID="__content__area__">
+<SPAN>
+<SPAN STYLE="border: 1px dashed GREY; color: GREY; font-size: 12px;">
+jsp:directive.taglib
+</SPAN><BR VPE:PSEUDO-ELEMENT="yes" STYLE="font-style: italic;
color: green; -moz-user-modify: read-only;"/>
+
+</SPAN>
+<SPAN>
+<SPAN STYLE="border: 1px dashed GREY; color: GREY; font-size: 12px;">
+jsp:directive.taglib
+</SPAN><BR VPE:PSEUDO-ELEMENT="yes" STYLE="font-style: italic;
color: green; -moz-user-modify: read-only;"/>
+
+</SPAN>
+<SPAN>
+<SPAN STYLE="border: 1px dashed GREY; color: GREY; font-size: 12px;">
+f:loadBundle
+</SPAN><BR VPE:PSEUDO-ELEMENT="yes" STYLE="font-style: italic;
color: green; -moz-user-modify: read-only;"/>
+
+</SPAN>
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<SPAN>
+<H1 STYLE="-moz-user-modify: read-write;">
+Input User Name Page
+</H1>
+<SPAN CLASS="vpe-text">
+Input User Name Page
+</SPAN>
+</SPAN>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H1 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Hello Demo Application
+</SPAN>
+</H1>
+<SPAN>
+<UL STYLE="color: red; -moz-user-modify: read-only;">
+<LI>
+Error Messages
+</LI>
+</UL><BR VPE:PSEUDO-ELEMENT="yes" STYLE="font-style: italic;
color: green; -moz-user-modify: read-only;"/>
+
+</SPAN>
+<FORM STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px;">
+<SPAN CLASS="vpe-text">
+Name:
+</SPAN>
+<SPAN>
+<SPAN CLASS="vpe-text">
+<SPAN CLASS="vpe-text">
+</SPAN>
+<INPUT VALUE="#{user.name}"/>
+
+</SPAN>
+<SPAN>
+<SPAN STYLE="border: 1px dashed GREY; color: GREY; font-size: 12px;">
+f:validateLength
+</SPAN><BR VPE:PSEUDO-ELEMENT="yes" STYLE="font-style: italic;
color: green; -moz-user-modify: read-only;"/>
+
+</SPAN>
+</SPAN>
+<SPAN>
+<INPUT TYPE="button" VALUE="Say Hello!"
STYLE="-moz-user-modify: read-only;"/>
+<BR VPE:PSEUDO-ELEMENT="yes" STYLE="font-style: italic; color: green;
-moz-user-modify: read-only;"/>
+
+</SPAN>
+</FORM>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/preferences/ShowResourceBundlesUsageasELExpressions.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/preferences/ShowResourceBundlesUsageasELExpressions.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/preferences/ShowResourceBundlesUsageasELExpressions.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,42 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Input User Name Page
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H1 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+#{Message.header}
+</SPAN>
+</H1>
+<UL STYLE="color: red; -moz-user-modify: read-only;">
+<LI>
+Error Messages
+</LI>
+</UL>
+<FORM STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px;">
+<SPAN CLASS="vpe-text">
+#{Message.prompt_message}
+</SPAN>
+<SPAN CLASS="vpe-text">
+<SPAN CLASS="vpe-text">
+</SPAN>
+<INPUT VALUE="#{user.name}"/>
+
+</SPAN>
+<INPUT TYPE="button" VALUE="Say Hello!"
STYLE="-moz-user-modify: read-only;"/>
+
+</FORM>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/projectProperties.properties
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/projectProperties.properties
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/bin/projectProperties.properties 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,3 @@
+JSFProjectName=JBIDETestProject
+Apachev6.0=D\:/Java/apache-tomcat-6.0.18
+JBossEap4.3=C\:/jbdevstudio0609/jboss-eap/jboss-as
\ No newline at end of file
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/build.properties
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/build.properties
(rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/build.properties 2009-10-06 10:31:53
UTC (rev 17917)
@@ -0,0 +1,5 @@
+source.. = src/,\
+ resources/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/BlockCommentTestLinesToggle.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/BlockCommentTestLinesToggle.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/BlockCommentTestLinesToggle.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,39 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Input User Name Page
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H1 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Hello Demo Application
+</SPAN>
+</H1>
+<UL STYLE="color: red; -moz-user-modify: read-only;">
+<LI>
+Error Messages
+</LI>
+</UL>
+<FORM STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px;">
+<SPAN CLASS="vpe-text">
+Name:
+</SPAN>
+<!--<h:inputText value="#{user.name}" required="true">
+ <f:validateLength maximum="30" minimum="3"/>
+ </h:inputText>-->
+<INPUT TYPE="button" VALUE="Say Hello!"
STYLE="-moz-user-modify: read-only;"/>
+
+</FORM>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/BlockCommentTestLinesToggle.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/BlockCommentTestToggle.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/BlockCommentTestToggle.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/BlockCommentTestToggle.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,41 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Input User Name Page
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H1 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Hello Demo Application
+</SPAN>
+</H1>
+<UL STYLE="color: red; -moz-user-modify: read-only;">
+<LI>
+Error Messages
+</LI>
+</UL>
+<FORM STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px;">
+<SPAN CLASS="vpe-text">
+Name:
+</SPAN>
+<SPAN CLASS="vpe-text">
+<SPAN CLASS="vpe-text">
+</SPAN>
+<INPUT VALUE="#{user.name}"/>
+
+</SPAN>
+<!--<h:commandButton action="hello" value="Say Hello!"
/>-->
+</FORM>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/BlockCommentTestToggle.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/CommentTestUntoggle.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/CommentTestUntoggle.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/CommentTestUntoggle.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,42 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Input User Name Page
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H1 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Hello Demo Application
+</SPAN>
+</H1>
+<UL STYLE="color: red; -moz-user-modify: read-only;">
+<LI>
+Error Messages
+</LI>
+</UL>
+<FORM STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px;">
+<SPAN CLASS="vpe-text">
+Name:
+</SPAN>
+<SPAN CLASS="vpe-text">
+<SPAN CLASS="vpe-text">
+</SPAN>
+<INPUT VALUE="#{user.name}"/>
+
+</SPAN>
+<INPUT TYPE="button" VALUE="Say Hello!"
STYLE="-moz-user-modify: read-only;"/>
+
+</FORM>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/CommentTestUntoggle.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/ToggleCommentTestToggle.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/ToggleCommentTestToggle.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/ToggleCommentTestToggle.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,41 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Input User Name Page
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H1 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Hello Demo Application
+</SPAN>
+</H1>
+<UL STYLE="color: red; -moz-user-modify: read-only;">
+<LI>
+Error Messages
+</LI>
+</UL>
+<FORM STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px;">
+<SPAN CLASS="vpe-text">
+Name:
+</SPAN>
+<SPAN CLASS="vpe-text">
+<SPAN CLASS="vpe-text">
+</SPAN>
+<INPUT VALUE="#{user.name}"/>
+
+</SPAN>
+<!-- <h:commandButton action="hello" value="Say Hello!"
/>-->
+</FORM>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/ToggleCommentTestToggle.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/VerificationOfNameSpaces.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/VerificationOfNameSpaces.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/VerificationOfNameSpaces.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,6 @@
+<BODY ID="__content__area__">
+<SPAN CLASS="vpe-text">
+...
+</SPAN><BR VPE:PSEUDO-ELEMENT="yes" STYLE="font-style: italic;
color: green; -moz-user-modify: read-only;"/>
+
+</BODY>
\ No newline at end of file
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/editor/VerificationOfNameSpaces.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign/AddSubstitutedELExpressionHelloPage.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign/AddSubstitutedELExpressionHelloPage.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign/AddSubstitutedELExpressionHelloPage.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,33 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Hello!
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H3 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Hello
+</SPAN>
+<SPAN CLASS="vpe-text">
+,
+</SPAN>
+<SPAN CLASS="vpe-text">
+Any Name
+</SPAN>
+<SPAN CLASS="vpe-text">
+!
+</SPAN>
+</H3>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign/AddSubstitutedELExpressionHelloPage.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign/AddSubstitutedELExpressionTestPage.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign/AddSubstitutedELExpressionTestPage.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign/AddSubstitutedELExpressionTestPage.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,42 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Input User Name Page
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H1 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Hello Demo Application
+</SPAN>
+</H1>
+<UL STYLE="color: red; -moz-user-modify: read-only;">
+<LI>
+Error Messages
+</LI>
+</UL>
+<FORM STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px;">
+<SPAN CLASS="vpe-text">
+Name:
+</SPAN>
+<SPAN CLASS="vpe-text">
+<SPAN CLASS="vpe-text">
+</SPAN>
+<INPUT VALUE="Any Name"/>
+
+</SPAN>
+<INPUT TYPE="button" VALUE="Say Hello!"
STYLE="-moz-user-modify: read-only;"/>
+
+</FORM>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign/AddSubstitutedELExpressionTestPage.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign/RemoveSubstitutedELExpressionHelloPage.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign/RemoveSubstitutedELExpressionHelloPage.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign/RemoveSubstitutedELExpressionHelloPage.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,33 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Hello!
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H3 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Hello
+</SPAN>
+<SPAN CLASS="vpe-text">
+,
+</SPAN>
+<SPAN CLASS="vpe-text">
+#{user.name}
+</SPAN>
+<SPAN CLASS="vpe-text">
+!
+</SPAN>
+</H3>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign/RemoveSubstitutedELExpressionHelloPage.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign/RemoveSubstitutedELExpressionTestPage.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign/RemoveSubstitutedELExpressionTestPage.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign/RemoveSubstitutedELExpressionTestPage.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,42 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Input User Name Page
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H1 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Hello Demo Application
+</SPAN>
+</H1>
+<UL STYLE="color: red; -moz-user-modify: read-only;">
+<LI>
+Error Messages
+</LI>
+</UL>
+<FORM STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px;">
+<SPAN CLASS="vpe-text">
+Name:
+</SPAN>
+<SPAN CLASS="vpe-text">
+<SPAN CLASS="vpe-text">
+</SPAN>
+<INPUT VALUE="#{user.name}"/>
+
+</SPAN>
+<INPUT TYPE="button" VALUE="Say Hello!"
STYLE="-moz-user-modify: read-only;"/>
+
+</FORM>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/pagedesign/RemoveSubstitutedELExpressionTestPage.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/DumpedTestPage.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/DumpedTestPage.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/DumpedTestPage.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,42 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Input User Name Page
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H1 STYLE="-moz-user-modify: read-write;" >
+<SPAN CLASS="vpe-text">
+Hello Demo Application
+</SPAN>
+</H1>
+<UL STYLE="color: red; -moz-user-modify: read-only;">
+<LI>
+Error Messages
+</LI>
+</UL>
+<FORM STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px;">
+<SPAN CLASS="vpe-text">
+Name:
+</SPAN>
+<SPAN CLASS="vpe-text">
+<SPAN CLASS="vpe-text">
+</SPAN>
+<INPUT VALUE="#{user.name}"/>
+
+</SPAN>
+<INPUT TYPE="button" VALUE="Say Hello!"
STYLE="-moz-user-modify: read-only;"/>
+
+</FORM>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/DumpedTestPage.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/HideBorderForUnknownTag.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/HideBorderForUnknownTag.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/HideBorderForUnknownTag.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,46 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Input User Name Page
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H1 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Hello Demo Application
+</SPAN>
+</H1>
+<DIV CLASS="__any__tag__caption" STYLE="-moz-user-modify:
read-only;">
+tagunknown<BR VPE:PSEUDO-ELEMENT="yes" STYLE="font-style: italic;
color: green; -moz-user-modify: read-only;"/>
+
+</DIV>
+<UL STYLE="color: red; -moz-user-modify: read-only;">
+<LI>
+Error Messages
+</LI>
+</UL>
+<FORM STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px;">
+<SPAN CLASS="vpe-text">
+Name:
+</SPAN>
+<SPAN CLASS="vpe-text">
+<SPAN CLASS="vpe-text">
+</SPAN>
+<INPUT VALUE="#{user.name}"/>
+
+</SPAN>
+<INPUT TYPE="button" VALUE="Say Hello!"
STYLE="-moz-user-modify: read-only;"/>
+
+</FORM>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/HideBorderForUnknownTag.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/HideResourceBundlesUsageasELExpressions.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/HideResourceBundlesUsageasELExpressions.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/HideResourceBundlesUsageasELExpressions.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,42 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Input User Name Page
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H1 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Hello Demo Application
+</SPAN>
+</H1>
+<UL STYLE="color: red; -moz-user-modify: read-only;">
+<LI>
+Error Messages
+</LI>
+</UL>
+<FORM STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px;">
+<SPAN CLASS="vpe-text">
+Name:
+</SPAN>
+<SPAN CLASS="vpe-text">
+<SPAN CLASS="vpe-text">
+</SPAN>
+<INPUT VALUE="#{user.name}"/>
+
+</SPAN>
+<INPUT TYPE="button" VALUE="Say Hello!"
STYLE="-moz-user-modify: read-only;"/>
+
+</FORM>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/HideResourceBundlesUsageasELExpressions.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/ShowBorderForUnknownTag.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/ShowBorderForUnknownTag.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/ShowBorderForUnknownTag.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,46 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Input User Name Page
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H1 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Hello Demo Application
+</SPAN>
+</H1>
+<DIV CLASS="__any__tag__caption" STYLE="border: 1px solid green;
-moz-user-modify: read-only;">
+tagunknown<BR VPE:PSEUDO-ELEMENT="yes" STYLE="font-style: italic;
color: green; -moz-user-modify: read-only;"/>
+
+</DIV>
+<UL STYLE="color: red; -moz-user-modify: read-only;">
+<LI>
+Error Messages
+</LI>
+</UL>
+<FORM STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px;">
+<SPAN CLASS="vpe-text">
+Name:
+</SPAN>
+<SPAN CLASS="vpe-text">
+<SPAN CLASS="vpe-text">
+</SPAN>
+<INPUT VALUE="#{user.name}"/>
+
+</SPAN>
+<INPUT TYPE="button" VALUE="Say Hello!"
STYLE="-moz-user-modify: read-only;"/>
+
+</FORM>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/ShowBorderForUnknownTag.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/ShowNonVisualTags.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/ShowNonVisualTags.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/ShowNonVisualTags.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,79 @@
+<BODY ID="__content__area__">
+<SPAN>
+<SPAN STYLE="border: 1px dashed GREY; color: GREY; font-size: 12px;">
+jsp:directive.taglib
+</SPAN><BR VPE:PSEUDO-ELEMENT="yes" STYLE="font-style: italic;
color: green; -moz-user-modify: read-only;"/>
+
+</SPAN>
+<SPAN>
+<SPAN STYLE="border: 1px dashed GREY; color: GREY; font-size: 12px;">
+jsp:directive.taglib
+</SPAN><BR VPE:PSEUDO-ELEMENT="yes" STYLE="font-style: italic;
color: green; -moz-user-modify: read-only;"/>
+
+</SPAN>
+<SPAN>
+<SPAN STYLE="border: 1px dashed GREY; color: GREY; font-size: 12px;">
+f:loadBundle
+</SPAN><BR VPE:PSEUDO-ELEMENT="yes" STYLE="font-style: italic;
color: green; -moz-user-modify: read-only;"/>
+
+</SPAN>
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<SPAN>
+<H1 STYLE="-moz-user-modify: read-write;">
+Input User Name Page
+</H1>
+<SPAN CLASS="vpe-text">
+Input User Name Page
+</SPAN>
+</SPAN>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H1 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Hello Demo Application
+</SPAN>
+</H1>
+<SPAN>
+<UL STYLE="color: red; -moz-user-modify: read-only;">
+<LI>
+Error Messages
+</LI>
+</UL><BR VPE:PSEUDO-ELEMENT="yes" STYLE="font-style: italic;
color: green; -moz-user-modify: read-only;"/>
+
+</SPAN>
+<FORM STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px;">
+<SPAN CLASS="vpe-text">
+Name:
+</SPAN>
+<SPAN>
+<SPAN CLASS="vpe-text">
+<SPAN CLASS="vpe-text">
+</SPAN>
+<INPUT VALUE="#{user.name}"/>
+
+</SPAN>
+<SPAN>
+<SPAN STYLE="border: 1px dashed GREY; color: GREY; font-size: 12px;">
+f:validateLength
+</SPAN><BR VPE:PSEUDO-ELEMENT="yes" STYLE="font-style: italic;
color: green; -moz-user-modify: read-only;"/>
+
+</SPAN>
+</SPAN>
+<SPAN>
+<INPUT TYPE="button" VALUE="Say Hello!"
STYLE="-moz-user-modify: read-only;"/>
+<BR VPE:PSEUDO-ELEMENT="yes" STYLE="font-style: italic; color: green;
-moz-user-modify: read-only;"/>
+
+</SPAN>
+</FORM>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/ShowNonVisualTags.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/ShowResourceBundlesUsageasELExpressions.xml
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/ShowResourceBundlesUsageasELExpressions.xml
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/ShowResourceBundlesUsageasELExpressions.xml 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,42 @@
+<BODY ID="__content__area__">
+<DIV STYLE="-moz-user-modify: read-write;">
+<DIV STYLE="display: none; -moz-user-modify: read-only;">
+<H1 STYLE="-moz-user-modify: read-write;">
+Input User Name Page
+</H1>
+</DIV>
+<DIV>
+<TABLE STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width:
100%;">
+<TR>
+<TD>
+<DIV>
+<H1 STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+#{Message.header}
+</SPAN>
+</H1>
+<UL STYLE="color: red; -moz-user-modify: read-only;">
+<LI>
+Error Messages
+</LI>
+</UL>
+<FORM STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px;">
+<SPAN CLASS="vpe-text">
+#{Message.prompt_message}
+</SPAN>
+<SPAN CLASS="vpe-text">
+<SPAN CLASS="vpe-text">
+</SPAN>
+<INPUT VALUE="#{user.name}"/>
+
+</SPAN>
+<INPUT TYPE="button" VALUE="Say Hello!"
STYLE="-moz-user-modify: read-only;"/>
+
+</FORM>
+</DIV>
+</TD>
+</TR>
+</TABLE>
+</DIV>
+</DIV>
+</BODY>
\ No newline at end of file
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/preferences/ShowResourceBundlesUsageasELExpressions.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/projectProperties.properties
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/projectProperties.properties
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/projectProperties.properties 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,3 @@
+JSFProjectName=JBIDETestProject
+Apachev6.0=D\:/Java/apache-tomcat-6.0.18
+JBossEap4.3=C\:/jbdevstudio0609/jboss-eap/jboss-as
\ No newline at end of file
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/projectProperties.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-AddSubstitutedELExpressionFolderScopeTest.testAddSubstitutedELExpressionFolderScope.jpeg
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-AddSubstitutedELExpressionFolderScopeTest.testAddSubstitutedELExpressionFolderScope.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-AlwaysHideSelectionBarWithoutPromptTest.testAlwaysHideSelectionBarWithoutPrompt.jpeg
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-AlwaysHideSelectionBarWithoutPromptTest.testAlwaysHideSelectionBarWithoutPrompt.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-BlockCommentTest.testBlockComment.jpeg
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-BlockCommentTest.testBlockComment.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-BorderForUnknownTagsTest.testBorderForUnknownTags.jpeg
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-BorderForUnknownTagsTest.testBorderForUnknownTags.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-CancelTagLibDefenitionTest.testCancelTagLibDefenition.jpeg
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-CancelTagLibDefenitionTest.testCancelTagLibDefenition.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-ChangeEditorTabForTheFirstOpenPageTest.testChangeEditorTabForTheFirstOpenPage.jpeg
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-ChangeEditorTabForTheFirstOpenPageTest.testChangeEditorTabForTheFirstOpenPage.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-ImportTagsFromTLDFileTest.testImportTagsFromTLDFile.jpeg
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-ImportTagsFromTLDFileTest.testImportTagsFromTLDFile.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-JBIDE4556Test.testCancelTagLibDefenition.jpeg
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-JBIDE4556Test.testCancelTagLibDefenition.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-ShowNonVisualTagsTest.testShowNonVisualTags.jpeg
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-ShowNonVisualTagsTest.testShowNonVisualTags.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-ShowResourceBundlesUsageasELexpressionsTest.testShowResourceBundlesUsageasELexpressions.jpeg
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-ShowResourceBundlesUsageasELexpressionsTest.testShowResourceBundlesUsageasELexpressions.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-ShowSelectionTagBarTest.testShowSelectionTagBar.jpeg
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-ShowSelectionTagBarTest.testShowSelectionTagBar.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-ToggleCommentTest.testToggleComment.jpeg
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-ToggleCommentTest.testToggleComment.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-VerificationOfNameSpacesTest.testVerificationOfNameSpaces.jpeg
===================================================================
(Binary files differ)
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/screenshots/screenshot-VerificationOfNameSpacesTest.testVerificationOfNameSpaces.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/log4j.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/log4j.xml
(rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/log4j.xml 2009-10-06 10:31:53 UTC
(rev 17917)
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+<log4j:configuration
xmlns:log4j="http://jakarta.apache.org/log4j/"
+ debug="false">
+
+ <appender name="consoleAppender"
class="org.apache.log4j.ConsoleAppender">
+ <param name="Target" value="System.out" />
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern"
+ value="%d{dd MMM yyyy HH:mm:ss.SSS} - %25t - %-5p - %30c{1} - (%C{1}.java:%L) -
%m%n" />
+ </layout>
+ </appender>
+
+ <appender name="fileAppender"
class="org.apache.log4j.FileAppender">
+ <param name="File" value="/tmp/debug.log" />
+ <param name="Append" value="false" />
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern"
+ value="%d{dd MMM yyyy HH:mm:ss.SSS} - %25t - %-5p - %30c{1} - (%C{1}.java:%L) -
%m%n" />
+ </layout>
+ </appender>
+
+ <appender name="asyncAppender"
class="org.apache.log4j.AsyncAppender">
+ <!-- appender-ref ref="consoleAppender" / -->
+ <appender-ref ref="fileAppender" />
+ </appender>
+
+ <!-- don't log matchers, this is very high amount of chatter -->
+ <category name="org.eclipse.swtbot.swt.finder.matchers">
+ <priority value="OFF" />
+ </category>
+
+ <!--
+ don't log widget notification events, this is moderately high chatter
+ -->
+ <category name="org.eclipse.swtbot.swt.finder.widgets">
+ <priority value="OFF" />
+ </category>
+
+ <!-- don't log finders, this is moderate chatter -->
+ <category name="org.eclipse.swtbot.swt.finder.finders">
+ <priority value="DEBUG" />
+ </category>
+
+ <category name="org.eclipse.swtbot.swt.finder.keyboard">
+ <!-- set to a value higher than debug to turn on. -->
+ <priority value="DEBUG" />
+ </category>
+
+ <category name="org.eclipse.swtbot">
+ <priority value="ALL" />
+ </category>
+
+ <root>
+ <priority value="INFO" />
+ <appender-ref ref="consoleAppender" />
+ <appender-ref ref="fileAppender" />
+ </root>
+
+</log4j:configuration>
\ No newline at end of file
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/log4j.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/Activator.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/Activator.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/Activator.java 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,50 @@
+package org.jboss.tools.vpe.ui.bot.test;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.vpe.ui.bot.test";
+
+ // The shared instance
+ private static Activator plugin;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return plugin;
+ }
+
+}
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/Activator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/ComparisonException.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/ComparisonException.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/ComparisonException.java 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,40 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.ui.bot.test;
+
+/**
+ * @author Sergey Dzmitrovich
+ *
+ */
+public class ComparisonException extends Exception {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 7127064462771778364L;
+
+ public ComparisonException() {
+ super();
+ }
+
+ public ComparisonException(String message, Throwable cause) {
+ super(message, cause);
+ }
+
+ public ComparisonException(String message) {
+ super(message);
+ }
+
+ public ComparisonException(Throwable cause) {
+ super(cause);
+ }
+
+}
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/ComparisonException.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/TestDomUtil.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/TestDomUtil.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/TestDomUtil.java 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,307 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.ui.bot.test;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.FileReader;
+import java.io.StringReader;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+import org.jboss.tools.common.model.util.XMLUtil;
+import org.jboss.tools.vpe.editor.util.Constants;
+import org.mozilla.interfaces.nsIDOMAttr;
+import org.mozilla.interfaces.nsIDOMNamedNodeMap;
+import org.mozilla.interfaces.nsIDOMNode;
+import org.mozilla.interfaces.nsIDOMNodeList;
+import org.w3c.dom.Attr;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NamedNodeMap;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+/**
+ * @author Sergey Dzmitrovich
+ *
+ */
+public class TestDomUtil {
+ /**
+ * Attributes names that will be skipped in attribute comparison.
+ */
+ public static final Set<String> skippedAtributes = new HashSet<String>();
+ static {
+ // Add here all attributes names to be skipped (IN UPPER CASE!)
+ skippedAtributes.addAll(Arrays.asList("DIR"));//$NON-NLS-1$
+ }
+
+ final public static String ID_ATTRIBUTE = "id"; //$NON-NLS-1$
+
+ final public static String ILLEGAL_ATTRIBUTES = "illegalAttributes";
//$NON-NLS-1$
+
+ final public static String ILLEGAL_ATTRIBUTES_SEPARATOR = Constants.COMMA;
+
+ final public static String START_REGEX = "/"; //$NON-NLS-1$
+
+ final public static String END_REGEX = "/"; //$NON-NLS-1$
+
+ public static Document getDocument(File file) throws FileNotFoundException {
+ // create reader
+ FileReader reader = new FileReader(file);
+
+ // return document
+ return XMLUtil.getDocument(reader);
+ }
+
+ public static Document getDocument(String content)
+ throws FileNotFoundException {
+ // create reader
+ StringReader reader = new StringReader(content);
+
+ // return document
+ return XMLUtil.getDocument(reader);
+ }
+
+ /**
+ *
+ * @param document
+ * @param elementId
+ * @return
+ */
+ public static Element getElemenById(Document document, String elementId) {
+
+ Element element = document.getDocumentElement();
+
+ NodeList children = element.getChildNodes();
+ for (int i = 0; i < children.getLength(); i++) {
+ Node child = children.item(i);
+ if ((child.getNodeType() == Node.ELEMENT_NODE)
+ && elementId.equals(((Element) child)
+ .getAttribute(ID_ATTRIBUTE)))
+ return (Element) child;
+
+ }
+
+ return null;
+
+ }
+
+ /**
+ *
+ * @param element
+ * @return
+ */
+ public static Element getFirstChildElement(Element element) {
+
+ if (element != null) {
+ NodeList children = element.getChildNodes();
+ for (int i = 0; i < children.getLength(); i++) {
+ Node child = children.item(i);
+
+ if (child.getNodeType() == Node.ELEMENT_NODE)
+ return (Element) child;
+
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ *
+ * @param vpeNode
+ * @param schemeNode
+ * @return
+ * @throws ComparisonException
+ */
+ public static void compareNodes(nsIDOMNode vpeNode, Node modelNode)
+ throws ComparisonException {
+
+ if (!modelNode.getNodeName().equalsIgnoreCase(vpeNode.getNodeName())) {
+ throw new ComparisonException("name of tag is \"" //$NON-NLS-1$
+ + vpeNode.getNodeName() + "\"but must be \"" //$NON-NLS-1$
+ + modelNode.getNodeName() + "\""); //$NON-NLS-1$
+ }
+
+ if ("#comment".equals(vpeNode.getNodeName())){
+ String vpeNodeValue = vpeNode.getNodeValue();
+ try {
+ vpeNodeValue = clearStringFromRSymbols(vpeNodeValue);
+ } catch (Exception e) {
+ }
+ if ((modelNode.getNodeValue() != null)
+ && (!modelNode.getNodeValue().trim().equalsIgnoreCase(
+ vpeNodeValue.trim()))) {
+ throw new ComparisonException("value of " + vpeNode.getNodeName()
//$NON-NLS-1$
+ + " is \"" + vpeNodeValue.trim() //$NON-NLS-1$
+ + "\" but must be \"" + modelNode.getNodeValue().trim()
//$NON-NLS-1$
+ + "\""); //$NON-NLS-1$
+ }
+ } else {
+ if ((modelNode.getNodeValue() != null)
+ && (!modelNode.getNodeValue().trim().equalsIgnoreCase(
+ vpeNode.getNodeValue().trim()))) {
+ throw new ComparisonException("value of " + vpeNode.getNodeName()
//$NON-NLS-1$
+ + " is \"" + vpeNode.getNodeValue().trim() //$NON-NLS-1$
+ + "\" but must be \"" + modelNode.getNodeValue().trim()
//$NON-NLS-1$
+ + "\""); //$NON-NLS-1$
+ }
+ }
+ // compare node's attributes
+ if (modelNode.getNodeType() == Node.ELEMENT_NODE) {
+
+ compareAttributes(modelNode.getAttributes(), vpeNode
+ .getAttributes());
+ }
+
+ // compare children
+ nsIDOMNodeList vpeChildren = vpeNode.getChildNodes();
+ NodeList schemeChildren = modelNode.getChildNodes();
+ int realCount = 0;
+ for (int i = 0; i < schemeChildren.getLength(); i++) {
+
+ Node schemeChild = schemeChildren.item(i);
+
+ // leave out empty text nodes in test dom model
+ if ((schemeChild.getNodeType() == Node.TEXT_NODE)
+ && ((schemeChild.getNodeValue() == null) || (schemeChild
+ .getNodeValue().trim().length() == 0)))
+ continue;
+
+ nsIDOMNode vpeChild = vpeChildren.item(realCount++);
+
+ if (null == vpeChild) {
+ throw new ComparisonException(
+ "Child of node \"" //$NON-NLS-1$
+ + vpeNode.getNodeName()
+ + "\" is \"null\", but should be \"" +
schemeChild.getNodeName() + "\""); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ // leave out empty text nodes in vpe dom model
+ while (((vpeChild.getNodeType() == Node.TEXT_NODE) && ((vpeChild
+ .getNodeValue() == null) || (vpeChild.getNodeValue().trim()
+ .length() == 0)))) {
+ vpeChild = vpeChildren.item(realCount++);
+ if (null == vpeChild) {
+ throw new ComparisonException(
+ "Child of node \"" //$NON-NLS-1$
+ + vpeNode.getNodeName()
+ + "\" is \"null\", but should be \"" +
schemeChild.getNodeName() + "\""); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+ }
+
+ compareNodes(vpeChild, schemeChild);
+
+ }
+
+ }
+
+ /**
+ * get ids of tests
+ *
+ * @param testDocument
+ * @return
+ */
+ public static List<String> getTestIds(Document testDocument) {
+ Element rootElement = testDocument.getDocumentElement();
+ List<String> ids = new ArrayList<String>();
+ NodeList children = rootElement.getChildNodes();
+ for (int i = 0; i < children.getLength(); i++) {
+ Node child = children.item(i);
+ if (child.getNodeType() == Node.ELEMENT_NODE)
+ ids.add(((Element) child).getAttribute(ID_ATTRIBUTE));
+
+ }
+ return ids;
+ }
+
+ private static void compareAttributes(NamedNodeMap modelAttributes,
+ nsIDOMNamedNodeMap vpeAttributes) throws ComparisonException {
+
+ for (int i = 0; i < modelAttributes.getLength(); i++) {
+ Attr modelAttr = (Attr) modelAttributes.item(i);
+ String name = modelAttr.getName();
+
+ // if the attribute has to be skipped, then do it
+ if ( name != null
+ && skippedAtributes.contains(name.toUpperCase()) ) {
+ continue;
+ }
+
+ // if there are limitation of attributes
+ if (ILLEGAL_ATTRIBUTES.equals(name)) {
+
+ String[] illegalAttributes = modelAttr.getNodeValue().split(
+ ILLEGAL_ATTRIBUTES_SEPARATOR);
+
+ for (String illegalAttributeName : illegalAttributes) {
+ if (vpeAttributes.getNamedItem(illegalAttributeName.trim()) != null)
+ throw new ComparisonException("illegal attribute :" //$NON-NLS-1$
+ + illegalAttributeName);
+ }
+
+ } else {
+
+
+ if (vpeAttributes.getNamedItem(
+ name) == null)
+ throw new ComparisonException("there is not : \"" + name
//$NON-NLS-1$
+ + "\" attribute"); //$NON-NLS-1$
+
+ nsIDOMAttr vpeAttr = (nsIDOMAttr) vpeAttributes.getNamedItem(
+ name).queryInterface(nsIDOMAttr.NS_IDOMATTR_IID);
+
+ compareComplexStrings(modelAttr.getNodeValue().trim(),
+ vpeAttr.getNodeValue().trim());
+
+ }
+ }
+ }
+
+ static private void compareComplexStrings(String modelString,
+ String vpeString) throws ComparisonException {
+
+ if (modelString.startsWith(START_REGEX)
+ && modelString.endsWith(END_REGEX)) {
+
+ String regex = modelString.substring(START_REGEX.length(),
+ modelString.length() - END_REGEX.length());
+
+ Matcher matcher = Pattern.compile(regex).matcher(vpeString);
+ if (!matcher.find()) {
+ throw new ComparisonException("string is\"" + vpeString //$NON-NLS-1$
+ + "\" but pattern is \"" + regex + "\"");
//$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ } else if (!modelString.equals(vpeString)) {
+ throw new ComparisonException("string is\"" + vpeString //$NON-NLS-1$
+ + "\" but must be \"" + modelString + "\"");
//$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ }
+
+ private static String clearStringFromRSymbols(String string){
+ int index = string.indexOf("\r");
+ while (index!=-1) {
+ String stringAfterSymbol = string.substring(index+1);
+ String stringBeforeSymbol = string.substring(0,index);
+ string = stringBeforeSymbol.concat(stringAfterSymbol);
+ index = string.indexOf("\r");
+ }
+ return string;
+ }
+
+}
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/TestDomUtil.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/TestUtil.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/TestUtil.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/TestUtil.java 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,46 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.ui.bot.test;
+
+import junit.framework.Assert;
+import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.editor.VpeController;
+import org.jboss.tools.vpe.editor.VpeEditorPart;
+
+/**
+ * Class for importing project from jar file.
+ *
+ * @author sdzmitrovich
+ */
+public class TestUtil {
+
+ /**
+ * Gets visual page editor controller.
+ *
+ * @param part the part
+ *
+ * @return {@link VpeController}
+ */
+ public static VpeController getVpeController(JSPMultiPageEditor part) {
+
+ VpeEditorPart visualEditor = (VpeEditorPart) part.getVisualEditor();
+ return visualEditor.getController();
+ }
+
+ /**
+ * Fail.
+ *
+ * @param t the t
+ */
+ public static void fail(Throwable t){
+ Assert.fail("Test case was fail "+t.getMessage()+":"+t);
+ }
+}
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/TestUtil.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllTests.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllTests.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllTests.java 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,39 @@
+package org.jboss.tools.vpe.ui.bot.test;
+
+import junit.extensions.TestSetup;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import org.eclipse.swtbot.swt.finder.SWTBotTestCase;
+import org.jboss.tools.vpe.ui.bot.test.editor.BlockCommentTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.ToggleCommentTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.VerificationOfNameSpacesTest;
+import
org.jboss.tools.vpe.ui.bot.test.editor.pagedesign.AddSubstitutedELExpressionFolderScopeTest;
+import
org.jboss.tools.vpe.ui.bot.test.editor.preferences.AlwaysHideSelectionBarWithoutPromptTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.preferences.BorderForUnknownTagsTest;
+import
org.jboss.tools.vpe.ui.bot.test.editor.preferences.ChangeEditorTabForTheFirstOpenPageTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.preferences.ShowNonVisualTagsTest;
+import
org.jboss.tools.vpe.ui.bot.test.editor.preferences.ShowResourceBundlesUsageasELexpressionsTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.preferences.ShowSelectionTagBarTest;
+import org.jboss.tools.vpe.ui.bot.test.jbide.JBIDE4556Test;
+import org.jboss.tools.vpe.ui.bot.test.palette.CancelTagLibDefenitionTest;
+import org.jboss.tools.vpe.ui.bot.test.palette.ImportTagsFromTLDFileTest;
+
+public class VPEAllTests extends SWTBotTestCase{
+ public static Test suite(){
+ TestSuite suite = new TestSuite("VPE All Tests");
+ suite.addTestSuite(CancelTagLibDefenitionTest.class);
+ suite.addTestSuite(ImportTagsFromTLDFileTest.class);
+ suite.addTestSuite(ToggleCommentTest.class);
+ suite.addTestSuite(BlockCommentTest.class);
+ suite.addTestSuite(ChangeEditorTabForTheFirstOpenPageTest.class);
+ suite.addTestSuite(JBIDE4556Test.class);
+ suite.addTestSuite(VerificationOfNameSpacesTest.class);
+ suite.addTestSuite(BorderForUnknownTagsTest.class);
+ suite.addTestSuite(ShowResourceBundlesUsageasELexpressionsTest.class);
+ suite.addTestSuite(ShowSelectionTagBarTest.class);
+ suite.addTestSuite(AlwaysHideSelectionBarWithoutPromptTest.class);
+ suite.addTestSuite(ShowNonVisualTagsTest.class);
+ suite.addTestSuite(AddSubstitutedELExpressionFolderScopeTest.class);
+ return new TestSetup(suite);
+ }
+}
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllTests.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAutoTestCase.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAutoTestCase.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAutoTestCase.java 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,320 @@
+package org.jboss.tools.vpe.ui.bot.test;
+
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.List;
+import java.util.Properties;
+import org.eclipse.core.runtime.FileLocator;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor;
+import org.eclipse.swtbot.swt.finder.SWTBot;
+import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
+import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.ui.bot.test.JBTSWTBotTestCase;
+import org.jboss.tools.ui.bot.test.SWTBotJSPMultiPageEditor;
+import org.jboss.tools.ui.bot.test.WidgetVariables;
+import org.jboss.tools.vpe.editor.VpeController;
+import org.jboss.tools.vpe.editor.VpeEditorPart;
+import org.jboss.tools.vpe.editor.mapping.VpeNodeMapping;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMNode;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+public abstract class VPEAutoTestCase extends JBTSWTBotTestCase{
+
+ protected static Properties projectProperties;
+ protected static final String TEST_PAGE = "inputUserName.jsp";
+ protected static String PROJECT_PROPERTIES = "projectProperties.properties";
+
+ /**
+ * Variable defines JBoss EAP 4.3 server location on a file system
+ */
+
+ protected static String JBOSS_EAP_HOME;
+ protected static String JBT_TEST_PROJECT_NAME;
+
+ /* (non-Javadoc)
+ * This static block read properties from
+ * org.jboss.tools.vpe.ui.bot.test/resources/projectProperties.properties file
+ * and set up parameters for project which you would like to create. You may change a
number of parameters
+ * in static block and their values in property file.
+ */
+
+ static {
+ try {
+ InputStream is =
Platform.getBundle(Activator.PLUGIN_ID).getResource(PROJECT_PROPERTIES).openStream();
+ projectProperties = new Properties();
+ projectProperties.load(is);
+ } catch (IOException e) {
+ fail("Can't load properties from " + PROJECT_PROPERTIES + "
file");
+ } catch (IllegalStateException e) {
+ fail("Property file " + PROJECT_PROPERTIES + " was not found");
+ }
+ JBOSS_EAP_HOME =
System.getProperty("jbosstools.test.jboss.home",projectProperties.getProperty("JBossEap4.3"));
+ JBT_TEST_PROJECT_NAME = projectProperties.getProperty("JSFProjectName");
+ }
+
+ /**
+ * @see #clearWorkbench()
+ * @see #createJSFProject(String)
+ */
+
+ protected void setUp() throws Exception {
+ super.setUp();
+ clearWorkbench();
+ SWTBot innerBot = bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER).bot();
+ SWTBotTree tree = innerBot.tree();
+ try {
+ tree.getTreeItem(JBT_TEST_PROJECT_NAME);
+ } catch (WidgetNotFoundException e) {
+ createJSFProject(JBT_TEST_PROJECT_NAME);
+ }
+ }
+
+ /**
+ * Tears down the fixture. Verify Error Log. Close all dialogs which may be not closed
+ * after test executing.
+ * @see #clearWorkbench()
+ */
+
+ @Override
+ protected void tearDown() throws Exception {
+ clearWorkbench();
+ super.tearDown();
+ }
+
+ /**
+ * Create JSF Project with <b>jsfProjectName</b>
+ * @param jsfProjectName - name of created project
+ */
+
+ protected void createJSFProject(String jsfProjectName){
+ bot.menu("File").menu("New").menu("Other...").click();
+ bot.shell("New").activate();
+ SWTBotTree tree = bot.tree();
+ delay();
+ tree.expandNode("JBoss Tools
Web").expandNode("JSF").select("JSF Project");
+ bot.button("Next >").click();
+ bot.textWithLabel("Project Name*").setText(jsfProjectName);
+ bot.comboBoxWithLabel("Template*").setSelection("JSFKickStartWithoutLibs");
+ bot.button("Next >").click();
+ try {
+ bot.comboBoxWithLabel("Runtime*").setSelection("jboss-eap
Runtime");
+ delay();
+ bot.button("Finish").click();
+ try {
+ bot.button("Yes").click();
+ openErrorLog();
+ openPackageExplorer();
+// openProgressStatus();
+ } catch (WidgetNotFoundException e) {
+ }
+ } catch (WidgetNotFoundException e) {
+ bot.button(0).click();
+ SWTBotTree innerTree = bot.tree();
+ delay();
+ innerTree.expandNode("JBoss Enterprise Middleware").select("JBoss
Enterprise Application Platform 4.3 Runtime");
+ bot.button("Next >").click();
+ bot.textWithLabel("Home Directory").setText(JBOSS_EAP_HOME);
+ bot.button("Finish").click();
+ delay();
+ bot.button("Finish").click();
+ try {
+ bot.button("Yes").click();
+ openErrorLog();
+ openPackageExplorer();
+// openProgressStatus();
+ } catch (WidgetNotFoundException e2) {
+ }
+ }
+ try {
+ waitForBlockingJobsAcomplished(60*1000L, BUILDING_WS);
+ } catch (InterruptedException e) {
+ }
+ setException(null);
+ }
+
+ /**
+ * Test content of elements from <b>editor</b> by IDs.<p>
+ * Tested elements from source editor should have id's attributes that
+ * correspond to expected one from <b>expectedVPEContentFile</b>.
+ * @param expectedVPEContentFile - file name, for example,
<i>"ShowNonVisualTags.xml"</i>
+ * with expected VPE DOM Elements and id's attributes correspond to source
<b>editor</b> element
+ * @param editor - {@link JSPMultiPageEditor} that contains source code with tested
elements and current id.
+ * @throws Throwable
+ * @see SWTBotJSPMultiPageEditor
+ * @see Throwable
+ */
+ @Deprecated
+ protected void performContentTestByIDs(String expectedVPEContentFile,
SWTBotJSPMultiPageEditor editor) throws Throwable{
+
+ JSPMultiPageEditor multiPageEditor = editor.getJspMultiPageEditor();
+ assertNotNull(multiPageEditor);
+
+ VpeController controller = TestUtil.getVpeController(multiPageEditor);
+
+ String expectedVPEContentFilePath = getPathToResources(expectedVPEContentFile);
+
+ File xmlTestFile = new File (expectedVPEContentFilePath);
+
+ Document xmlTestDocument = TestDomUtil.getDocument(xmlTestFile);
+ assertNotNull("Can't get test file, possibly file not exists
"+xmlTestFile,xmlTestDocument); //$NON-NLS-1$
+
+ List<String> ids = TestDomUtil.getTestIds(xmlTestDocument);
+
+ for (String id : ids) {
+
+ compareElements(controller, xmlTestDocument, id, id);
+ }
+
+ if (getException() != null) {
+ throw getException();
+ }
+
+ }
+
+ private void compareElements(VpeController controller,
+ Document xmlTestDocument, String elementId, String xmlTestId)
+ throws ComparisonException {
+
+ // get element by id
+ nsIDOMElement vpeElement = findElementById(controller, elementId);
+ assertNotNull("Cann't find element with id="+elementId,vpeElement);
//$NON-NLS-1$
+
+ // get test element by id - get <test id="..." > element and get his
+ // first child
+ Element xmlModelElement = TestDomUtil.getFirstChildElement(TestDomUtil
+ .getElemenById(xmlTestDocument, xmlTestId));
+
+ assertNotNull(xmlModelElement);
+
+ // compare DOMs
+ try {
+ TestDomUtil.compareNodes(vpeElement, xmlModelElement);
+ } catch (ComparisonException e) {
+ fail(e.getMessage());
+ }
+
+ }
+
+ private nsIDOMElement findElementById(VpeController controller,
+ String elementId) {
+
+ Element sourceElement = findSourceElementById(controller, elementId);
+
+ VpeNodeMapping nodeMapping = controller.getDomMapping().getNodeMapping(
+ sourceElement);
+
+ if (nodeMapping == null)
+ return null;
+
+ return (nsIDOMElement) nodeMapping.getVisualNode();
+ }
+
+ private Element findSourceElementById(VpeController controller,
+ String elementId) {
+
+ return getSourceDocument(controller).getElementById(elementId);
+ }
+
+ private Document getSourceDocument(VpeController controller) {
+ return controller.getSourceBuilder().getSourceDocument();
+ }
+
+ protected String getPathToResources(String testPage) throws IOException {
+ String filePath =
FileLocator.toFileURL(Platform.getBundle(Activator.PLUGIN_ID).getEntry("/")).getFile()+"resources/"+testPage;
+ File file = new File(filePath);
+ if (!file.isFile()) {
+ filePath =
FileLocator.toFileURL(Platform.getBundle(Activator.PLUGIN_ID).getEntry("/")).getFile()+testPage;
+ }
+ return filePath;
+ }
+
+ @Override
+ protected void activePerspective() {
+ if (!bot.perspectiveByLabel("Web Development").isActive()) {
+ bot.perspectiveByLabel("Web Development").activate();
+ }
+ }
+
+ protected void openPalette(){
+ try {
+ bot.viewByTitle(WidgetVariables.PALETTE);
+ } catch (WidgetNotFoundException e) {
+ bot.menu("Window").menu("Show
View").menu("Other...").click();
+ SWTBotTree viewTree = bot.tree();
+ delay();
+ viewTree.expandNode("JBoss Tools Web").expandNode(
+ WidgetVariables.PALETTE).select();
+ bot.button("OK").click();
+ }
+ }
+
+ /**
+ * Close all dialogs and editors, which may be not closed
+ * after test executing.
+ * @see #isUnuseDialogOpened()
+ * @see #closeUnuseDialogs()
+ */
+
+ protected void clearWorkbench(){
+ while (isUnuseDialogOpened()) {
+ closeUnuseDialogs();
+ }
+ List<? extends SWTBotEditor> editors = bot.editors();
+ if (editors != null) {
+ for (int i = 0; i < editors.size(); i++) {
+ editors.get(i).close();
+ }
+ }
+ }
+
+ /**
+ * Test content for elements from all VPE DOM that are nested with
<i>BODY</i> descriptor
+ * @param expectedVPEContentFile - file name, for example,
<i>"VerificationOfNameSpaces.xml"</i>
+ * with expected VPE DOM Elements that are nested with <i>BODY</i>
descriptor
+ * @param editor - {@link JSPMultiPageEditor} that contains source code of currently
tested page.
+ * @throws Throwable
+ */
+
+ protected void performContentTestByDocument(String expectedVPEContentFile,
SWTBotJSPMultiPageEditor editor) throws Throwable{
+ JSPMultiPageEditor multiPageEditor = editor.getJspMultiPageEditor();
+ assertNotNull(multiPageEditor);
+
+ nsIDOMDocument visualDocument =
((VpeEditorPart)multiPageEditor.getVisualEditor()).getVisualEditor().getDomDocument();
+
+ String expectedVPEContentFilePath = getPathToResources(expectedVPEContentFile);
+
+ File xmlTestFile = new File (expectedVPEContentFilePath);
+
+ Document xmlTestDocument = TestDomUtil.getDocument(xmlTestFile);
+ assertNotNull("Can't get test file, possibly file not exists
"+xmlTestFile,xmlTestDocument); //$NON-NLS-1$
+
+ compareDocuments(visualDocument, xmlTestDocument);
+
+ }
+
+ private void compareDocuments (nsIDOMDocument visualDocument, Document xmlTestDocument)
throws ComparisonException{
+ nsIDOMNode visualBodyNode =
visualDocument.getElementsByTagName("BODY").item(0);
+ Node testBodyNode = xmlTestDocument.getElementsByTagName("BODY").item(0);
+ TestDomUtil.compareNodes(visualBodyNode, testBodyNode);
+ }
+
+ /**
+ * Try to close all unnecessary dialogs, that could prevent next tests fails
+ */
+
+ protected abstract void closeUnuseDialogs();
+
+ /**
+ * Verify if any dialog that should be closed is opened
+ */
+
+ protected abstract boolean isUnuseDialogOpened();
+
+}
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAutoTestCase.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/BlockCommentTest.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/BlockCommentTest.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/BlockCommentTest.java 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,133 @@
+package org.jboss.tools.vpe.ui.bot.test.editor;
+
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Event;
+
+public class BlockCommentTest extends VPEEditorTestCase{
+
+ public void testBlockComment() throws Throwable{
+
+ //Test open page
+
+ openPage();
+
+ setEditor(bot.editorByTitle(TEST_PAGE).toTextEditor());
+ setEditorText(getEditor().getText());
+
+ //Test add block comment from Source menu
+
+ getEditor().navigateTo(22,22);
+ bot.menu("Source").menu("Add Block Comment").click();
+ checkVPE("BlockCommentTestToggle.xml");
+
+ //Test remove block comment from Source menu
+
+ getEditor().navigateTo(22,22);
+ bot.menu("Source").menu("Remove Block Comment").click();
+ checkVPE("CommentTestUntoggle.xml");
+
+
+ //Test add block comment with CTRL+SHIFT+/ hot keys
+
+ getEditor().navigateTo(22,22);
+ pressBlockCommentHotKeys();
+ checkVPE("BlockCommentTestToggle.xml");
+
+ //Test remove block comment with CTRL+SHIFT+\ hot keys
+
+ getEditor().navigateTo(22,22);
+ pressUnBlockCommentHotKeys();
+ checkVPE("CommentTestUntoggle.xml");
+
+ //Test add block comment lines from Source menu
+
+ getEditor().navigateTo(18,22);
+ bot.menu("Source").menu("Add Block Comment").click();
+ checkVPE("BlockCommentTestLinesToggle.xml");
+
+ //Test remove block comment lines from Source menu
+
+ getEditor().navigateTo(18,22);
+ bot.menu("Source").menu("Remove Block Comment").click();
+ checkVPE("CommentTestUntoggle.xml");
+
+ //Test add block comment lines with CTRL+SHIFT+/ hot keys
+
+ getEditor().navigateTo(18,22);
+ bot.menu("Source").menu("Add Block Comment").click();
+ checkVPE("BlockCommentTestLinesToggle.xml");
+
+ //Test remove block comment lines with CTRL+SHIFT+/ hot keys
+
+ getEditor().navigateTo(18,22);
+ bot.menu("Source").menu("Remove Block Comment").click();
+ checkVPE("CommentTestUntoggle.xml");
+
+ }
+
+ private void pressBlockCommentHotKeys(){
+ bot.getDisplay().syncExec(new Runnable() {
+ public void run() {
+ Display display = bot.getDisplay();
+ Event event = new Event();
+ event.type = SWT.KeyDown;
+ event.keyCode = SWT.CTRL;
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyDown;
+ event.keyCode = SWT.SHIFT;
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyDown;
+ event.character = '/';
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyUp;
+ event.character = '/';
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyUp;
+ event.keyCode = SWT.SHIFT;
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyUp;
+ event.keyCode = SWT.CTRL;
+ display.post(event);
+ }
+ });
+ }
+
+ private void pressUnBlockCommentHotKeys(){
+ bot.getDisplay().syncExec(new Runnable() {
+ public void run() {
+ Display display = bot.getDisplay();
+ Event event = new Event();
+ event.type = SWT.KeyDown;
+ event.keyCode = SWT.CTRL;
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyDown;
+ event.keyCode = SWT.SHIFT;
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyDown;
+ event.character = '\\';
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyUp;
+ event.character = '\\';
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyUp;
+ event.keyCode = SWT.SHIFT;
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyUp;
+ event.keyCode = SWT.CTRL;
+ display.post(event);
+ }
+ });
+ }
+
+}
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/BlockCommentTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/ToggleCommentTest.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/ToggleCommentTest.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/ToggleCommentTest.java 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,76 @@
+package org.jboss.tools.vpe.ui.bot.test.editor;
+
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Event;
+
+public class ToggleCommentTest extends VPEEditorTestCase{
+
+ public void testToggleComment() throws Throwable{
+
+ //Test open page
+
+ openPage();
+
+ setEditor(bot.editorByTitle(TEST_PAGE).toTextEditor());
+ setEditorText(getEditor().getText());
+
+ //Test toggle comment from Source menu
+
+ getEditor().navigateTo(22,22);
+ bot.menu("Source").menu("Toggle Comment").click();
+ checkVPE("ToggleCommentTestToggle.xml");
+
+ //Test untoggle comment from Source menu
+
+ getEditor().navigateTo(22,22);
+ bot.menu("Source").menu("Toggle Comment").click();
+ checkVPE("CommentTestUntoggle.xml");
+
+ //Test toggle comment with CTRL+SHIFT+C hot keys
+
+ getEditor().navigateTo(22,22);
+ pressToggleCommentHotKeys();
+ checkVPE("ToggleCommentTestToggle.xml");
+
+ //Test untoggle comment with CTRL+SHIFT hot keys
+
+ getEditor().navigateTo(22,22);
+ pressToggleCommentHotKeys();
+ checkVPE("CommentTestUntoggle.xml");
+
+ }
+
+ private void pressToggleCommentHotKeys(){
+ bot.getDisplay().syncExec(new Runnable() {
+ public void run() {
+ Display display = bot.getDisplay();
+ Event event = new Event();
+ event.type = SWT.KeyDown;
+ event.keyCode = SWT.CTRL;
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyDown;
+ event.keyCode = SWT.SHIFT;
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyDown;
+ event.character = 'c';
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyUp;
+ event.character = 'c';
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyUp;
+ event.keyCode = SWT.SHIFT;
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyUp;
+ event.keyCode = SWT.CTRL;
+ display.post(event);
+ }
+ });
+ }
+
+}
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/ToggleCommentTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/VPEEditorTestCase.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/VPEEditorTestCase.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/VPEEditorTestCase.java 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,87 @@
+package org.jboss.tools.vpe.ui.bot.test.editor;
+
+import java.io.File;
+import java.io.IOException;
+
+import org.eclipse.core.runtime.FileLocator;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEclipseEditor;
+import org.eclipse.swtbot.swt.finder.SWTBot;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
+import org.jboss.tools.ui.bot.test.WidgetVariables;
+import org.jboss.tools.vpe.ui.bot.test.Activator;
+import org.jboss.tools.vpe.ui.bot.test.VPEAutoTestCase;
+
+public abstract class VPEEditorTestCase extends VPEAutoTestCase{
+
+ private String editorText;
+ private SWTBotEclipseEditor editor;
+
+ String getEditorText() {
+ return editorText;
+ }
+
+ void setEditorText(String textEditor) {
+ this.editorText = textEditor;
+ }
+
+ SWTBotEclipseEditor getEditor() {
+ return editor;
+ }
+
+ void setEditor(SWTBotEclipseEditor editor) {
+ this.editor = editor;
+ }
+
+ @Override
+ protected boolean isUnuseDialogOpened() {
+ return false;
+ }
+
+ @Override
+ protected void closeUnuseDialogs() {
+ }
+
+ @Override
+ protected String getPathToResources(String testPage) throws IOException {
+ String filePath =
FileLocator.toFileURL(Platform.getBundle(Activator.PLUGIN_ID).getEntry("/")).getFile()+"resources/editor/"+testPage;
+ File file = new File(filePath);
+ if (!file.isFile()) {
+ filePath =
FileLocator.toFileURL(Platform.getBundle(Activator.PLUGIN_ID).getEntry("/")).getFile()+"editor/"+testPage;
+ }
+ return filePath;
+ }
+
+ void openPage(){
+ SWTBot innerBot = bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER).bot();
+ SWTBotTree tree = innerBot.tree();
+ tree.expandNode(JBT_TEST_PROJECT_NAME)
+ .expandNode("WebContent").expandNode("pages").getNode(TEST_PAGE).doubleClick();
+ }
+
+ void checkVPE(String testPage) throws Throwable{
+ try {
+ waitForBlockingJobsAcomplished("Save", VISUAL_REFRESH, VISUAL_UPDATE);
+ } catch (InterruptedException e) {
+ }
+ performContentTestByDocument(testPage, bot.multiPageEditorByTitle(TEST_PAGE));
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+
+ //Restore page state before tests
+
+ editor.setFocus();
+ bot.menu("Edit").menu("Select All").click();
+ bot.menu("Edit").menu("Delete").click();
+ editor.setText(editorText);
+ editor.save();
+ try {
+ waitForBlockingJobsAcomplished("Save");
+ } catch (InterruptedException e) {
+ }
+ super.tearDown();
+ }
+
+}
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/VPEEditorTestCase.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/VerificationOfNameSpacesTest.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/VerificationOfNameSpacesTest.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/VerificationOfNameSpacesTest.java 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,40 @@
+package org.jboss.tools.vpe.ui.bot.test.editor;
+
+public class VerificationOfNameSpacesTest extends VPEEditorTestCase{
+
+ private static String testText = "<jsp:root\n" +
+ "xmlns:jsp=\"http://java.sun.com/JSP/Page\n" +
+ "xmlns:public=\"http://www.jspcentral.com/tags\"\n" +
+ "version=\"1.2\">\n" +
+ "...\n" +
+ "</jsp:root>";
+
+ public void testVerificationOfNameSpaces() throws Throwable{
+
+ //Test open page
+
+ openPage();
+
+ setEditor(bot.editorByTitle(TEST_PAGE).toTextEditor());
+ setEditorText(getEditor().getText());
+
+ //Test clear source
+
+ getEditor().setFocus();
+ bot.menu("Edit").menu("Select All").click();
+ delay();
+ bot.menu("Edit").menu("Delete").click();
+
+ //Test insert test text
+
+ getEditor().setText(testText);
+ getEditor().save();
+ try {
+ waitForBlockingJobsAcomplished("Save", VISUAL_REFRESH, VISUAL_UPDATE);
+ } catch (InterruptedException e) {
+ }
+ performContentTestByDocument("VerificationOfNameSpaces.xml",
bot.multiPageEditorByTitle(TEST_PAGE));
+
+ }
+
+}
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/VerificationOfNameSpacesTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/AddSubstitutedELExpressionFolderScopeTest.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/AddSubstitutedELExpressionFolderScopeTest.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/AddSubstitutedELExpressionFolderScopeTest.java 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,170 @@
+package org.jboss.tools.vpe.ui.bot.test.editor.pagedesign;
+
+import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEclipseEditor;
+import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor;
+import org.eclipse.swtbot.swt.finder.SWTBot;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTable;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
+import org.jboss.tools.ui.bot.test.WidgetVariables;
+
+public class AddSubstitutedELExpressionFolderScopeTest extends SubstitutedELTestCase{
+
+ private static final String TEST_PAGE_FOR_FOLDER = "testPage";
+ private static final String TEST_FOLDER = "testFolder";
+
+ //Do not edit this variable as test will fail
+ private static final String EL_VALUE = "Any Name";
+
+ public void testAddSubstitutedELExpressionFolderScope() throws Throwable{
+
+ //Test open page
+ openPage();
+ setEditor(bot.editorByTitle(TEST_PAGE).toTextEditor());
+ setEditorText(getEditor().getText());
+
+ //Test create new folder
+
+ SWTBot innerBot = bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER).bot();
+ innerBot.tree().expandNode(JBT_TEST_PROJECT_NAME).expandNode("WebContent")
+ .select();
+
+ bot.menu("File").menu("New").menu("Folder").click();
+
+ bot.shell("New Folder").activate();
+ bot.textWithLabel("Folder name:").setText(TEST_FOLDER);
+ bot.button("Finish").click();
+
+ //Test create page in new folder
+
+ innerBot = bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER).bot();
+ innerBot.tree().expandNode(JBT_TEST_PROJECT_NAME).expandNode("WebContent")
+ .getNode(TEST_FOLDER).select();
+
+ bot.menu("File").menu("New").menu("JSP File").click();
+
+ bot.shell("New File JSP").activate();
+ bot.textWithLabel("Name*").setText(TEST_PAGE_FOR_FOLDER);
+ bot.button("Finish").click();
+ delay();
+ SWTBotEclipseEditor editorForTestPage =
bot.editorByTitle(TEST_PAGE_FOR_FOLDER+".jsp").toTextEditor();
+ editorForTestPage.setText(getEditorText());
+ editorForTestPage.save();
+ editorForTestPage.close();
+ bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER).setFocus();
+ bot.editorByTitle(TEST_PAGE).setFocus();
+
+ //Test open Page Design Options
+
+ bot.toolbarButtonWithTooltip(PAGE_DESIGN).click();
+ bot.shell(PAGE_DESIGN).activate();
+
+ //Test choose Substituted EL tab
+
+ bot.tabItem(SUBSTITUTED_EL).activate();
+
+ //Clear EL table
+ clearELTable(bot.table());
+
+ //Test add EL with folder scope to list
+
+ bot.button("Add").click();
+ delay();
+ bot.shell(ADD_EL).activate();
+ bot.textWithLabel("El Name*").setText("user.name");
+ bot.textWithLabel("Value").setText(EL_VALUE);
+ bot.radio("Folder: Any Page at the Same Folder").click();
+ bot.button("Finish").click();
+
+ //Test check table with ELs
+
+ bot.shell(PAGE_DESIGN).activate();
+ SWTBotTable table = bot.table();
+ String elName = table.cell(0, "El Expression");
+ String scope = table.cell(0, "Scope");
+ String elValue = table.cell(0, "Value");
+ assertEquals("user.name",elName);
+ assertEquals("Folder",scope);
+ assertEquals(EL_VALUE, elValue);
+
+ //Test close Design Options
+
+ bot.button("OK").click();
+ try {
+ waitForBlockingJobsAcomplished(VISUAL_REFRESH,VISUAL_UPDATE);
+ } catch (InterruptedException e) {
+ }
+
+ //Check page content
+
+ checkVPEForTestPage("AddSubstitutedELExpressionTestPage.xml");
+ checkVPEForHelloPage("AddSubstitutedELExpressionHelloPage.xml");
+ checkVPEForTestPageFolder("RemoveSubstitutedELExpressionTestPage.xml");
+
+ //Test check the page in the same folder
+
+
+
+ //Test open Page Design Options
+
+ bot.toolbarButtonWithTooltip(PAGE_DESIGN).click();
+ bot.shell(PAGE_DESIGN).activate();
+
+ //Test choose Substituted EL tab
+
+ bot.tabItem(SUBSTITUTED_EL).activate();
+
+ //Delete item
+
+ bot.table().select(0);
+ bot.button("Remove").click();
+ bot.button("OK").click();
+
+ //Check VPE content
+
+ checkVPEForTestPage("RemoveSubstitutedELExpressionTestPage.xml");
+ checkVPEForHelloPage("RemoveSubstitutedELExpressionHelloPage.xml");
+ checkVPEForTestPageFolder("RemoveSubstitutedELExpressionTestPage.xml");
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+ bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER).setFocus();
+ SWTBot innerBot = bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER).bot();
+ innerBot.tree().expandNode(JBT_TEST_PROJECT_NAME).expandNode("WebContent")
+ .getNode(TEST_FOLDER).select();
+ bot.menu("Edit").menu("Delete").click();
+ bot.shell("Confirm Delete").activate();
+ bot.button("OK").click();
+ delay();
+ super.tearDown();
+ }
+
+ private void checkVPEForTestPageFolder(String testPageFolder) throws Throwable{
+
+ //Open hello page
+
+ SWTBot innerBot = bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER).bot();
+ SWTBotTree tree = innerBot.tree();
+ tree.expandNode(JBT_TEST_PROJECT_NAME)
+ .expandNode("WebContent").expandNode(TEST_FOLDER)
+ .getNode(TEST_PAGE_FOR_FOLDER+".jsp").doubleClick();
+ SWTBotEditor editor = bot.editorByTitle(TEST_PAGE_FOR_FOLDER+".jsp");
+ try {
+ waitForBlockingJobsAcomplished(VISUAL_REFRESH, VISUAL_UPDATE);
+ } catch (InterruptedException e) {
+ }
+
+ //Check page content
+
+ try {
+ performContentTestByDocument(testPageFolder,
bot.multiPageEditorByTitle(TEST_PAGE_FOR_FOLDER+".jsp"));
+ } catch (Throwable e) {
+ throw e;
+ }finally{
+ editor.close();
+ openPage();
+ }
+
+ }
+
+}
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/AddSubstitutedELExpressionFolderScopeTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/PageDesignTestCase.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/PageDesignTestCase.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/PageDesignTestCase.java 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,59 @@
+package org.jboss.tools.vpe.ui.bot.test.editor.pagedesign;
+
+import java.io.File;
+import java.io.IOException;
+
+import org.eclipse.core.runtime.FileLocator;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.swtbot.swt.finder.SWTBot;
+import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
+import org.jboss.tools.ui.bot.test.WidgetVariables;
+import org.jboss.tools.vpe.ui.bot.test.Activator;
+import org.jboss.tools.vpe.ui.bot.test.VPEAutoTestCase;
+
+public abstract class PageDesignTestCase extends VPEAutoTestCase{
+
+ final static String PAGE_DESIGN = "Page Design Options";
+
+ @Override
+ protected void closeUnuseDialogs() {
+ try {
+ bot.shell(PAGE_DESIGN).close();
+ } catch (WidgetNotFoundException e) {
+ }
+ }
+
+ @Override
+ protected boolean isUnuseDialogOpened() {
+ boolean isOpened = false;
+ try {
+ bot.shell(PAGE_DESIGN).activate();
+ isOpened = true;
+ } catch (WidgetNotFoundException e) {
+ }
+ return isOpened;
+ }
+
+ void closePage(){
+ bot.editorByTitle(TEST_PAGE).close();
+ }
+
+ void openPage(){
+ SWTBot innerBot = bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER).bot();
+ SWTBotTree tree = innerBot.tree();
+ tree.expandNode(JBT_TEST_PROJECT_NAME)
+ .expandNode("WebContent").expandNode("pages").getNode(TEST_PAGE).doubleClick();
+ }
+
+ @Override
+ protected String getPathToResources(String testPage) throws IOException {
+ String filePath =
FileLocator.toFileURL(Platform.getBundle(Activator.PLUGIN_ID).getEntry("/")).getFile()+"resources/pagedesign/"+testPage;
+ File file = new File(filePath);
+ if (!file.isFile()) {
+ filePath =
FileLocator.toFileURL(Platform.getBundle(Activator.PLUGIN_ID).getEntry("/")).getFile()+"pagedesign/"+testPage;
+ }
+ return filePath;
+ }
+
+}
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/PageDesignTestCase.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/SubstitutedELTestCase.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/SubstitutedELTestCase.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/SubstitutedELTestCase.java 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,121 @@
+package org.jboss.tools.vpe.ui.bot.test.editor.pagedesign;
+
+import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEclipseEditor;
+import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor;
+import org.eclipse.swtbot.swt.finder.SWTBot;
+import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTable;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
+import org.jboss.tools.ui.bot.test.WidgetVariables;
+
+public abstract class SubstitutedELTestCase extends PageDesignTestCase{
+
+ static final String ADD_EL = "Add EL Reference";
+ static final String SUBSTITUTED_EL = "Substituted EL expressions";
+ private SWTBotEclipseEditor editor;
+ private String editorText;
+
+
+ SWTBotEclipseEditor getEditor() {
+ return editor;
+ }
+
+ void setEditor(SWTBotEclipseEditor editor) {
+ this.editor = editor;
+ }
+
+ String getEditorText() {
+ return editorText;
+ }
+
+ void setEditorText(String editorText) {
+ this.editorText = editorText;
+ }
+
+ @Override
+ protected void closeUnuseDialogs() {
+ try {
+ bot.shell(ADD_EL).close();
+ } catch (WidgetNotFoundException e) {
+ }
+ super.closeUnuseDialogs();
+ }
+
+ @Override
+ protected boolean isUnuseDialogOpened() {
+ boolean isOpened = super.isUnuseDialogOpened();
+ try {
+ bot.shell(ADD_EL).activate();
+ isOpened = true;
+ } catch (WidgetNotFoundException e) {
+ }
+ return isOpened;
+ }
+
+
+ void checkVPEForTestPage(String testPage) throws Throwable{
+ try {
+ waitForBlockingJobsAcomplished(VISUAL_REFRESH, VISUAL_UPDATE);
+ } catch (InterruptedException e) {
+ }
+ performContentTestByDocument(testPage, bot.multiPageEditorByTitle(TEST_PAGE));
+ }
+
+ @Override
+ protected void setUp() throws Exception {
+ super.setUp();
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+ bot.toolbarButtonWithTooltip(PAGE_DESIGN).click();
+ bot.shell(PAGE_DESIGN).activate();
+ bot.tabItem(SUBSTITUTED_EL).activate();
+ clearELTable(bot.table());
+ try {
+ bot.button("OK").click();
+ } catch (WidgetNotFoundException e) {
+ bot.shell(PAGE_DESIGN).close();
+ }
+ super.tearDown();
+ }
+
+ void clearELTable(SWTBotTable table){
+ try {
+ while (true) {
+ table.select(0);
+ bot.button("Remove").click();
+ }
+ } catch (IllegalArgumentException e) {
+ }
+ catch (WidgetNotFoundException e) {
+ }
+ }
+
+ void checkVPEForHelloPage(String testHelloPage) throws Throwable{
+
+ //Open hello page
+
+ SWTBot innerBot = bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER).bot();
+ SWTBotTree tree = innerBot.tree();
+ tree.expandNode(JBT_TEST_PROJECT_NAME)
+ .expandNode("WebContent").expandNode("pages").getNode("hello.jsp").doubleClick();
+ SWTBotEditor editor = bot.editorByTitle("hello.jsp");
+ try {
+ waitForBlockingJobsAcomplished(VISUAL_REFRESH, VISUAL_UPDATE);
+ } catch (InterruptedException e) {
+ }
+
+ //Check page content
+
+ try {
+ performContentTestByDocument(testHelloPage,
bot.multiPageEditorByTitle("hello.jsp"));
+ } catch (Throwable e) {
+ throw e;
+ }finally{
+ editor.close();
+ openPage();
+ }
+ }
+
+}
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/pagedesign/SubstitutedELTestCase.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/AlwaysHideSelectionBarWithoutPromptTest.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/AlwaysHideSelectionBarWithoutPromptTest.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/AlwaysHideSelectionBarWithoutPromptTest.java 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,82 @@
+package org.jboss.tools.vpe.ui.bot.test.editor.preferences;
+
+import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
+
+public class AlwaysHideSelectionBarWithoutPromptTest extends PreferencesTestCase{
+
+ private static final String HID_SEL_BAR = "Hide selection bar";
+
+ public void testAlwaysHideSelectionBarWithoutPrompt(){
+
+ //Test Hide Selection Bar
+
+ selectSelection();
+ checkIsHide();
+
+ //Test Hide selection after reopen
+
+ closePage();
+ openPage();
+ checkIsHide();
+
+ //Test Show Selection Bar
+
+ selectSelection();
+ checkIsShow();
+
+ //Test Show Selection Bar after reopen
+
+ closePage();
+ openPage();
+ checkIsShow();
+
+ //Test Hide Selection Bar button without confirm
+
+ selectSelection();
+ selectPrompt();
+ bot.toolbarButtonWithTooltip(HID_SEL_BAR).click();
+ checkIsHide();
+
+ //Test Show selection after reopen
+
+ closePage();
+ openPage();
+ checkIsShow();
+
+ }
+
+ private void checkIsHide(){
+ IndexOutOfBoundsException exception = null;
+ try {
+ bot.toolbarButtonWithTooltip(HID_SEL_BAR,1);
+ } catch (IndexOutOfBoundsException e) {
+ exception = e;
+ }
+ assertNotNull(exception);
+ }
+
+ private void checkIsShow(){
+ WidgetNotFoundException exception = null;
+ try {
+ bot.toolbarButtonWithTooltip(HID_SEL_BAR);
+ } catch (WidgetNotFoundException e) {
+ exception = e;
+ }
+ assertNull(exception);
+ }
+
+ private void selectSelection(){
+ bot.toolbarButtonWithTooltip(PREF_TOOLTIP).click();
+ bot.shell(PREF_FILTER_SHELL_TITLE).activate();
+ bot.checkBox(SHOW_SELECTION_TAG_BAR).click();
+ bot.button("OK").click();
+ }
+
+ private void selectPrompt(){
+ bot.toolbarButtonWithTooltip(PREF_TOOLTIP).click();
+ bot.shell(PREF_FILTER_SHELL_TITLE).activate();
+ bot.checkBox(ASK_FOR_CONFIRM).click();
+ bot.button("OK").click();
+ }
+
+}
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/AlwaysHideSelectionBarWithoutPromptTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/BorderForUnknownTagsTest.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/BorderForUnknownTagsTest.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/BorderForUnknownTagsTest.java 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,80 @@
+package org.jboss.tools.vpe.ui.bot.test.editor.preferences;
+
+import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEclipseEditor;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox;
+
+public class BorderForUnknownTagsTest extends PreferencesTestCase{
+
+ private static String textEditor;
+ private static SWTBotEclipseEditor editor;
+
+ public void testBorderForUnknownTags() throws Throwable{
+
+ //Test open page
+ editor = bot.editorByTitle(TEST_PAGE).toTextEditor();
+ textEditor = editor.getText();
+
+ //Test insert unknown tag
+
+ editor.navigateTo(12, 52);
+ editor.insertText("<tagunknown></tagunknown>");
+
+ //Test default Show Border value
+
+ bot.toolbarButtonWithTooltip(PREF_TOOLTIP).click();
+ bot.shell(PREF_FILTER_SHELL_TITLE).activate();
+ SWTBotCheckBox checkBox = bot.checkBox(SHOW_BORDER_FOR_UNKNOWN_TAGS);
+ if (!checkBox.isChecked()) {
+ checkBox.click();
+ }
+ bot.button("OK").click();
+
+ //Test check VPE content
+
+ checkVPE("ShowBorderForUnknownTag.xml");
+
+ //Test hide border for unknown tag
+
+ selectBorder();
+ checkVPE("HideBorderForUnknownTag.xml");
+
+ //Test restore previous state
+
+ selectBorder();
+ checkVPE("ShowBorderForUnknownTag.xml");
+
+ }
+
+ private void checkVPE(String testPage) throws Throwable{
+ try {
+ waitForBlockingJobsAcomplished(VISUAL_REFRESH, VISUAL_UPDATE);
+ } catch (InterruptedException e) {
+ }
+ performContentTestByDocument(testPage, bot.multiPageEditorByTitle(TEST_PAGE));
+ }
+
+ private void selectBorder(){
+ bot.toolbarButtonWithTooltip(PREF_TOOLTIP).click();
+ bot.shell(PREF_FILTER_SHELL_TITLE).activate();
+ bot.checkBox(SHOW_BORDER_FOR_UNKNOWN_TAGS).click();
+ bot.button("OK").click();
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+
+ //Restore page state before tests
+
+ editor.setFocus();
+ bot.menu("Edit").menu("Select All").click();
+ bot.menu("Edit").menu("Delete").click();
+ editor.setText(textEditor);
+ editor.save();
+ try {
+ waitForBlockingJobsAcomplished("Save");
+ } catch (InterruptedException e) {
+ }
+ super.tearDown();
+ }
+
+}
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/BorderForUnknownTagsTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ChangeEditorTabForTheFirstOpenPageTest.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ChangeEditorTabForTheFirstOpenPageTest.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ChangeEditorTabForTheFirstOpenPageTest.java 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,55 @@
+package org.jboss.tools.vpe.ui.bot.test.editor.preferences;
+
+import org.eclipse.swtbot.swt.finder.SWTBot;
+import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
+import org.jboss.tools.ui.bot.test.WidgetVariables;
+
+public class ChangeEditorTabForTheFirstOpenPageTest extends PreferencesTestCase{
+
+ public void testChangeEditorTabForTheFirstOpenPage(){
+
+ //Test set default source tab
+
+ bot.toolbarButtonWithTooltip(PREF_TOOLTIP).click();
+ bot.shell(PREF_FILTER_SHELL_TITLE).activate();
+ bot.comboBoxWithLabel(SELECT_DEFAULT_TAB).setSelection("Source");
+ bot.button("OK").click();
+
+ //Create and open new page
+
+ SWTBot innerBot = bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER).bot();
+
+ innerBot.tree().expandNode(JBT_TEST_PROJECT_NAME).expandNode("WebContent")
+ .getNode("pages").select();
+
+ bot.menu("File").menu("New").menu("JSP File").click();
+ bot.shell("New File JSP").activate();
+ bot.textWithLabel("Name*").setText("testPage");
+ bot.button("Finish").click();
+ bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER).setFocus();
+
+ //Check if the tab changed
+ WidgetNotFoundException exception = null;
+ try {
+ bot.toolbarButtonWithTooltip("Refresh").click();
+ } catch (WidgetNotFoundException e) {
+ exception = e;
+ }
+ assertNotNull(exception);
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+
+ //Delete test page if it has been created
+ SWTBot innerBot = bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER).bot();
+ innerBot.tree().expandNode(JBT_TEST_PROJECT_NAME).expandNode("WebContent")
+ .expandNode("pages").getNode("testPage.jsp").select();
+ bot.menu("Edit").menu("Delete").click();
+ bot.shell("Confirm Delete").activate();
+ bot.button("OK").click();
+ bot.multiPageEditorByTitle(TEST_PAGE).selectTab("Visual/Source");
+ super.tearDown();
+ }
+
+}
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ChangeEditorTabForTheFirstOpenPageTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/PreferencesTestCase.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/PreferencesTestCase.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/PreferencesTestCase.java 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,126 @@
+package org.jboss.tools.vpe.ui.bot.test.editor.preferences;
+
+import java.io.File;
+import java.io.IOException;
+import org.eclipse.core.runtime.FileLocator;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.swtbot.swt.finder.SWTBot;
+import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotCombo;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
+import org.jboss.tools.ui.bot.test.WidgetVariables;
+import org.jboss.tools.vpe.ui.bot.test.Activator;
+import org.jboss.tools.vpe.ui.bot.test.VPEAutoTestCase;
+
+public abstract class PreferencesTestCase extends VPEAutoTestCase{
+
+ protected static final String SHOW_SELECTION_TAG_BAR = "Show selection tag
bar";
+ protected static final String SHOW_NON_VISUAL_TAGS = "Show non-visual tags";
+ protected static final String SHOW_BORDER_FOR_UNKNOWN_TAGS = "Show border for
unknown tags";
+ protected static final String SHOW_RESOURCE_BUNDLES = "Show resource bundles usage
as EL expressions";
+ protected static final String ASK_FOR_ATTRIBUTES = "Ask for tag attributes during
tag insert";
+ protected static final String ASK_FOR_CONFIRM = "Ask for confirmation when closing
Selection Bar";
+ protected static final String SELECT_DEFAULT_TAB = "Select the default active
editor's tab for files that haven't been previously opened in the VPE";
+ protected static final String EDITOR_SPLITTING = "Visual/Source editors
splitting";
+ protected static final String SHOW_TEXY_FORMAT = "Show text formatting bar";
+ protected static final String PREF_TOOLTIP = "Preferences";
+ protected static final String PREF_FILTER_SHELL_TITLE = "Preferences
(Filtered)";
+
+
+ @Override
+ protected void closeUnuseDialogs() {
+ try {
+ bot.shell("Preferences (Filtered)").close();
+ } catch (WidgetNotFoundException e) {
+ }
+ }
+
+ @Override
+ protected boolean isUnuseDialogOpened() {
+ boolean isOpened = false;
+ try {
+ bot.shell("Preferences (Filtered)").activate();
+ isOpened = true;
+ } catch (WidgetNotFoundException e) {
+ }
+ return isOpened;
+ }
+
+ void closePage(){
+ bot.editorByTitle(TEST_PAGE).close();
+ }
+
+ void openPage(){
+ SWTBot innerBot = bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER).bot();
+ SWTBotTree tree = innerBot.tree();
+ tree.expandNode(JBT_TEST_PROJECT_NAME)
+ .expandNode("WebContent").expandNode("pages").getNode(TEST_PAGE).doubleClick();
+ }
+
+ @Override
+ protected String getPathToResources(String testPage) throws IOException {
+ String filePath =
FileLocator.toFileURL(Platform.getBundle(Activator.PLUGIN_ID).getEntry("/")).getFile()+"resources/preferences/"+testPage;
+ File file = new File(filePath);
+ if (!file.isFile()) {
+ filePath =
FileLocator.toFileURL(Platform.getBundle(Activator.PLUGIN_ID).getEntry("/")).getFile()+"preferences/"+testPage;
+ }
+ return filePath;
+ }
+
+ @Override
+ protected void setUp() throws Exception {
+ super.setUp();
+ openPage();
+ bot.toolbarButtonWithTooltip(PREF_TOOLTIP).click();
+ bot.shell(PREF_FILTER_SHELL_TITLE).activate();
+ setPreferencesToDefault();
+ bot.button("OK").click();
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+ openPage();
+ bot.toolbarButtonWithTooltip("Preferences").click();
+ bot.shell("Preferences (Filtered)").activate();
+ setPreferencesToDefault();
+ bot.button("OK").click();
+ super.tearDown();
+ }
+
+ void setPreferencesToDefault() throws WidgetNotFoundException{
+ SWTBotCheckBox checkBox = bot.checkBox(SHOW_BORDER_FOR_UNKNOWN_TAGS);
+ if (checkBox.isChecked()) {
+ checkBox.click();
+ }
+ checkBox = bot.checkBox(SHOW_NON_VISUAL_TAGS);
+ if (checkBox.isChecked()) {
+ checkBox.click();
+ }
+ checkBox = bot.checkBox(SHOW_SELECTION_TAG_BAR);
+ if (!checkBox.isChecked()) {
+ checkBox.click();
+ }
+ checkBox = bot.checkBox(SHOW_RESOURCE_BUNDLES);
+ if (checkBox.isChecked()) {
+ checkBox.click();
+ }
+ checkBox = bot.checkBox(ASK_FOR_ATTRIBUTES);
+ if (!checkBox.isChecked()) {
+ checkBox.click();
+ }
+ checkBox = bot.checkBox(ASK_FOR_CONFIRM);
+ if (!checkBox.isChecked()) {
+ checkBox.click();
+ }
+ checkBox = bot.checkBox(SHOW_TEXY_FORMAT);
+ if (!checkBox.isChecked()) {
+ checkBox.click();
+ }
+ SWTBotCombo combo = bot.comboBoxWithLabel("Select the default active editor's
tab for files that haven't been previously opened in the VPE");
+ combo.setSelection("Visual/Source");
+ combo = bot.comboBoxWithLabel("Visual/Source editors splitting");
+ combo.setSelection("Vertical splitting with Source Editor on the top");
+ }
+
+}
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/PreferencesTestCase.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowNonVisualTagsTest.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowNonVisualTagsTest.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowNonVisualTagsTest.java 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,39 @@
+package org.jboss.tools.vpe.ui.bot.test.editor.preferences;
+
+public class ShowNonVisualTagsTest extends PreferencesTestCase{
+
+ public void testShowNonVisualTags() throws Throwable{
+
+ checkVPE("DumpedTestPage.xml");
+
+ //Test Show Non-Visual Tags
+
+ selectShowNonVisual();
+ closePage();
+ openPage();
+ checkVPE("ShowNonVisualTags.xml");
+
+ //Test Hide Non-Visual Tags
+ selectShowNonVisual();
+ closePage();
+ openPage();
+ checkVPE("DumpedTestPage.xml");
+
+ }
+
+ private void checkVPE(String testPage) throws Throwable{
+ try {
+ waitForBlockingJobsAcomplished(VISUAL_REFRESH, VISUAL_UPDATE);
+ } catch (InterruptedException e) {
+ }
+ performContentTestByDocument(testPage, bot.multiPageEditorByTitle(TEST_PAGE));
+ }
+
+ private void selectShowNonVisual(){
+ bot.toolbarButtonWithTooltip(PREF_TOOLTIP).click();
+ bot.shell(PREF_FILTER_SHELL_TITLE).activate();
+ bot.checkBox(SHOW_NON_VISUAL_TAGS).click();
+ bot.button("OK").click();
+ }
+
+}
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowNonVisualTagsTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowResourceBundlesUsageasELexpressionsTest.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowResourceBundlesUsageasELexpressionsTest.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowResourceBundlesUsageasELexpressionsTest.java 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,59 @@
+package org.jboss.tools.vpe.ui.bot.test.editor.preferences;
+
+import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEclipseEditor;
+
+public class ShowResourceBundlesUsageasELexpressionsTest extends PreferencesTestCase{
+
+ private static String textEditor;
+ private static SWTBotEclipseEditor editor;
+
+ public void testShowResourceBundlesUsageasELexpressions() throws Throwable{
+
+ editor = bot.editorByTitle(TEST_PAGE).toTextEditor();
+ textEditor = editor.getText();
+
+ //Test check VPE content with resource bundles
+
+ selectELExpressions();
+ checkVPE("ShowResourceBundlesUsageasELExpressions.xml");
+
+ //Test check VPE content without resource bundles
+
+ selectELExpressions();
+ checkVPE("HideResourceBundlesUsageasELExpressions.xml");
+
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+
+ //Restore page state before tests
+
+ editor.setFocus();
+ bot.menu("Edit").menu("Select All").click();
+ bot.menu("Edit").menu("Delete").click();
+ editor.setText(textEditor);
+ editor.save();
+ try {
+ waitForBlockingJobsAcomplished("Save");
+ } catch (InterruptedException e) {
+ }
+ super.tearDown();
+ }
+
+ private void checkVPE(String testPage) throws Throwable{
+ try {
+ waitForBlockingJobsAcomplished(VISUAL_REFRESH, VISUAL_UPDATE);
+ } catch (InterruptedException e) {
+ }
+ performContentTestByDocument(testPage, bot.multiPageEditorByTitle(TEST_PAGE));
+ }
+
+ private void selectELExpressions(){
+ bot.toolbarButtonWithTooltip(PREF_TOOLTIP).click();
+ bot.shell(PREF_FILTER_SHELL_TITLE).activate();
+ bot.checkBox(SHOW_RESOURCE_BUNDLES).click();
+ bot.button("OK").click();
+ }
+
+}
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowResourceBundlesUsageasELexpressionsTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowSelectionTagBarTest.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowSelectionTagBarTest.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowSelectionTagBarTest.java 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,76 @@
+package org.jboss.tools.vpe.ui.bot.test.editor.preferences;
+
+import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
+
+public class ShowSelectionTagBarTest extends PreferencesTestCase{
+
+ private static final String HID_SEL_BAR = "Hide selection bar";
+
+ public void testShowSelectionTagBar(){
+
+ //Test Hide Selection Bar
+
+ selectSelection();
+ checkIsHide();
+
+ //Test Hide selection after reopen
+
+ closePage();
+ openPage();
+ checkIsHide();
+
+ //Test Show Selection Bar
+
+ selectSelection();
+ checkIsShow();
+
+ //Test Show Selection Bar after reopen
+
+ closePage();
+ openPage();
+ checkIsShow();
+
+ //Test Hide Selection Bar button with confirm
+
+ bot.toolbarButtonWithTooltip(HID_SEL_BAR).click();
+ bot.shell("Confirm hide selection bar").activate();
+ bot.button("OK").click();
+ checkIsShow();
+ checkIsHide();
+
+ //Test Show selection after reopen
+
+ closePage();
+ openPage();
+ checkIsShow();
+
+ }
+
+ private void selectSelection(){
+ bot.toolbarButtonWithTooltip(PREF_TOOLTIP).click();
+ bot.shell(PREF_FILTER_SHELL_TITLE).activate();
+ bot.checkBox(SHOW_SELECTION_TAG_BAR).click();
+ bot.button("OK").click();
+ }
+
+ private void checkIsHide(){
+ IndexOutOfBoundsException exception = null;
+ try {
+ bot.toolbarButtonWithTooltip(HID_SEL_BAR,1);
+ } catch (IndexOutOfBoundsException e) {
+ exception = e;
+ }
+ assertNotNull(exception);
+ }
+
+ private void checkIsShow(){
+ WidgetNotFoundException exception = null;
+ try {
+ bot.toolbarButtonWithTooltip(HID_SEL_BAR);
+ } catch (WidgetNotFoundException e) {
+ exception = e;
+ }
+ assertNull(exception);
+ }
+
+}
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowSelectionTagBarTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/jbide/JBIDE4556Test.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/jbide/JBIDE4556Test.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/jbide/JBIDE4556Test.java 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,7 @@
+package org.jboss.tools.vpe.ui.bot.test.jbide;
+
+import org.jboss.tools.vpe.ui.bot.test.palette.CancelTagLibDefenitionTest;
+
+public class JBIDE4556Test extends CancelTagLibDefenitionTest{
+
+}
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/jbide/JBIDE4556Test.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/palette/CancelTagLibDefenitionTest.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/palette/CancelTagLibDefenitionTest.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/palette/CancelTagLibDefenitionTest.java 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,70 @@
+package org.jboss.tools.vpe.ui.bot.test.palette;
+
+import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
+import org.jboss.tools.vpe.ui.bot.test.VPEAutoTestCase;
+
+public class CancelTagLibDefenitionTest extends VPEAutoTestCase{
+
+ @Override
+ protected void createJSFProject(String jsfProjectName) {
+ super.createJSFProject(jsfProjectName);
+ openPalette();
+ }
+
+ public void testCancelTagLibDefenition(){
+
+ //Test open import dialog
+
+ bot.viewByTitle("JBoss Tools Palette").setFocus();
+ bot.toolbarButtonWithTooltip("Import").click();
+ bot.shell("Import Tags from TLD File").activate();
+
+ //Test open edit TLD dialog
+
+ bot.button("Browse...").click();
+ bot.shell("Edit TLD").activate();
+
+ //Test cancel TLD
+ SWTBotTree tree = bot.tree();
+ delay();
+ tree.expandNode(projectProperties.getProperty("JSFProjectName")).expandNode("x-1_0-rt.tld
[x_rt]").select();
+ bot.button("Cancel").click();
+
+ //Test check fields
+
+ bot.shell("Import Tags from TLD File").activate();
+ assertEquals("", bot.textWithLabel("TLD File*").getText());
+ assertEquals("", bot.textWithLabel("Name*").getText());
+ assertEquals("", bot.textWithLabel("Default Prefix").getText());
+ assertEquals("", bot.textWithLabel("Library URI").getText());
+ bot.button("Cancel").click();
+ }
+
+ protected void closeUnuseDialogs(){
+ try {
+ bot.shell("Edit TLD").close();
+ } catch (WidgetNotFoundException e) {
+ }
+ try {
+ bot.shell("Import Tags from TLD File").close();
+ } catch (WidgetNotFoundException e) {
+ }
+ }
+
+ protected boolean isUnuseDialogOpened(){
+ boolean isOpened = false;
+ try {
+ bot.shell("Edit TLD").activate();
+ isOpened = true;
+ } catch (WidgetNotFoundException e) {
+ }
+ try {
+ bot.shell("Import Tags from TLD File").activate();
+ isOpened = true;
+ }catch (WidgetNotFoundException e) {
+ }
+ return isOpened;
+ }
+
+}
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/palette/CancelTagLibDefenitionTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/palette/ImportTagsFromTLDFileTest.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/palette/ImportTagsFromTLDFileTest.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/palette/ImportTagsFromTLDFileTest.java 2009-10-06
10:31:53 UTC (rev 17917)
@@ -0,0 +1,169 @@
+package org.jboss.tools.vpe.ui.bot.test.palette;
+
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
+import org.jboss.tools.vpe.ui.bot.test.VPEAutoTestCase;
+
+public class ImportTagsFromTLDFileTest extends VPEAutoTestCase{
+
+ private static final String GROUP_NAME = "NewGroup";
+
+ public void testImportTagsFromTLDFile(){
+
+ //Test clear group
+ bot.toolbarButtonWithTooltip("Palette Editor").click();
+ bot.shell("Palette Editor").activate();
+ try {
+ bot.getDisplay().syncExec(new Runnable() {
+
+ public void run() {
+ SWTBotTree tree = bot.tree();
+ delay();
+ try {
+ tree.expandNode("XStudio").expandNode("Palette").getNode(GROUP_NAME).select();
+ Display display = bot.getDisplay();
+ Event event = new Event();
+ event.type = SWT.KeyDown;
+ event.character = SWT.DEL;
+ display.post(event);
+ delay();
+ event = new Event();
+ event.type = SWT.KeyUp;
+ event.character = SWT.DEL;
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyDown;
+ event.character = SWT.DEL;
+ display.post(event);
+ delay();
+ event = new Event();
+ event.type = SWT.KeyUp;
+ event.character = SWT.DEL;
+ display.post(event);
+ } catch (WidgetNotFoundException e) {
+ }
+ }
+
+ });
+
+ bot.shell("Confirmation").activate();
+ bot.button("OK").click();
+ } catch (WidgetNotFoundException e) {
+ }
+ bot.shell("Palette Editor").activate();
+ bot.button("OK").click();
+
+ //Test open import dialog
+
+ bot.toolbarButtonWithTooltip("Import").click();
+ bot.shell("Import Tags from TLD File").activate();
+
+ //Test set tag lib
+
+ bot.button("Browse...").click();
+ bot.shell("Edit TLD").activate();
+ SWTBotTree tree = bot.tree();
+ delay();
+ tree.expandNode(projectProperties.getProperty("JSFProjectName")).expandNode("c.tld
[c]").select();
+ bot.button("OK").click();
+
+ //Test set group
+
+ bot.shell("Import Tags from TLD File").activate();
+ bot.radio(1).click();
+ bot.text(4).setText(GROUP_NAME);
+ bot.button("OK").click();
+
+ //Test if group is created
+
+ bot.toolbarButtonWithTooltip("Palette Editor").click();
+ bot.shell("Palette Editor").activate();
+ try {
+ bot.getDisplay().syncExec(new Runnable() {
+
+ public void run() {
+ SWTBotTree tree = bot.tree();
+ delay();
+ try {
+ tree.expandNode("XStudio").expandNode("Palette").getNode(GROUP_NAME).select();
+ Display display = bot.getDisplay();
+ Event event = new Event();
+ event.type = SWT.KeyDown;
+ event.character = SWT.DEL;
+ display.post(event);
+ delay();
+ event = new Event();
+ event.type = SWT.KeyUp;
+ event.character = SWT.DEL;
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyDown;
+ event.character = SWT.DEL;
+ display.post(event);
+ delay();
+ event = new Event();
+ event.type = SWT.KeyUp;
+ event.character = SWT.DEL;
+ display.post(event);
+ } catch (WidgetNotFoundException e) {
+ setException(e);
+ }
+ }
+
+ });
+ bot.shell("Confirmation").activate();
+ bot.button("OK").click();
+ } catch (WidgetNotFoundException e) {
+ }
+ bot.shell("Palette Editor").activate();
+ bot.button("OK").click();
+
+ }
+
+ @Override
+ protected void createJSFProject(String jsfProjectName) {
+ super.createJSFProject(jsfProjectName);
+ openPalette();
+ }
+
+ @Override
+ protected boolean isUnuseDialogOpened() {
+ boolean isOpened = false;
+ try {
+ bot.shell("Edit TLD").activate();
+ isOpened = true;
+ } catch (WidgetNotFoundException e) {
+ }
+ try {
+ bot.shell("Import Tags from TLD File").activate();
+ isOpened = true;
+ }catch (WidgetNotFoundException e) {
+ }
+ try {
+ bot.shell("Palette Editor").activate();
+ isOpened = true;
+ } catch (WidgetNotFoundException e) {
+ }
+ return isOpened;
+ }
+
+ @Override
+ protected void closeUnuseDialogs() {
+ try {
+ bot.shell("Edit TLD").close();
+ } catch (WidgetNotFoundException e) {
+ }
+ try {
+ bot.shell("Import Tags from TLD File").close();
+ }catch (WidgetNotFoundException e) {
+ }
+ try {
+ bot.shell("Palette Editor").close();
+ } catch (WidgetNotFoundException e) {
+ }
+ }
+
+}
Property changes on:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/palette/ImportTagsFromTLDFileTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain