From jbosstools-commits at lists.jboss.org Fri May 29 07:51:16 2009 Content-Type: multipart/mixed; boundary="===============2789284512450151434==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r15594 - in trunk: jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/4337 and 3 other directories. Date: Fri, 29 May 2009 07:43:14 -0400 Message-ID: --===============2789284512450151434== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: mareshkau Date: 2009-05-29 07:43:14 -0400 (Fri, 29 May 2009) New Revision: 15594 Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebCo= ntent/pages/JBIDE/4337/ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebCo= ntent/pages/JBIDE/4337/jbide4337.xhtml trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebCo= ntent/pages/JBIDE/4337/main.css trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf= /vpe/jsf/test/jbide/JBIDE4337Test.java Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf= /vpe/jsf/test/JsfAllTests.java trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf= /vpe/jsf/test/jbide/JBIDE1479Test.java trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vpe= VisualDomBuilder.java Log: https://jira.jboss.org/jira/browse/JBIDE-4337 Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/W= ebContent/pages/JBIDE/4337/jbide4337.xhtml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebC= ontent/pages/JBIDE/4337/jbide4337.xhtml (rev 0) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebC= ontent/pages/JBIDE/4337/jbide4337.xhtml 2009-05-29 11:43:14 UTC (rev 15594) @@ -0,0 +1,276 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ComponentProblems
+ + + + + + +

+ Here you can see default client-side tool-tip +

+ + + This tool-tip content was pre-rendered to the page.
+ The look of this tool-tip is 100% defined by skin. +
+
+
+ +

+ This tool-tip will follow mouse. Also this tool-t= ip has a delay 0.5 sec, + so be patient! +

+ + + This tool-tip content also pre-rendered to the page.
+ However, the look of this tool-tip is customized
+ by styleClass attribute. +
+
+
+ + +

+ This tool-tip rendered on server in separate request= . +

+ + + Wait... + + This tool-tip cont= ent was rendered on server + + + + + + +
= +
+ + +

+ This tool-tip will be activated on mouse click. = It also has a bottom-left position. +

+ + + Wait... + + This tool-tip cont= ent was rendered on server
+ + + + +
+
+
+
+
+
+
    +
  • + There no problems +
  • +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + = + + + + = + + + + + + + + + + + + + + + + + + = + + + + = + + + + = + + + + = + + + + + + +
+
+ + + + + + + = + + + + + + + + = + + + + = + + + + + +
= +
= + + + + + + + + + + + + + + + + +
+
+
    +
  • + There no problems +
  • +
+
+ + + + + + + + + ... + + + + + + ... + + + + + + ... + + + + = + + + + +
    +
  • + There no problems +
  • +
+
+
+ + + PREVIUOS PAGE + + = +
+
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/W= ebContent/pages/JBIDE/4337/main.css =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebC= ontent/pages/JBIDE/4337/main.css (rev 0) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebC= ontent/pages/JBIDE/4337/main.css 2009-05-29 11:43:14 UTC (rev 15594) @@ -0,0 +1,40 @@ +.evenRow { + text-align: center; + background-color: green; + font-style: italic; + = +} + +.oddRow{ + text-align: right; + background-color: blue; + font-style: oblique; + = +} + +.btn { + text-align: center; + color: DodgerBlue; + font-size: x-large; + font-style: italic; + background-color: Turquoise; + border-style: ridge; + border-color: DarkViolet; + text-decoration: overline; + font-weight: bolder; + border-width: thick; +} + + +.btn { + = +} + +.vpe-text { + color:red; +} + +#editor { + background-color: red; + = +} \ No newline at end of file Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/to= ols/jsf/vpe/jsf/test/JsfAllTests.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/js= f/vpe/jsf/test/JsfAllTests.java 2009-05-29 10:33:22 UTC (rev 15593) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/js= f/vpe/jsf/test/JsfAllTests.java 2009-05-29 11:43:14 UTC (rev 15594) @@ -57,6 +57,7 @@ import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3734Test; import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3969Test; import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE4037Test; +import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE4337Test; import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE4373Test; import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE675Test; import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE788Test; @@ -142,6 +143,7 @@ suite.addTestSuite(JBIDE4373Test.class); suite.addTestSuite(JBIDE675Test.class); suite.addTestSuite(JBIDE3969Test.class); + suite.addTestSuite(JBIDE4337Test.class); = // $JUnit-END$ // added by Max Areshkau Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/to= ols/jsf/vpe/jsf/test/jbide/JBIDE1479Test.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/js= f/vpe/jsf/test/jbide/JBIDE1479Test.java 2009-05-29 10:33:22 UTC (rev 15593) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/js= f/vpe/jsf/test/jbide/JBIDE1479Test.java 2009-05-29 11:43:14 UTC (rev 15594) @@ -60,7 +60,8 @@ = Job job =3D new WorkspaceJob("Test JBIDE-1479"){ //$NON-NLS-1$ = - public IStatus runInWorkspace(IProgressMonitor monitor) { + @Override + public IStatus runInWorkspace(IProgressMonitor monitor) { try { new FormatProcessorXML().formatFile(file); }catch (Throwable exception){ Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools= /jsf/vpe/jsf/test/jbide/JBIDE4337Test.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/js= f/vpe/jsf/test/jbide/JBIDE4337Test.java (rev 0) +++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/js= f/vpe/jsf/test/jbide/JBIDE4337Test.java 2009-05-29 11:43:14 UTC (rev 15594) @@ -0,0 +1,47 @@ +/*************************************************************************= ****** + * Copyright (c) 2007-2009 Red Hat, Inc. + * Distributed under license by Red Hat, Inc. All rights reserved. + * This program is made available under the terms of the + * Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributor: + * Red Hat, Inc. - initial API and implementation + *************************************************************************= *****/ +package org.jboss.tools.jsf.vpe.jsf.test.jbide; + +import org.eclipse.swt.custom.StyledText; +import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests; +import org.jboss.tools.vpe.editor.VpeController; +import org.jboss.tools.vpe.ui.test.TestUtil; +import org.jboss.tools.vpe.ui.test.VpeTest; + +/** + * @author mareshkau + * + */ +public class JBIDE4337Test extends VpeTest { + + public JBIDE4337Test(String name) { + super(name); + } + + public void testJBIDE4337() throws Exception { + = + final String testFileName =3D "JBIDE/4337/jbide4337.xhtml";//$NON-NLS-1$ + setException(null); + + VpeController vpeController =3D openInVpe(JsfAllTests.IMPORT_PROJECT_NAM= E,testFileName); + long headChildCount =3D vpeController.getVisualBuilder().getHeadNode().g= etChildNodes().getLength(); + = + StyledText styledText =3D vpeController.getSourceEditor().getTextViewer(= ).getTextWidget(); + int offset =3D TestUtil.getLinePositionOffcet(vpeController.getSourceEdi= tor().getTextViewer(), 11, 23); + styledText.setCaretOffset(offset); + styledText.insert(" "); //$NON-NLS-1$ + TestUtil.delay(450); + TestUtil.waitForJobs(); + assertEquals("Number of child nodes should be equal before and after cha= nge",headChildCount, //$NON-NLS-1$ + vpeController.getVisualBuilder().getHeadNode().getChildNodes().getLeng= th()); + = + } +} Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/edi= tor/VpeVisualDomBuilder.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vp= eVisualDomBuilder.java 2009-05-29 10:33:22 UTC (rev 15593) +++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Vp= eVisualDomBuilder.java 2009-05-29 11:43:14 UTC (rev 15594) @@ -1039,9 +1039,11 @@ } else { // Max Areshkau Why we need update parent node when we update text // node? - // lookd like we haven't need do it. + // looks like we haven't need do it. if (sourceNode.getNodeType() =3D=3D Node.TEXT_NODE) { updateNode(sourceNode.getParentNode()); + }else if(HTML.TAG_LINK.equalsIgnoreCase(sourceNode.getNodeName())) { + addNode(sourceNode, null, getHeadNode()); } } } --===============2789284512450151434==--