From: Manuel Carrasco MoƱino Date: Fri, 22 Nov 2013 15:32:06 +0000 (+0100) Subject: Fix tests X-Git-Tag: release-1.4.0~29^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=eccb54f9bc23f6e4dd63e8a141987ea70dacaad4;p=gwtquery.git Fix tests --- 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();