[jbosstools-commits] JBoss Tools SVN: r39615 - in trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test: editor/tags and 1 other directory.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Mon Mar 19 11:28:48 EDT 2012
Author: vpakan at redhat.com
Date: 2012-03-19 11:28:47 -0400 (Mon, 19 Mar 2012)
New Revision: 39615
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/AudioTagTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/CanvasTagTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/CommandTagTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/DetailsTagTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/SummaryTagTest.java
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/ArticleTagTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/AsideTagTest.java
Log:
Added tests for HTML5 tags <AUDIO>, <CANVAS>, <COMMAND>, <DETAILS> and <SUMMARY>.
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java 2012-03-19 14:23:07 UTC (rev 39614)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java 2012-03-19 15:28:47 UTC (rev 39615)
@@ -46,14 +46,17 @@
import org.jboss.tools.vpe.ui.bot.test.editor.tags.AjaxValidatorTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.ArticleTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.AsideTagTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.tags.AudioTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.BeanValidatorTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.CalendarTagTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.tags.CanvasTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.ColumnGroupTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.ColumnTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.ColumnsTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.ComboBoxTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.CommandButtonTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.CommandLinkTagTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.tags.CommandTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.CoreHTMLTagsTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.DataDefinitionTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.DataGridTagTest;
@@ -61,6 +64,7 @@
import org.jboss.tools.vpe.ui.bot.test.editor.tags.DataOrderedListTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.DataScrollerTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.DataTableTagTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.tags.DetailsTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.EditorTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.ExtendedDataTableTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.FileUploadTagTest;
@@ -76,6 +80,7 @@
import org.jboss.tools.vpe.ui.bot.test.editor.tags.PickListTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.ProgressTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.SpacerTagTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.tags.SummaryTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.TogglePanelAndToogleControlTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.ToolbarAndToolbarGroupTagTest;
import org.jboss.tools.vpe.ui.bot.test.editor.tags.TreeTagTest;
@@ -194,7 +199,12 @@
TestNPEinHugeFile.class,
Jbide10020_TestHotKeyForVpeRefresh.class,
ArticleTagTest.class,
- AsideTagTest.class
+ AsideTagTest.class,
+ AudioTagTest.class,
+ CanvasTagTest.class,
+ CommandTagTest.class,
+ DetailsTagTest.class,
+ SummaryTagTest.class
})
public class VPEAllBotTests extends SWTBotTestCase{
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/ArticleTagTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/ArticleTagTest.java 2012-03-19 14:23:07 UTC (rev 39614)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/ArticleTagTest.java 2012-03-19 15:28:47 UTC (rev 39615)
@@ -1,6 +1,6 @@
/*******************************************************************************
- * Copyright (c) 2007-2011 Exadel, Inc. and Red Hat, Inc.
+ * Copyright (c) 2007-2012 Exadel, Inc. and 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,
@@ -12,7 +12,7 @@
package org.jboss.tools.vpe.ui.bot.test.editor.tags;
/**
- * Tests Rich Faces Calendar Tag behavior
+ * Tests Article Tag behavior
* @author vlado pakan
*
*/
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/AsideTagTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/AsideTagTest.java 2012-03-19 14:23:07 UTC (rev 39614)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/AsideTagTest.java 2012-03-19 15:28:47 UTC (rev 39615)
@@ -1,6 +1,6 @@
/*******************************************************************************
- * Copyright (c) 2007-2011 Exadel, Inc. and Red Hat, Inc.
+ * Copyright (c) 2007-2012 Exadel, Inc. and 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,
@@ -12,7 +12,7 @@
package org.jboss.tools.vpe.ui.bot.test.editor.tags;
/**
- * Tests Rich Faces Calendar Tag behavior
+ * Tests Aside Tag behavior
* @author vlado pakan
*
*/
@@ -39,9 +39,9 @@
protected void verifyTag() {
// check Problems View for Errors
assertProbelmsViewNoErrors(botExt);
- // visual representation contains ARTICLE tag
+ // visual representation contains ASIDE tag
assertVisualEditorContains(getVisualEditor(), "ASIDE", null, null, getTestPageFileName());
- // visual representation contains ARTICLE_TEXT text
+ // visual representation contains ASIDE_TEXT text
assertVisualEditorContainsNodeWithValue(getVisualEditor(),
AsideTagTest.ASIDE_TEXT, getTestPageFileName());
}
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/AudioTagTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/AudioTagTest.java (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/AudioTagTest.java 2012-03-19 15:28:47 UTC (rev 39615)
@@ -0,0 +1,44 @@
+/*******************************************************************************
+
+ * Copyright (c) 2007-2012 Exadel, Inc. and 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:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.ui.bot.test.editor.tags;
+
+/**
+ * Tests AUDIO Tag behavior
+ * @author vlado pakan
+ *
+ */
+public class AudioTagTest extends AbstractTagTest{
+ @Override
+ protected void initTestPage() {
+ initTestPage(TestPageType.HTML,
+ "<!DOCTYPE html>\n" +
+ "<html>\n" +
+ " <head>\n" +
+ " <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" +
+ " <title>Insert title here</title>\n" +
+ " </head>\n" +
+ " <body>\n" +
+ " <audio>\n" +
+ " </audio>\n" +
+ " </body>\n" +
+ "</html>\n");
+ }
+
+ @Override
+ protected void verifyTag() {
+ // check Problems View for Errors
+ assertProbelmsViewNoErrors(botExt);
+ // visual representation contains AUDIO tag
+ assertVisualEditorContains(getVisualEditor(), "AUDIO", null, null, getTestPageFileName());
+ }
+
+}
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/AudioTagTest.java
___________________________________________________________________
Added: 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/tags/CanvasTagTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/CanvasTagTest.java (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/CanvasTagTest.java 2012-03-19 15:28:47 UTC (rev 39615)
@@ -0,0 +1,43 @@
+/*******************************************************************************
+
+ * Copyright (c) 2007-2012 Exadel, Inc. and 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:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.ui.bot.test.editor.tags;
+
+/**
+ * Tests ASIDE Tag behavior
+ * @author vlado pakan
+ *
+ */
+public class CanvasTagTest extends AbstractTagTest{
+ @Override
+ protected void initTestPage() {
+ initTestPage(TestPageType.HTML,
+ "<!DOCTYPE html>\n" +
+ "<html>\n" +
+ " <head>\n" +
+ " <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" +
+ " <title>Insert title here</title>\n" +
+ " </head>\n" +
+ " <body>\n" +
+ " <canvas id=\"myCanvas\"></canvas>\n" +
+ " </body>\n" +
+ "</html>\n");
+ }
+
+ @Override
+ protected void verifyTag() {
+ // check Problems View for Errors
+ assertProbelmsViewNoErrors(botExt);
+ // visual representation contains CANVAS tag
+ assertVisualEditorContains(getVisualEditor(), "CANVAS", null, null, getTestPageFileName());
+ }
+
+}
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/CanvasTagTest.java
___________________________________________________________________
Added: 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/tags/CommandTagTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/CommandTagTest.java (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/CommandTagTest.java 2012-03-19 15:28:47 UTC (rev 39615)
@@ -0,0 +1,48 @@
+/*******************************************************************************
+
+ * Copyright (c) 2007-2012 Exadel, Inc. and 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:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.ui.bot.test.editor.tags;
+
+/**
+ * Tests Command Tag behavior
+ * @author vlado pakan
+ *
+ */
+public class CommandTagTest extends AbstractTagTest{
+ private static String COMMAND_TEXT = "COMMAND-TEXT";
+ @Override
+ protected void initTestPage() {
+ initTestPage(TestPageType.HTML,
+ "<!DOCTYPE html>\n" +
+ "<html>\n" +
+ " <head>\n" +
+ " <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" +
+ " <title>Insert title here</title>\n" +
+ " </head>\n" +
+ " <body>\n" +
+ " <command type=\"command\" label=\"Command Label\" onclick=\"command()\">" +
+ CommandTagTest.COMMAND_TEXT + "</command>\n" +
+ " </body>\n" +
+ "</html>\n");
+ }
+
+ @Override
+ protected void verifyTag() {
+ // check Problems View for Errors
+ assertProbelmsViewNoErrors(botExt);
+ // visual representation contains COMMAND tag
+ assertVisualEditorContains(getVisualEditor(), "COMMAND", null, null, getTestPageFileName());
+ // visual representation contains COMMAND_TEXT text
+ assertVisualEditorContainsNodeWithValue(getVisualEditor(),
+ CommandTagTest.COMMAND_TEXT, getTestPageFileName());
+ }
+
+}
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/CommandTagTest.java
___________________________________________________________________
Added: 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/tags/DetailsTagTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/DetailsTagTest.java (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/DetailsTagTest.java 2012-03-19 15:28:47 UTC (rev 39615)
@@ -0,0 +1,47 @@
+/*******************************************************************************
+
+ * Copyright (c) 2007-2012 Exadel, Inc. and 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:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.ui.bot.test.editor.tags;
+
+/**
+ * Tests Details Tag behavior
+ * @author vlado pakan
+ *
+ */
+public class DetailsTagTest extends AbstractTagTest{
+ private static String DETAILS_TEXT = "!@#$ Details text $#@!";
+ @Override
+ protected void initTestPage() {
+ initTestPage(TestPageType.HTML,
+ "<!DOCTYPE html>\n" +
+ "<html>\n" +
+ " <head>\n" +
+ " <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" +
+ " <title>Insert title here</title>\n" +
+ " </head>\n" +
+ " <body>\n" +
+ " <details>" + DetailsTagTest.DETAILS_TEXT + "</details>\n" +
+ " </body>\n" +
+ "</html>\n");
+ }
+
+ @Override
+ protected void verifyTag() {
+ // check Problems View for Errors
+ assertProbelmsViewNoErrors(botExt);
+ // visual representation contains DETAILS tag
+ assertVisualEditorContains(getVisualEditor(), "DETAILS", null, null, getTestPageFileName());
+ // visual representation contains DETAILS_TEXT text
+ assertVisualEditorContainsNodeWithValue(getVisualEditor(),
+ DetailsTagTest.DETAILS_TEXT, getTestPageFileName());
+ }
+
+}
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/DetailsTagTest.java
___________________________________________________________________
Added: 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/tags/SummaryTagTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/SummaryTagTest.java (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/SummaryTagTest.java 2012-03-19 15:28:47 UTC (rev 39615)
@@ -0,0 +1,47 @@
+/*******************************************************************************
+
+ * Copyright (c) 2007-2012 Exadel, Inc. and 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:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.ui.bot.test.editor.tags;
+
+/**
+ * Tests Summary Tag behavior
+ * @author vlado pakan
+ *
+ */
+public class SummaryTagTest extends AbstractTagTest{
+ private static String SUMMARY_TEXT = "!@#$ Summary text $#@!";
+ @Override
+ protected void initTestPage() {
+ initTestPage(TestPageType.HTML,
+ "<!DOCTYPE html>\n" +
+ "<html>\n" +
+ " <head>\n" +
+ " <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" +
+ " <title>Insert title here</title>\n" +
+ " </head>\n" +
+ " <body>\n" +
+ " <summary>" + SummaryTagTest.SUMMARY_TEXT + "</summary>\n" +
+ " </body>\n" +
+ "</html>\n");
+ }
+
+ @Override
+ protected void verifyTag() {
+ // check Problems View for Errors
+ assertProbelmsViewNoErrors(botExt);
+ // visual representation contains SUMMARY tag
+ assertVisualEditorContains(getVisualEditor(), "SUMMARY", null, null, getTestPageFileName());
+ // visual representation contains SUMMARY_TEXT text
+ assertVisualEditorContainsNodeWithValue(getVisualEditor(),
+ SummaryTagTest.SUMMARY_TEXT, getTestPageFileName());
+ }
+
+}
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/tags/SummaryTagTest.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
More information about the jbosstools-commits
mailing list