Author: [EMAIL PROTECTED]
Date: Thu Sep 25 14:39:27 2008
New Revision: 3682

Modified:
    trunk/user/test/com/google/gwt/user/client/WindowTest.java

Log:
Fixing build breakage (WindowTest.testLocation() implicitly depended upon  
the
current url not having a trailing # character).

Patch by: jgw
Review by: knorton (desk check)



Modified: trunk/user/test/com/google/gwt/user/client/WindowTest.java
==============================================================================
--- trunk/user/test/com/google/gwt/user/client/WindowTest.java  (original)
+++ trunk/user/test/com/google/gwt/user/client/WindowTest.java  Thu Sep 25  
14:39:27 2008
@@ -61,6 +61,11 @@
      // testing reload, replace, and assign seemed to hang our junit  
harness.
      // Therefore only testing subset of Location that is testable.

+    // Use History to get the #hash part of the url into a known state (if  
the
+    // url has somehow been set to http://host/#, location.hash returns the
+    // empty string, but location.href includes the trailing hash).
+    History.newItem("foo");
+
      // As we have no control over these values we cannot assert much about  
them.
      String hash = Window.Location.getHash();
      String host = Window.Location.getHost();
@@ -76,7 +81,7 @@
      assertEquals(host, hostName + ":" + port);
      assertEquals(href, protocol + "//" + host + path + query + hash);
    }
-
+
    public void testLocationParsing() {
      Map<String, List<String>> map;


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

Reply via email to