From 78ececeb3fb00fef2bd0833771c00ac512d1f286 Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Sat, 31 Jul 2010 07:14:28 +0000 Subject: added an archetype to create a gquery application from scratch --- .../com/google/gwt/query/client/DevTestRunner.java | 161 ++++++++++----------- .../java/com/google/gwt/query/public/test.html | 16 ++ 2 files changed, 93 insertions(+), 84 deletions(-) (limited to 'devtest') diff --git a/devtest/src/main/java/com/google/gwt/query/client/DevTestRunner.java b/devtest/src/main/java/com/google/gwt/query/client/DevTestRunner.java index bc64025c..c6e6d894 100644 --- a/devtest/src/main/java/com/google/gwt/query/client/DevTestRunner.java +++ b/devtest/src/main/java/com/google/gwt/query/client/DevTestRunner.java @@ -16,26 +16,26 @@ package com.google.gwt.query.client; import static com.google.gwt.query.client.GQuery.$; -import static com.google.gwt.query.client.GQuery.body; -import static com.google.gwt.query.client.plugins.Effects.Effects; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.dom.client.Document; import com.google.gwt.dom.client.Element; import com.google.gwt.dom.client.NodeList; +import com.google.gwt.event.dom.client.ClickEvent; +import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.event.dom.client.FocusHandler; import com.google.gwt.event.shared.GwtEvent; import com.google.gwt.event.shared.HandlerRegistration; -import com.google.gwt.query.client.impl.SelectorEngineCssToXPath; import com.google.gwt.query.client.impl.SelectorEngineImpl; -import com.google.gwt.query.client.impl.SelectorEngineJS; -import com.google.gwt.query.client.impl.SelectorEngineNative; -import com.google.gwt.query.client.impl.SelectorEngineSizzle; -import com.google.gwt.query.client.impl.SelectorEngineSizzleGwt; -import com.google.gwt.query.client.impl.SelectorEngineXPath; -import com.google.gwt.query.client.plugins.Effects; +import com.google.gwt.user.client.Event; import com.google.gwt.user.client.Timer; +import com.google.gwt.user.client.ui.Button; +import com.google.gwt.user.client.ui.Composite; +import com.google.gwt.user.client.ui.HTML; +import com.google.gwt.user.client.ui.RootPanel; +import com.google.gwt.user.client.ui.SimplePanel; +import com.google.gwt.user.client.ui.Widget; /** * This module is thought to emulate a test environment similar to @@ -49,95 +49,88 @@ import com.google.gwt.user.client.Timer; */ public class DevTestRunner extends MyTestCase implements EntryPoint { - public void test() { - Effects e = $().as(Effects).dequeue(); - } - static native String $j (String s) /*-{ return "" + eval(s); }-*/; - public void testSelectorsInIframe() { - $(e).html("