]> source.dussan.org Git - gwtquery.git/commitdiff
Update tests to the last gquery api, fixes issue_70
authorManolo Carrasco <manolo@apache.org>
Sun, 6 Mar 2011 20:37:09 +0000 (20:37 +0000)
committerManolo Carrasco <manolo@apache.org>
Sun, 6 Mar 2011 20:37:09 +0000 (20:37 +0000)
archetype/src/main/resources/archetype-resources/pom.xml
archetype/src/main/resources/archetype-resources/src/test/java/__artifactId__/client/__projectName__Test.java

index 8a3c610ff8d3afcc160885536ebd580817cd94df..96d01cfa652bde65aa48991b44223df682f59bb0 100644 (file)
@@ -13,6 +13,7 @@
       <maven.compiler.target>1.5</maven.compiler.target>\r
       <gQueryVersion>1.0.0-SNAPSHOT</gQueryVersion>\r
       <gwtversion>2.2.0</gwtversion>\r
+      <!-- change by 2.1.0-1 for gwt-2.1.1 or 2.1.0 for gwt-2.1.0 -->\r
       <gwtmaven>2.1.0-1</gwtmaven>\r
     </properties>\r
 \r
                 </filesets>\r
               </configuration>\r
             </plugin>\r
+            <plugin>\r
+              <groupId>org.apache.maven.plugins</groupId>\r
+              <artifactId>maven-eclipse-plugin</artifactId>\r
+              <configuration>\r
+                 <downloadSources>true</downloadSources>\r
+                 <downloadJavadocs>false</downloadJavadocs>\r
+                 <additionalBuildcommands>\r
+                   <buildCommand>\r
+                     <name>com.google.gwt.eclipse.core.gwtProjectValidator</name>\r
+                   </buildCommand>\r
+                 </additionalBuildcommands>\r
+                 <additionalProjectnatures>\r
+                   <projectnature>com.google.gwt.eclipse.core.gwtNature</projectnature>\r
+                 </additionalProjectnatures>\r
+              </configuration>\r
+            </plugin>\r
         </plugins>\r
+        <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>\r
     </build>\r
 </project>\r
index ef0a7fefa4a6157146d581479f31d424b32cea73..cb4fc699e084155c44bbf97c9612be24c8b39839 100644 (file)
@@ -5,7 +5,6 @@ package ${package}.${artifactId}.client;
 
 import static com.google.gwt.query.client.GQuery.*;
 import com.google.gwt.junit.client.GWTTestCase;
-import com.google.gwt.query.client.GQUtils;
 import com.google.gwt.query.client.GQuery;
 import com.google.gwt.query.client.plugins.Effects.Speed;
 import com.google.gwt.user.client.Event;
@@ -20,7 +19,7 @@ public class ${projectName}Test extends GWTTestCase {
   }
 
   private double fontSize(GQuery g) {
-    return GQUtils.cur(g.get(0), "fontSize", true);
+    return $(g).cur("fontSize", true);
   }
 
   public void testOnModuleLoad() {