aboutsummaryrefslogtreecommitdiffstats
path: root/samples/src/main/java
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2011-04-19 06:51:40 +0000
committerManolo Carrasco <manolo@apache.org>2011-04-19 06:51:40 +0000
commitcf4f6348162b6f4c7f7dfa79064bfa6d062b81f6 (patch)
treebd01ff32bcab47ed933f885262720fb1c29ee179 /samples/src/main/java
parentd63dd9646786dd40997e885617013aefa09f43d0 (diff)
downloadgwtquery-cf4f6348162b6f4c7f7dfa79064bfa6d062b81f6.tar.gz
gwtquery-cf4f6348162b6f4c7f7dfa79064bfa6d062b81f6.zip
move jquery tests from samples to devtest
Diffstat (limited to 'samples/src/main/java')
-rw-r--r--samples/src/main/java/gwtquery/samples/client/GwtQuerySampleModule.java17
-rw-r--r--samples/src/main/java/gwtquery/samples/public/GwtQuerySample.html1
2 files changed, 0 insertions, 18 deletions
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
$("<div id='id' style='font-size: 150%;'>Cascade Efects</div>").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 @@
<html>
<head>
<title>GQuery Demo</title>
- <script src="js/jquery-1.4.4.js"></script>
<script language="javascript" src="gwtquery.samples.GwtQuerySample.nocache.js"></script>
</head>
<body>