Adds JsInterop test suite. Change-Id: I4b2916ac23ca883efc9f677777ee78967fe2c439 Review-Link: https://gwt-review.googlesource.com/#/c/9132/
diff --git a/user/BUILD b/user/BUILD index 713adcc..9f68de5 100644 --- a/user/BUILD +++ b/user/BUILD
@@ -575,11 +575,17 @@ ["test/**/*Suite.java"], exclude = [ "test/**/*JreSuite.java", + "test/**/*JsInteropSuite.java", ], ), ) filegroup( + name = "jsinterop_suite_files", + srcs = glob(["test/**/*JsInteropSuite.java"]), +) + +filegroup( name = "nobrowser_suite_files", srcs = glob(["test/**/*JreSuite.java"]), ) @@ -592,6 +598,7 @@ "test/**/*CompilerSuite.java", "test/**/RunAsyncSuite.java", "test/**/*JreSuite.java", + "test/**/*JsInteropSuite.java", ], ), )
diff --git a/user/test/com/google/gwt/core/CoreJsInteropSuite.java b/user/test/com/google/gwt/core/CoreJsInteropSuite.java new file mode 100644 index 0000000..e478e91 --- /dev/null +++ b/user/test/com/google/gwt/core/CoreJsInteropSuite.java
@@ -0,0 +1,34 @@ +/* + * Copyright 2014 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.core; + +import com.google.gwt.core.client.interop.JsTypeTest; + +import junit.framework.Test; +import junit.framework.TestSuite; + +/** + * All core tests that require js interop. + */ +public class CoreJsInteropSuite { + public static Test suite() { + TestSuite suite = new TestSuite("All core js interop tests"); + + suite.addTestSuite(JsTypeTest.class); + + return suite; + } +}
diff --git a/user/test/com/google/gwt/core/client/interop/JsTypeTest.java b/user/test/com/google/gwt/core/client/interop/JsTypeTest.java index 996525c..66b624f 100644 --- a/user/test/com/google/gwt/core/client/interop/JsTypeTest.java +++ b/user/test/com/google/gwt/core/client/interop/JsTypeTest.java
@@ -16,8 +16,6 @@ package com.google.gwt.core.client.interop; import com.google.gwt.core.client.ScriptInjector; -import com.google.gwt.junit.DoNotRunWith; -import com.google.gwt.junit.Platform; import com.google.gwt.junit.client.GWTTestCase; import java.util.Iterator; @@ -25,7 +23,6 @@ /** * Tests JsType and JsExport. */ -@DoNotRunWith({Platform.Devel, Platform.HtmlUnitBug}) public class JsTypeTest extends GWTTestCase { @Override