aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>2013-11-22 16:32:06 +0100
committerManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>2013-11-22 16:32:06 +0100
commiteccb54f9bc23f6e4dd63e8a141987ea70dacaad4 (patch)
treeebc24ad67f7f647bccc49a33fd206fbee9d5d143
parentde46d0577920517ea8f3cb76bca585a62ff7d588 (diff)
downloadgwtquery-eccb54f9bc23f6e4dd63e8a141987ea70dacaad4.tar.gz
gwtquery-eccb54f9bc23f6e4dd63e8a141987ea70dacaad4.zip
Fix tests
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Transitions.java3
-rw-r--r--gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryAjaxTestGwt.java2
2 files changed, 4 insertions, 1 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Transitions.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Transitions.java
index dd23c3d1..0de39ad3 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Transitions.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Transitions.java
@@ -202,6 +202,9 @@ public class Transitions extends GQuery {
}
private static boolean supportsTransform3d() {
+ if (transform == null) {
+ return false;
+ }
String rotate = "rotateY(1deg)";
divStyle.setProperty(transform, rotate);
rotate = divStyle.getProperty(transform);
diff --git a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryAjaxTestGwt.java b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryAjaxTestGwt.java
index 0c86c8fc..92765ce7 100644
--- a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryAjaxTestGwt.java
+++ b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryAjaxTestGwt.java
@@ -312,7 +312,7 @@ public class GQueryAjaxTestGwt extends GWTTestCase {
public void testGetScript() {
delayTestFinish(5000);
String url = "http://code.jquery.com/jquery-2.0.3.min.js";
- Ajax.getScript(url)
+ Ajax.loadScript(url)
.done(new Function(){
public void f() {
finishTest();