Skip to content

Commit 1b8e7c0

Browse files
committed
Sorting more RC and WDBS tests around
1 parent dbb21c6 commit 1b8e7c0

21 files changed

+5179
-5231
lines changed

cpp/iedriver/Generated/atoms.h

+5,140-5,140
Large diffs are not rendered by default.

ignores.json

+1
Large diffs are not rendered by default.

java/client/test/org/openqa/selenium/v1/MockBrowserTest.java java/client/test/com/thoughtworks/selenium/MockBrowserTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717

1818

19-
package org.openqa.selenium.v1;
19+
package com.thoughtworks.selenium;
2020

2121
import static org.junit.Assert.assertEquals;
2222
import static org.junit.Assert.assertArrayEquals;

java/client/test/org/openqa/selenium/v1/remotecontrol/StabilityTest.java java/client/test/com/thoughtworks/selenium/StabilityTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717

1818

19-
package org.openqa.selenium.v1.remotecontrol;
19+
package com.thoughtworks.selenium;
2020

2121
import com.thoughtworks.selenium.DefaultSelenium;
2222

@@ -32,7 +32,7 @@
3232
public class StabilityTest {
3333

3434
@Test
35-
public void retrievelastRemoteControlLogsDoesNotTriggerOutOfMemoryErrors() {
35+
public void retrieveLastRemoteControlLogsDoesNotTriggerOutOfMemoryErrors() {
3636
final DefaultSelenium seleniumDriver;
3737

3838
seleniumDriver = new DefaultSelenium("localhost", 4444, "*chrome", "http://localhost:4444");

java/client/test/com/thoughtworks/selenium/WebDriverSeleniumTestSuite.java

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import org.junit.runner.RunWith;
2020
import org.junit.runners.Suite;
2121

22-
import com.thoughtworks.selenium.BaseSuite;
2322
import com.thoughtworks.selenium.corebased.SeleniumMouseTest;
2423
import com.thoughtworks.selenium.corebased.TestAddLocationStrategy;
2524
import com.thoughtworks.selenium.corebased.TestAddSelection;

java/client/test/com/thoughtworks/selenium/webdriven/BUCK

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
java_test(name = 'LargeTests',
22
srcs = [
3+
'LargeTests.java',
34
'ScriptMutatorTest.java',
5+
'WebDriverBackedSeleniumLargeTest.java',
46
],
57
deps = [
68
'//java/client/src/com/thoughtworks/selenium/webdriven:webdriven',
@@ -20,13 +22,10 @@ java_test(name = 'small-tests',
2022
':tests',
2123
'//third_party/java/junit:junit',
2224
],
23-
visibility = [
24-
'//java/client/test/org/openqa/selenium/v1:small-tests',
25-
],
2625
)
2726

2827
java_library(name = 'tests',
29-
srcs = glob(['*Test.java'], excludes = ['ScriptMutatorTest.java',]),
28+
srcs = glob(['*Test.java'], excludes = ['ScriptMutatorTest.java','WebDriverBackedSeleniumLargeTest.java']),
3029
deps = [
3130
'//java/client/src/com/thoughtworks/selenium/webdriven:emulation-api',
3231
'//java/client/src/com/thoughtworks/selenium/webdriven:webdriven',

java/client/test/com/thoughtworks/selenium/webdriven/CompoundMutatorTest.java

-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818

1919
import org.junit.Before;
2020
import org.junit.Test;
21-
import com.thoughtworks.selenium.webdriven.CompoundMutator;
22-
import com.thoughtworks.selenium.webdriven.ScriptMutator;
2321

2422
import static org.junit.Assert.assertTrue;
2523

java/client/test/org/openqa/selenium/v1/FastWebDriverBackedSeleniumTest.java java/client/test/com/thoughtworks/selenium/webdriven/FastWebDriverBackedSeleniumTest.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@
1515
limitations under the License.
1616
*/
1717

18-
package org.openqa.selenium.v1;
18+
package com.thoughtworks.selenium.webdriven;
1919

2020
import static org.mockito.Mockito.mock;
2121
import static org.mockito.Mockito.verify;
2222

23-
import com.thoughtworks.selenium.webdriven.WebDriverBackedSelenium;
24-
2523
import org.junit.Test;
2624
import org.openqa.selenium.JavascriptExecutor;
2725
import org.openqa.selenium.WebDriver;

java/client/test/org/openqa/selenium/v1/SmallTests.java java/client/test/com/thoughtworks/selenium/webdriven/LargeTests.java

+4-5
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,15 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.openqa.selenium.v1;
18+
package com.thoughtworks.selenium.webdriven;
1919

2020
import org.junit.runner.RunWith;
2121
import org.junit.runners.Suite;
2222

2323
@RunWith(Suite.class)
2424
@Suite.SuiteClasses({
25-
FastWebDriverBackedSeleniumTest.class,
26-
WebDriverCommandProcessorTest.class,
27-
com.thoughtworks.selenium.webdriven.SmallTests.class
25+
ScriptMutatorTest.class,
26+
WebDriverBackedSeleniumLargeTest.class
2827
})
29-
public class SmallTests {
28+
public class LargeTests {
3029
}

java/client/test/com/thoughtworks/selenium/webdriven/ScriptMutatorTest.java

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import static org.junit.Assert.assertEquals;
2121

2222
import com.thoughtworks.selenium.Selenium;
23-
import com.thoughtworks.selenium.webdriven.WebDriverBackedSelenium;
2423

2524
import org.junit.Test;
2625
import org.openqa.selenium.testing.JUnit4TestBase;

java/client/test/com/thoughtworks/selenium/webdriven/SmallTests.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@
2323
@RunWith(Suite.class)
2424
@Suite.SuiteClasses({
2525
CompoundMutatorTest.class,
26-
ScriptMutatorTest.class,
26+
FastWebDriverBackedSeleniumTest.class,
2727
TimerTest.class,
28-
VariableDeclarationTest.class
28+
VariableDeclarationTest.class,
29+
WebDriverCommandProcessorTest.class
2930
})
3031
public class SmallTests {
3132
}

java/client/test/com/thoughtworks/selenium/webdriven/TimerTest.java

-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222

2323
import org.junit.Test;
2424
import org.openqa.selenium.WebDriver;
25-
import com.thoughtworks.selenium.webdriven.SeleneseCommand;
26-
import com.thoughtworks.selenium.webdriven.Timer;
2725

2826
import static org.junit.Assert.fail;
2927

java/client/test/com/thoughtworks/selenium/webdriven/VariableDeclarationTest.java

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import org.junit.Before;
2020
import org.junit.Test;
21-
import com.thoughtworks.selenium.webdriven.VariableDeclaration;
2221

2322
import static org.junit.Assert.assertEquals;
2423

java/client/test/org/openqa/selenium/v1/WebDriverBackedSeleniumLargeTest.java java/client/test/com/thoughtworks/selenium/webdriven/WebDriverBackedSeleniumLargeTest.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@
1414
limitations under the License.
1515
*/
1616

17-
package org.openqa.selenium.v1;
17+
package com.thoughtworks.selenium.webdriven;
1818

1919
import static org.junit.Assert.assertEquals;
2020
import static org.junit.Assert.fail;
2121

2222
import com.thoughtworks.selenium.Selenium;
23-
import com.thoughtworks.selenium.webdriven.Wait;
24-
import com.thoughtworks.selenium.webdriven.WebDriverBackedSelenium;
2523

2624
import org.junit.Before;
2725
import org.junit.Test;

java/client/test/org/openqa/selenium/v1/WebDriverCommandProcessorTest.java java/client/test/com/thoughtworks/selenium/webdriven/WebDriverCommandProcessorTest.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@
1414
limitations under the License.
1515
*/
1616

17-
package org.openqa.selenium.v1;
17+
package com.thoughtworks.selenium.webdriven;
1818

1919
import org.junit.Test;
2020
import org.openqa.selenium.JavascriptExecutor;
2121
import org.openqa.selenium.StubDriver;
2222
import org.openqa.selenium.WebDriver;
23-
import com.thoughtworks.selenium.webdriven.WebDriverCommandProcessor;
2423

2524
import static org.junit.Assert.fail;
2625

java/client/test/com/thoughtworks/selenium/webdriven/build.desc

+20
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,33 @@
22
java_library(name = "small_tests",
33
srcs = [
44
"CompoundMutatorTest.java",
5+
"FastWebDriverBackedSeleniumTest.java",
56
"SmallTests.java",
67
"TimerTest.java",
78
"VariableDeclarationTest.java",
9+
"WebDriverCommandProcessorTest.java",
810
],
911
deps = [
1012
"//java/client/src/com/thoughtworks/selenium:api",
1113
"//java/client/src/org/openqa/selenium:webdriver-api",
1214
"//java/client/src/com/thoughtworks/selenium/webdriven:webdriven",
15+
"//java/client/test/org/openqa/selenium:base",
16+
"//third_party/java/junit",
17+
"//third_party/java/mockito",
18+
])
19+
20+
java_library(name = "test-webdriver",
21+
srcs = [
22+
"LargeTests.java",
23+
"ScriptMutatorTest.java",
24+
"WebDriverBackedSeleniumLargeTest.java",
25+
],
26+
deps = [
27+
"//java/client/src/com/thoughtworks/selenium/webdriven",
28+
"//java/client/src/org/openqa/selenium:webdriver-api",
29+
"//java/client/src/org/openqa/selenium/remote",
30+
"//java/client/src/org/openqa/selenium/support",
31+
"//java/client/test/org/openqa/selenium:base",
32+
"//java/client/test/org/openqa/selenium/testing:junit_4",
1333
"//third_party/java/junit",
1434
])

java/client/test/org/openqa/selenium/SmallTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@
6161
ZipTest.class,
6262

6363
org.openqa.selenium.support.SmallTests.class,
64-
org.openqa.selenium.v1.SmallTests.class
64+
com.thoughtworks.selenium.webdriven.SmallTests.class
6565
})
6666
public class SmallTests {}

java/client/test/org/openqa/selenium/build.desc

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ java_library(name = "tests",
7070
"//java/client/src/org/openqa/selenium/net",
7171
"//java/client/src/org/openqa/selenium/remote:common",
7272
"//java/client/src/org/openqa/selenium/support/ui:wait",
73+
"//java/client/test/com/thoughtworks/selenium/webdriven:small_tests",
7374
"//java/client/test/org/openqa/selenium/environment",
7475
"//java/client/test/org/openqa/selenium/testing:junit_4",
7576
"//java/client/test/org/openqa/selenium/testing:proxy",
7677
"//java/client/test/org/openqa/selenium/testing:util",
7778
"//java/client/test/org/openqa/selenium/testing/drivers:tests",
7879
"//java/client/test/org/openqa/selenium/support:tests",
79-
"//java/client/test/org/openqa/selenium/v1:small_tests",
8080
"//third_party/java/commons-io",
8181
"//third_party/java/junit",
8282
"//third_party/java/mockito",

java/client/test/org/openqa/selenium/v1/BUCK

-29
This file was deleted.

java/client/test/org/openqa/selenium/v1/SeleniumAppServer.java

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import org.openqa.selenium.environment.webserver.Jetty7AppServer;
2222
import org.openqa.selenium.testing.InProject;
2323
import org.seleniumhq.jetty7.servlet.ServletContextHandler;
24-
import org.seleniumhq.jetty7.webapp.WebAppContext;
2524

2625
public class SeleniumAppServer extends Jetty7AppServer {
2726

Original file line numberDiff line numberDiff line change
@@ -1,19 +1,4 @@
11

2-
java_library(name = "test-webdriver",
3-
srcs = [
4-
"internal/**/*.java",
5-
"support/*.java",
6-
],
7-
deps = [
8-
"//java/client/src/com/thoughtworks/selenium/webdriven",
9-
"//java/client/src/org/openqa/selenium:webdriver-api",
10-
"//java/client/src/org/openqa/selenium/remote",
11-
"//java/client/src/org/openqa/selenium/support",
12-
"//java/client/test/org/openqa/selenium:base",
13-
"//java/client/test/org/openqa/selenium/testing:junit_4",
14-
"//third_party/java/junit",
15-
])
16-
172
java_library(name = "environment",
183
srcs = [
194
"SeleniumTestEnvironment.java",
@@ -27,18 +12,3 @@ java_library(name = "environment",
2712
"//java/server/test/org/openqa/selenium:server-with-tests:uber",
2813
"//third_party/java/guava-libraries",
2914
])
30-
31-
java_test(name = "small_tests",
32-
srcs = [
33-
"SmallTests.java",
34-
"FastWebDriverBackedSeleniumTest.java",
35-
"WebDriverCommandProcessorTest.java",
36-
],
37-
deps = [
38-
"//java/client/src/org/openqa/selenium:base",
39-
"//java/client/test/org/openqa/selenium:base",
40-
"//java/client/test/org/openqa/selenium/testing:junit_4",
41-
"//java/client/test/org/openqa/selenium/v1/internal/seleniumemulation:small_tests",
42-
"//third_party/java/junit",
43-
"//third_party/java/mockito",
44-
])

0 commit comments

Comments
 (0)