From: Manolo Carrasco Date: Sun, 6 Mar 2011 20:37:09 +0000 (+0000) Subject: Update tests to the last gquery api, fixes issue_70 X-Git-Tag: release-1.3.2~471 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0bdc3d31267ddf00d486a122d40e06b72a1ec4a7;p=gwtquery.git Update tests to the last gquery api, fixes issue_70 --- diff --git a/archetype/src/main/resources/archetype-resources/pom.xml b/archetype/src/main/resources/archetype-resources/pom.xml index 8a3c610f..96d01cfa 100644 --- a/archetype/src/main/resources/archetype-resources/pom.xml +++ b/archetype/src/main/resources/archetype-resources/pom.xml @@ -13,6 +13,7 @@ 1.5 1.0.0-SNAPSHOT 2.2.0 + 2.1.0-1 @@ -129,6 +130,23 @@ + + org.apache.maven.plugins + maven-eclipse-plugin + + true + false + + + com.google.gwt.eclipse.core.gwtProjectValidator + + + + com.google.gwt.eclipse.core.gwtNature + + + + ${project.build.directory}/${project.build.finalName}/WEB-INF/classes diff --git a/archetype/src/main/resources/archetype-resources/src/test/java/__artifactId__/client/__projectName__Test.java b/archetype/src/main/resources/archetype-resources/src/test/java/__artifactId__/client/__projectName__Test.java index ef0a7fef..cb4fc699 100644 --- a/archetype/src/main/resources/archetype-resources/src/test/java/__artifactId__/client/__projectName__Test.java +++ b/archetype/src/main/resources/archetype-resources/src/test/java/__artifactId__/client/__projectName__Test.java @@ -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() {