diff --git a/user/src/com/google/gwt/junit/JUnitShell.java b/user/src/com/google/gwt/junit/JUnitShell.java index 53f67a7cb2..842c1ad979 100644 --- a/user/src/com/google/gwt/junit/JUnitShell.java +++ b/user/src/com/google/gwt/junit/JUnitShell.java @@ -60,6 +60,7 @@ import com.google.gwt.dev.util.arg.ArgHandlerScriptStyle; import com.google.gwt.dev.util.arg.ArgHandlerSetProperties; import com.google.gwt.dev.util.arg.ArgHandlerSourceLevel; +import com.google.gwt.dev.util.arg.ArgHandlerStrict; import com.google.gwt.dev.util.arg.ArgHandlerWarDir; import com.google.gwt.dev.util.arg.ArgHandlerWorkDirOptional; import com.google.gwt.junit.JUnitMessageQueue.ClientStatus; @@ -299,6 +300,7 @@ public int handle(String[] args, int tagIndex) { registerHandler(new ArgHandlerFilterJsInteropExports(options)); registerHandler(new ArgHandlerSetProperties(options)); registerHandler(new ArgHandlerClosureFormattedOutput(options)); + registerHandler(new ArgHandlerStrict(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 e5b8534d6e..19695aaa89 100644 --- a/user/test/com/google/gwt/junit/JUnitShellTest.java +++ b/user/test/com/google/gwt/junit/JUnitShellTest.java @@ -45,7 +45,7 @@ public void testDefaultModuleUrl() throws Exception { public void testArgOptimize() throws Exception { parseGoodArgs("-optimize", "8", "-XdisableInlineLiteralParameters", "-XdisableRemoveDuplicateFunctions", "-XdisableClusterSimilarFunctions", - "-XdisableOrdinalizeEnums", "-XdisableOptimizeDataflow"); + "-XdisableOrdinalizeEnums", "-XdisableOptimizeDataflow", "-strict"); } private void parseGoodArgs(String... argsToUse) {