From cf4f6348162b6f4c7f7dfa79064bfa6d062b81f6 Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Tue, 19 Apr 2011 06:51:40 +0000 Subject: move jquery tests from samples to devtest --- .../gwtquery/samples/client/GwtQuerySampleModule.java | 17 ----------------- .../java/gwtquery/samples/public/GwtQuerySample.html | 1 - 2 files changed, 18 deletions(-) (limited to 'samples/src/main/java') diff --git a/samples/src/main/java/gwtquery/samples/client/GwtQuerySampleModule.java b/samples/src/main/java/gwtquery/samples/client/GwtQuerySampleModule.java index 298e420d..c72f7f50 100644 --- a/samples/src/main/java/gwtquery/samples/client/GwtQuerySampleModule.java +++ b/samples/src/main/java/gwtquery/samples/client/GwtQuerySampleModule.java @@ -50,22 +50,5 @@ public class GwtQuerySampleModule implements EntryPoint { // Cascade effects $("
Cascade Efects
").appendTo(document).hide().fadeIn(5000).fadeOut(3000); - - int gqw = $(".outer").width(); - String jqw = runJsCommand("$wnd.$('.outer').width()"); - - int gqh = $(".outer").height(); - String jqh = runJsCommand("$wnd.$('.outer').height()"); - - String msg = ".outer size: GQuery: " + gqw + "x" + gqh + " jQuery: " + jqw + "x" + jqh; - Window.alert(msg); } - - private native String runJsCommand(String js) /*-{ - try { - return "" + eval(js); - } catch (e) { - return "" + e; - } - }-*/; } diff --git a/samples/src/main/java/gwtquery/samples/public/GwtQuerySample.html b/samples/src/main/java/gwtquery/samples/public/GwtQuerySample.html index fe646a99..1477c1d1 100644 --- a/samples/src/main/java/gwtquery/samples/public/GwtQuerySample.html +++ b/samples/src/main/java/gwtquery/samples/public/GwtQuerySample.html @@ -1,7 +1,6 @@ GQuery Demo - -- cgit v1.2.3