Skip to content

Commit 5372e7f

Browse files
authored
Merge pull request #122 from gzm0/re-enable-large-message-test
Fix #105: Re-enable largeMessageTest
2 parents 4ba7c49 + 47ac5f0 commit 5372e7f

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

seleniumJSEnv/src/test/scala/org/scalajs/jsenv/selenium/SeleniumJSEnvSuite.scala

+1-22
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,7 @@ import org.junit.runners.Suite
1010
import org.junit.runner.manipulation.Filter
1111
import org.junit.runner.Description
1212

13-
@RunWith(classOf[SeleniumJSSuiteRunner])
13+
@RunWith(classOf[JSEnvSuiteRunner])
1414
class SeleniumJSSuite extends JSEnvSuite(
1515
JSEnvSuiteConfig(new SeleniumJSEnv(TestCapabilities.fromEnv))
1616
)
17-
18-
class SeleniumJSSuiteRunner private (
19-
root: Class[_], base: JSEnvSuiteRunner)
20-
extends Suite(root, Arrays.asList[Runner](base)) {
21-
22-
/** Constructor for reflective instantiation via `@RunWith`. */
23-
def this(suite: Class[_ <: SeleniumJSSuite]) =
24-
this(suite, new JSEnvSuiteRunner(suite))
25-
26-
// Ignore `largeMessageTest` for chrome.
27-
if (TestCapabilities.nameFromEnv == "chrome") {
28-
base.filter(new Filter {
29-
def describe(): String = "Ignore largeMessageTest"
30-
31-
def shouldRun(description: Description): Boolean = {
32-
description.getMethodName == null ||
33-
!description.getMethodName.startsWith("largeMessageTest")
34-
}
35-
})
36-
}
37-
}

0 commit comments

Comments
 (0)