Roberto Lublinerman has uploaded a new change for review.

  https://gwt-review.googlesource.com/2611


Change subject: Added -optimize option to JUnitShell.
......................................................................

Added -optimize option to JUnitShell.

Added JUnitShellTest to JUnitSuite.

Change-Id: I5a4c3747bedaf5db84b0c7ffefdd83da64d060d7
---
M user/src/com/google/gwt/junit/JUnitShell.java
M user/test/com/google/gwt/junit/JUnitShellTest.java
M user/test/com/google/gwt/junit/JUnitSuite.java
3 files changed, 10 insertions(+), 0 deletions(-)



diff --git a/user/src/com/google/gwt/junit/JUnitShell.java b/user/src/com/google/gwt/junit/JUnitShell.java
index 2555991..8d1dd1d 100644
--- a/user/src/com/google/gwt/junit/JUnitShell.java
+++ b/user/src/com/google/gwt/junit/JUnitShell.java
@@ -48,6 +48,7 @@
 import com.google.gwt.dev.util.arg.ArgHandlerLocalWorkers;
 import com.google.gwt.dev.util.arg.ArgHandlerLogLevel;
 import com.google.gwt.dev.util.arg.ArgHandlerMaxPermsPerPrecompile;
+import com.google.gwt.dev.util.arg.ArgHandlerOptimize;
 import com.google.gwt.dev.util.arg.ArgHandlerScriptStyle;
 import com.google.gwt.dev.util.arg.ArgHandlerWarDir;
 import com.google.gwt.dev.util.arg.ArgHandlerWorkDirOptional;
@@ -190,6 +191,7 @@
       registerHandler(new ArgHandlerDraftCompile(options));
       registerHandler(new ArgHandlerMaxPermsPerPrecompile(options));
       registerHandler(new ArgHandlerLocalWorkers(options));
+      registerHandler(new ArgHandlerOptimize(options));

       /*
        * ----- Options specific to JUnitShell -----
diff --git a/user/test/com/google/gwt/junit/JUnitShellTest.java b/user/test/com/google/gwt/junit/JUnitShellTest.java
index 3b8dc48..9d89dca 100644
--- a/user/test/com/google/gwt/junit/JUnitShellTest.java
+++ b/user/test/com/google/gwt/junit/JUnitShellTest.java
@@ -47,6 +47,11 @@
         shell.getModuleUrl("localhost", 1234, "example", 456));
   }

+
+  public void testArgOptimize() throws Exception {
+    parseGoodArgs("-optimize","8");
+  }
+
   private void parseGoodArgs(String... argsToUse) {
     JUnitShell.ArgProcessor processor = new JUnitShell.ArgProcessor(shell);
assertTrue("didn't accept good args", processor.processArgs(argsToUse)); diff --git a/user/test/com/google/gwt/junit/JUnitSuite.java b/user/test/com/google/gwt/junit/JUnitSuite.java
index 9d2a7b4..cbadd31 100644
--- a/user/test/com/google/gwt/junit/JUnitSuite.java
+++ b/user/test/com/google/gwt/junit/JUnitSuite.java
@@ -60,6 +60,9 @@
     suite.addTestSuite(PropertyDefiningStrategyTest.class);
     suite.addTestSuite(PropertyDefiningGWTTest.class);

+
+    suite.addTestSuite(JUnitShellTest.class);
+
     return suite;
   }
 }

--
To view, visit https://gwt-review.googlesource.com/2611
To unsubscribe, visit https://gwt-review.googlesource.com/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5a4c3747bedaf5db84b0c7ffefdd83da64d060d7
Gerrit-PatchSet: 1
Gerrit-Project: gwt
Gerrit-Branch: master
Gerrit-Owner: Roberto Lublinerman <rlu...@google.com>

--
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- You received this message because you are subscribed to the Google Groups "Google Web Toolkit Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to