Revision: 6472
Author: [email protected]
Date: Mon Oct 26 16:46:02 2009
Log: Patch updates the collection of tests that are ignored on HtmlUnit, to  
reflect
HtmlUnit being updated from 2.5 to a 2.7-snapshot. The occurrence count for  
the
annotation is down from 95 to 64.

Patch by: flin
Review by: amitmanjhi


http://code.google.com/p/google-web-toolkit/source/detail?r=6472

Modified:
   
/trunk/user/test/com/google/gwt/dev/jjs/test/RunAsyncMetricsIntegrationTest.java
  /trunk/user/test/com/google/gwt/dom/client/ElementTest.java
  /trunk/user/test/com/google/gwt/dom/client/MapTests.java
  /trunk/user/test/com/google/gwt/dom/client/NodeTest.java
  /trunk/user/test/com/google/gwt/event/dom/client/DomEventTest.java
  /trunk/user/test/com/google/gwt/uibinder/sample/client/UiBinderTest.java
  /trunk/user/test/com/google/gwt/user/client/ui/AnchorTest.java
  /trunk/user/test/com/google/gwt/user/client/ui/ButtonTest.java
  /trunk/user/test/com/google/gwt/user/client/ui/CheckBoxTest.java
  /trunk/user/test/com/google/gwt/user/client/ui/CreateEventTest.java
  /trunk/user/test/com/google/gwt/user/client/ui/DOMTest.java
  /trunk/user/test/com/google/gwt/user/client/ui/HistoryTest.java
  /trunk/user/test/com/google/gwt/user/client/ui/ImageTest.java
  /trunk/user/test/com/google/gwt/user/client/ui/SimpleRadioButtonTest.java
  /trunk/user/test/com/google/gwt/user/client/ui/SuggestBoxTest.java
  /trunk/user/test/com/google/gwt/user/client/ui/TreeTest.java
  /trunk/user/test/com/google/gwt/xml/client/XMLTest.java

=======================================
---  
/trunk/user/test/com/google/gwt/dev/jjs/test/RunAsyncMetricsIntegrationTest.java
         
Fri Aug 28 14:37:20 2009
+++  
/trunk/user/test/com/google/gwt/dev/jjs/test/RunAsyncMetricsIntegrationTest.java
         
Mon Oct 26 16:46:02 2009
@@ -34,9 +34,7 @@
   * number of more detailed tests are in
   * {...@link com.google.gwt.core.client.impl.AsyncFragmentLoaderTest}.
   *
- * This test is flaky on HtmlUnit.
   */
-...@donotrunwith(Platform.Htmlunit)
  public class RunAsyncMetricsIntegrationTest extends GWTTestCase {
    private static final class LightweightMetricsEvent extends  
JavaScriptObject {
      protected LightweightMetricsEvent() {
@@ -123,6 +121,7 @@
      lwmObserver.uninstall();
    }

+  @DoNotRunWith(Platform.Htmlunit)
    public void testMetricsSignalled() {
      if (!GWT.isScript()) {
        // There are no runAsync lightweight metrics in hosted mode
=======================================
--- /trunk/user/test/com/google/gwt/dom/client/ElementTest.java Tue Oct 13  
16:57:19 2009
+++ /trunk/user/test/com/google/gwt/dom/client/ElementTest.java Mon Oct 26  
16:46:02 2009
@@ -556,7 +556,6 @@
    /**
     * style.
     */
-  @DoNotRunWith({Platform.Htmlunit})
    public void testStyle() {
      DivElement div = Document.get().createDivElement();

@@ -570,7 +569,6 @@
    /**
     * Test that styles only allow camelCase.
     */
-  @DoNotRunWith({Platform.Htmlunit})
    public void testStyleCamelCase() {
      DivElement div = Document.get().createDivElement();

=======================================
--- /trunk/user/test/com/google/gwt/dom/client/MapTests.java    Thu Jul 30  
13:47:31 2009
+++ /trunk/user/test/com/google/gwt/dom/client/MapTests.java    Mon Oct 26  
16:46:02 2009
@@ -15,8 +15,6 @@
   */
  package com.google.gwt.dom.client;

-import com.google.gwt.junit.DoNotRunWith;
-import com.google.gwt.junit.Platform;
  import com.google.gwt.junit.client.GWTTestCase;

  /**
@@ -32,7 +30,6 @@
    /**
     * getAreas.
     */
-  @DoNotRunWith({Platform.Htmlunit})
    public void testGetArea() {
      Document doc = Document.get();
      MapElement map = doc.createMapElement();
=======================================
--- /trunk/user/test/com/google/gwt/dom/client/NodeTest.java    Thu Jul 30  
13:47:31 2009
+++ /trunk/user/test/com/google/gwt/dom/client/NodeTest.java    Mon Oct 26  
16:46:02 2009
@@ -16,8 +16,6 @@
  package com.google.gwt.dom.client;

  import com.google.gwt.core.client.JavaScriptObject;
-import com.google.gwt.junit.DoNotRunWith;
-import com.google.gwt.junit.Platform;
  import com.google.gwt.junit.client.GWTTestCase;

  /**
@@ -155,7 +153,6 @@
    /**
     * isOrHasChild.
     */
-  @DoNotRunWith({Platform.Htmlunit})
    public void testIsOrHasChild() {
      Document doc = Document.get();
      DivElement div = doc.createDivElement();
=======================================
--- /trunk/user/test/com/google/gwt/event/dom/client/DomEventTest.java  Tue  
Oct 13 16:57:19 2009
+++ /trunk/user/test/com/google/gwt/event/dom/client/DomEventTest.java  Mon  
Oct 26 16:46:02 2009
@@ -20,8 +20,6 @@
  import com.google.gwt.event.shared.HandlerManager;
  import com.google.gwt.event.shared.HandlerRegistration;
  import com.google.gwt.event.shared.HandlerTestBase;
-import com.google.gwt.junit.DoNotRunWith;
-import com.google.gwt.junit.Platform;
  import com.google.gwt.user.client.ui.Button;
  import com.google.gwt.user.client.ui.RootPanel;

@@ -133,7 +131,6 @@
          "onDoubleClick");
    }

-  @DoNotRunWith({Platform.Htmlunit})
    public void testMouseEventCoordinates() {
      Button b = new Button();
      RootPanel.get().add(b);
=======================================
---  
/trunk/user/test/com/google/gwt/uibinder/sample/client/UiBinderTest.java        
 
Wed Oct 14 18:26:27 2009
+++  
/trunk/user/test/com/google/gwt/uibinder/sample/client/UiBinderTest.java        
 
Mon Oct 26 16:46:02 2009
@@ -278,7 +278,6 @@
          widgetUi.totallyPrivateStyleSpan.getClassName().length() > 0);
    }

-  @DoNotRunWith(Platform.Htmlunit)
    public void testRadioButton() {
      RadioButton able = widgetUi.myRadioAble;
      RadioButton baker = widgetUi.myRadioBaker;
=======================================
--- /trunk/user/test/com/google/gwt/user/client/ui/AnchorTest.java      Thu Oct 
  
8 14:22:37 2009
+++ /trunk/user/test/com/google/gwt/user/client/ui/AnchorTest.java      Mon Oct 
 
26 16:46:02 2009
@@ -19,8 +19,6 @@
  import com.google.gwt.event.dom.client.ClickEvent;
  import com.google.gwt.event.dom.client.ClickHandler;
  import com.google.gwt.i18n.client.HasDirection;
-import com.google.gwt.junit.DoNotRunWith;
-import com.google.gwt.junit.Platform;
  import com.google.gwt.junit.client.GWTTestCase;
  import com.google.gwt.user.client.DOM;

@@ -147,7 +145,6 @@
      }
    }

-  @DoNotRunWith({Platform.Htmlunit})
    public void testEvents() {
      Anchor anchor = new Anchor("Trigger obscure JavaScript things");

=======================================
--- /trunk/user/test/com/google/gwt/user/client/ui/ButtonTest.java      Wed Sep 
  
2 19:23:54 2009
+++ /trunk/user/test/com/google/gwt/user/client/ui/ButtonTest.java      Mon Oct 
 
26 16:46:02 2009
@@ -18,8 +18,6 @@
  import com.google.gwt.dom.client.EventTarget;
  import com.google.gwt.event.dom.client.ClickEvent;
  import com.google.gwt.event.dom.client.ClickHandler;
-import com.google.gwt.junit.DoNotRunWith;
-import com.google.gwt.junit.Platform;
  import com.google.gwt.junit.client.GWTTestCase;
  import com.google.gwt.user.client.Timer;
  import com.google.gwt.user.client.ui.FormPanel.SubmitEvent;
@@ -83,7 +81,6 @@
    /**
     * Tests issues 1585 and 3962: a button shouldn't submit a form.
     */
-  @DoNotRunWith(Platform.Htmlunit)
    public void testPushButton() {
      FormPanel f = new FormPanel();
      f.setAction("javascript:''");
=======================================
--- /trunk/user/test/com/google/gwt/user/client/ui/CheckBoxTest.java    Thu  
Jul 30 13:47:31 2009
+++ /trunk/user/test/com/google/gwt/user/client/ui/CheckBoxTest.java    Mon  
Oct 26 16:46:02 2009
@@ -23,8 +23,6 @@
  import com.google.gwt.event.logical.shared.ValueChangeEvent;
  import com.google.gwt.event.logical.shared.ValueChangeHandler;
  import com.google.gwt.event.shared.HandlerManager;
-import com.google.gwt.junit.DoNotRunWith;
-import com.google.gwt.junit.Platform;
  import com.google.gwt.junit.client.GWTTestCase;
  import com.google.gwt.user.client.DOM;
  import com.google.gwt.user.client.Element;
@@ -68,7 +66,6 @@
     * Test accessors.
     */
    @SuppressWarnings("deprecation")
-  @DoNotRunWith({Platform.Htmlunit})
    public void testAccessors() {
      cb.setHTML("test HTML");
      assertEquals(cb.getHTML(), "test HTML");
=======================================
--- /trunk/user/test/com/google/gwt/user/client/ui/CreateEventTest.java Thu  
Jul 30 13:47:31 2009
+++ /trunk/user/test/com/google/gwt/user/client/ui/CreateEventTest.java Mon  
Oct 26 16:46:02 2009
@@ -197,7 +197,6 @@
     * Tests that {...@link Event#getCurrentEvent()} returns the right value for
     * synthesized events.
     */
-  @DoNotRunWith({Platform.Htmlunit})
    public void testGetCurrentEvent() {
      CurrentEventListener listener = new CurrentEventListener();
      Event.setEventListener(child, listener);
@@ -217,7 +216,6 @@
    /**
     * Tests NativeEvent.stopPropagation().
     */
-  @DoNotRunWith({Platform.Htmlunit})
    public void testStopPropagation() {
      NonBubbleAssertingEventListener listener = new  
NonBubbleAssertingEventListener(
          "click") {
@@ -261,7 +259,6 @@
    /**
     * Tests createChangeEvent().
     */
-  @DoNotRunWith({Platform.Htmlunit})
    public void testTriggerChangeEvent() {
      BubbleAssertingEventListener listener = new  
BubbleAssertingEventListener(
          "change");
=======================================
--- /trunk/user/test/com/google/gwt/user/client/ui/DOMTest.java Tue Oct 13  
16:57:19 2009
+++ /trunk/user/test/com/google/gwt/user/client/ui/DOMTest.java Mon Oct 26  
16:46:02 2009
@@ -120,7 +120,6 @@
     * Tests {...@link DOM#getAbsoluteLeft(Element)} and
     * {...@link DOM#getAbsoluteTop(Element)}.
     */
-  @DoNotRunWith({Platform.Htmlunit})
    public void testGetAbsolutePosition() {
      final int border = 8;
      final int margin = 9;
@@ -157,7 +156,6 @@
     * contains children and has scrollbars. See issue #1093 for more  
details.
     *
     */
-  @DoNotRunWith({Platform.Htmlunit})
    public void testGetAbsolutePositionWhenScrolled() {
      final Element outer = DOM.createDiv();
      final Element inner = DOM.createDiv();
@@ -192,7 +190,6 @@
     * element has a border.
     *
     */
-  @DoNotRunWith({Platform.Htmlunit})
    public void testGetAbsolutePositionWithPixelBorders() {
      final Element outer = DOM.createDiv();
      final Element inner = DOM.createDiv();
@@ -223,7 +220,6 @@
     * Tests getAbsoluteLeft/Top() for the document.body element. This used  
to
     * cause exceptions to be thrown on Opera (see issue 1556).
     */
-  @DoNotRunWith({Platform.Htmlunit})
    public void testGetBodyAbsolutePosition() {
      try {
        // The body's absolute left/top depends upon the browser, but we just
@@ -271,7 +267,6 @@
     * Tests that {...@link DOM#isOrHasChild(Element, Element)} works  
consistently
     * across browsers.
     */
-  @DoNotRunWith({Platform.Htmlunit})
    public void testIsOrHasChild() {
      Element div = DOM.createDiv();
      Element childDiv = DOM.createDiv();
=======================================
--- /trunk/user/test/com/google/gwt/user/client/ui/HistoryTest.java     Wed Sep 
 
30 16:46:38 2009
+++ /trunk/user/test/com/google/gwt/user/client/ui/HistoryTest.java     Mon Oct 
 
26 16:46:02 2009
@@ -95,7 +95,6 @@
     * Tests against issue #879: Ensure that empty history tokens do not add
     * additional characters after the '#' symbol in the URL.
     */
-  @DoNotRunWith(Platform.Htmlunit)
    public void testEmptyHistoryTokens() {
      delayTestFinish(5000);

=======================================
--- /trunk/user/test/com/google/gwt/user/client/ui/ImageTest.java       Tue Oct 
 
13 16:57:19 2009
+++ /trunk/user/test/com/google/gwt/user/client/ui/ImageTest.java       Mon Oct 
 
26 16:46:02 2009
@@ -453,13 +453,7 @@
    /**
     * Tests that wrapping an existing DOM element works if you call
     * setUrlAndVisibleRect() on it.
-   *<p>
-   * Disabled it on HtmlUnit because of a HtmlUnit bug.
-   *
-   * @see <a
-   *       
href="https://sourceforge.net/tracker/?func=detail&aid=2861064&group_id=47038&atid=448266";>bug_report</a>
     */
-  @DoNotRunWith({Platform.Htmlunit})
    public void testWrapThenSetUrlAndVisibleRect() {
      String uid = Document.get().createUniqueId();
      DivElement div = Document.get().createDivElement();
=======================================
---  
/trunk/user/test/com/google/gwt/user/client/ui/SimpleRadioButtonTest.java       
 
Thu Jul 30 13:47:31 2009
+++  
/trunk/user/test/com/google/gwt/user/client/ui/SimpleRadioButtonTest.java       
 
Mon Oct 26 16:46:02 2009
@@ -15,8 +15,6 @@
   */
  package com.google.gwt.user.client.ui;

-import com.google.gwt.junit.DoNotRunWith;
-import com.google.gwt.junit.Platform;
  import com.google.gwt.junit.client.GWTTestCase;

  /**
@@ -29,7 +27,6 @@
      return "com.google.gwt.user.UserTest";
    }

-  @DoNotRunWith({Platform.Htmlunit})
    public void testProperties() {
      SimpleRadioButton radio = new SimpleRadioButton("myName");
      assertEquals("myName", radio.getName());
=======================================
--- /trunk/user/test/com/google/gwt/user/client/ui/SuggestBoxTest.java  Thu  
Jul 30 13:47:31 2009
+++ /trunk/user/test/com/google/gwt/user/client/ui/SuggestBoxTest.java  Mon  
Oct 26 16:46:02 2009
@@ -17,8 +17,6 @@

  import com.google.gwt.dom.client.Document;
  import com.google.gwt.dom.client.Element;
-import com.google.gwt.junit.DoNotRunWith;
-import com.google.gwt.junit.Platform;
  import com.google.gwt.junit.client.GWTTestCase;

  import java.util.Arrays;
@@ -36,7 +34,6 @@
    /**
     * Test the basic accessors.
     */
-  @DoNotRunWith({Platform.Htmlunit})
    public void testAccessors() {
      SuggestBox box = createSuggestBox();

@@ -56,7 +53,6 @@
      assertTrue(box.isSuggestionListShowing());
    }

-  @DoNotRunWith({Platform.Htmlunit})
    public void testShowAndHide() {
      SuggestBox box = createSuggestBox();
      assertFalse(box.isSuggestionListShowing());
@@ -85,7 +81,6 @@
      assertFalse(box.isSuggestionListShowing());
    }

-  @DoNotRunWith({Platform.Htmlunit})
    public void testDefaults() {
      MultiWordSuggestOracle oracle = new MultiWordSuggestOracle();
      oracle.setDefaultSuggestionsFromText(Arrays.asList("A", "B"));
=======================================
--- /trunk/user/test/com/google/gwt/user/client/ui/TreeTest.java        Wed Sep 
23  
10:15:52 2009
+++ /trunk/user/test/com/google/gwt/user/client/ui/TreeTest.java        Mon Oct 
26  
16:46:02 2009
@@ -15,8 +15,6 @@
   */
  package com.google.gwt.user.client.ui;

-import com.google.gwt.junit.DoNotRunWith;
-import com.google.gwt.junit.Platform;
  import com.google.gwt.junit.client.GWTTestCase;
  import com.google.gwt.user.client.DOM;
  import com.google.gwt.user.client.Element;
@@ -154,7 +152,6 @@
      b.setWidget(null);
    }

-  @DoNotRunWith({Platform.Htmlunit})
    public void testRemove() {
      Tree t = new Tree();
      TreeItem item = t.addItem("a");
=======================================
--- /trunk/user/test/com/google/gwt/xml/client/XMLTest.java     Tue Oct 13  
16:57:19 2009
+++ /trunk/user/test/com/google/gwt/xml/client/XMLTest.java     Mon Oct 26  
16:46:02 2009
@@ -206,7 +206,6 @@
      }
    }

-  @DoNotRunWith({Platform.Htmlunit})
    public void testDocument() {
      Document d = createTestDocument();
      NodeList e1Nodes = d.getElementsByTagName("e1");
@@ -225,7 +224,6 @@
      assertEquals(e1Node.toString(), alienNode11.toString());
    }

-  @DoNotRunWith({Platform.Htmlunit})
    public void testElement() {
      Document d = createTestDocument();
      Element top = d.getDocumentElement();
@@ -267,7 +265,6 @@
      }
    }

-  @DoNotRunWith({Platform.Htmlunit})
    public void testNamedNodeMap() {
      Document d = createTestDocument();
      NamedNodeMap m = d.getDocumentElement().getAttributes();
@@ -275,7 +272,6 @@
      assertEquals(m.getLength(), 2);
    }

-  @DoNotRunWith({Platform.Htmlunit})
    public void testNavigation() {
      Document d = createTestDocument();
      Element documentElement = d.getDocumentElement();
@@ -352,7 +348,6 @@
      }
    }

-  @DoNotRunWith({Platform.Htmlunit})
    public void testPrefix() {
      Document d = XMLParser.parse("<?xml version=\"1.0\"?>\r\n"
          + "<!-- both namespace prefixes are available throughout -->\r\n"
@@ -366,7 +361,6 @@
      assertEquals(d.getElementsByTagName("book").item(0),  
d.getDocumentElement());
    }

-  @DoNotRunWith({Platform.Htmlunit})
    public void testProcessingInstruction() {
      Document d = createTestDocument();
      ProcessingInstruction pi = (ProcessingInstruction)  
d.getChildNodes().item(0);
@@ -376,7 +370,6 @@
      assertEquals(pi.getData(), "other data");
    }

-  @DoNotRunWith({Platform.Htmlunit})
    public void testText() {
      Document d = createTestDocument();
      List<Node> textLikeNodes = Arrays.asList(new Node[] {

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to