From: Manolo Carrasco Date: Fri, 2 Jan 2015 14:05:11 +0000 (+0100) Subject: Make TC windows happy X-Git-Tag: gwtquery-project-1.4.3~5^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d3e9bbafe0103a343d381942f056f587cb0c0cbf;p=gwtquery.git Make TC windows happy --- diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java index d7c97b2e..0f9faadf 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java @@ -130,12 +130,12 @@ public class GQuery implements Lazy { /** * A Browser object with a set of browser-specific flags. */ - public static final Browser browser = GWT.isClient() ? GWT. create(Browser.class) : null; + public static final Browser browser = GWT.isClient() ? GWT.create(Browser.class) : null; /** * An object with the same methods than window.console. */ - public static final Console console = GWT.isClient() ? GWT. create(Console.class) : null; + public static final Console console = GWT.isClient() ? GWT.create(Console.class) : null; /** * Object to store element data (public so as we can access to it from tests). diff --git a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryEffectsTestGwt.java b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryEffectsTestGwt.java index 287742fa..da19afb1 100644 --- a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryEffectsTestGwt.java +++ b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryEffectsTestGwt.java @@ -66,6 +66,8 @@ public class GQueryEffectsTestGwt extends GWTTestCase { } } + // Fails in TC windows, pass in Jenkins Linux + @DoNotRunWith(Platform.HtmlUnitLayout) public void testClipAnimation() { $(e).html("

Content 1

"); @@ -116,8 +118,9 @@ public class GQueryEffectsTestGwt extends GWTTestCase { assertEquals(1, back.size()); } - // FIXME: timer 3 fails in real browsers (chrome) - @DoNotRunWith(Platform.Prod) + // Fails in TC windows, pass in Jenkins Linux + // FIXME: Also timer 3 fails in real browsers (chrome). + @DoNotRunWith(Platform.HtmlUnitLayout) public void testEffectsShouldBeQueued() { $(e).html("

Content 1

"); @@ -164,6 +167,8 @@ public class GQueryEffectsTestGwt extends GWTTestCase { timer4.schedule(duration/2); } + // Fails in TC windows, pass in Jenkins Linux + @DoNotRunWith(Platform.HtmlUnitLayout) public void testFade() { $(e) .html( @@ -354,6 +359,8 @@ public class GQueryEffectsTestGwt extends GWTTestCase { assertTrue(msg, c); } + // Fails in TC windows, pass in Jenkins Linux + @DoNotRunWith(Platform.HtmlUnitLayout) public void testAttrEffect() { $(e).html("
AB
"); diff --git a/gwtquery-core/src/test/java/com/google/gwt/query/client/dbinding/DataBindingTestJre.java b/gwtquery-core/src/test/java/com/google/gwt/query/client/dbinding/DataBindingTestJre.java index 5ea76a18..50123b80 100644 --- a/gwtquery-core/src/test/java/com/google/gwt/query/client/dbinding/DataBindingTestJre.java +++ b/gwtquery-core/src/test/java/com/google/gwt/query/client/dbinding/DataBindingTestJre.java @@ -16,6 +16,8 @@ package com.google.gwt.query.client.dbinding; import com.google.gwt.core.shared.GWT; +import com.google.gwt.junit.DoNotRunWith; +import com.google.gwt.junit.Platform; import com.google.gwt.junit.client.GWTTestCase; import com.google.gwt.query.client.Function; import com.google.gwt.query.client.GQ; @@ -177,8 +179,7 @@ public class DataBindingTestJre extends GWTTestCase { + " }" + "}"; - public void - test_parse_json() { + public void test_parse_json() { GUser entity = GQ.create(GUser.class); entity.parse(JSON_USER_EXAMPLE, true); @@ -191,8 +192,9 @@ public class DataBindingTestJre extends GWTTestCase { assertNotNull(entity.address().get("phone")); } - public void - test_parse_strict_json() { + // Nested strict not implemented in JS + @DoNotRunWith(Platform.Prod) + public void test_parse_strict_json() { GUser entity = GQ.create(GUser.class); entity.parse(JSON_USER_EXAMPLE, true); entity.strip();