Reviewers: rdayal,

Description:
Make CookieTest JDK7 compat by avoid execution order dependencies
between test methods.


Please review this at http://gwt-code-reviews.appspot.com/1728805/

Affected files:
  M user/test/com/google/gwt/user/client/CookieTest.java


Index: user/test/com/google/gwt/user/client/CookieTest.java
===================================================================
--- user/test/com/google/gwt/user/client/CookieTest.java        (revision 11005)
+++ user/test/com/google/gwt/user/client/CookieTest.java        (working copy)
@@ -31,6 +31,13 @@
     return "com.google.gwt.user.User";
   }

+  @Override
+  protected void gwtSetUp() throws Exception {
+ // Sets URI Encode to default so we don't depend on execution order of test functions
+    // between JDK versions.
+    Cookies.setUriEncode(true);
+  }
+
   public void test() {
     // Make the cookie expire in one minute, so that they don't hang around
     // past the end of this test.


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

Reply via email to