From eccb54f9bc23f6e4dd63e8a141987ea70dacaad4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Manuel=20Carrasco=20Mo=C3=B1ino?= Date: Fri, 22 Nov 2013 16:32:06 +0100 Subject: [PATCH] Fix tests --- .../google/gwt/query/client/plugins/effects/Transitions.java | 3 +++ .../java/com/google/gwt/query/client/GQueryAjaxTestGwt.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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(); -- 2.39.5