]> source.dussan.org Git - gwtquery.git/commitdiff
Fix tests
authorManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>
Fri, 22 Nov 2013 15:32:06 +0000 (16:32 +0100)
committerManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>
Fri, 22 Nov 2013 15:32:06 +0000 (16:32 +0100)
gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Transitions.java
gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryAjaxTestGwt.java

index dd23c3d1bae080cda4e8eeb8f9a86194030145e5..0de39ad33cebca44adb43302e779cc9cecb44f87 100644 (file)
@@ -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);
index 0c86c8fc2575da5ac6e6f346ec556bc576fac0cd..92765ce7561114884d677198139e0ec2110ad5b6 100644 (file)
@@ -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();