forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUCK
86 lines (77 loc) · 1.51 KB
/
BUCK
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
zip_file(
name = 'selenium-core',
srcs = [
':core',
],
visibility = [
'//java/server/test/org/openqa/selenium:core-scripts',
],
)
folder(
name = 'core',
srcs = glob([
'*.css',
'*.html',
'*.png',
'icons/*.png',
'lib/**/*',
'scripts/*',
'xpath/*',
]) + [
':lib',
':scripts',
':TestRunner.hta',
':RemoteRunner.hta',
],
)
folder(
name = 'scripts',
srcs = [
':atoms.js',
],
)
export_file(
name = 'atoms.js',
src = '//javascript/selenium-atoms:selenium-atoms',
)
folder(
name = 'lib',
srcs = [
':sizzle.js',
],
)
export_file(
name = 'sizzle.js',
src = '//third_party/js/sizzle:sizzle',
)
export_file(
name = 'TestRunner.hta',
src = 'TestRunner.html',
)
export_file(
name = 'RemoteRunner.hta',
src = 'RemoteRunner.html',
)
browsers = {
'firefox': 'ff',
'chrome': 'chrome',
'ie': 'ie'}
for browser in browsers.keys():
java_test(
name = 'selenium-core-%s' % browser,
vm_args = [
'-Dselenium.browser=%s' % browsers[browser],
'-Djs.test.timeout=120',
'-Djs.test.dir=%s' % get_base_path(),
],
test_classes = [
'org.openqa.selenium.javascript.ClosureTestSuite',
],
deps = [
'//java/client/test/org/openqa/selenium/javascript:javascript',
'//java/client/src/org/openqa/selenium/chrome:chrome',
'//java/client/src/org/openqa/selenium/edge:edge',
'//java/client/src/org/openqa/selenium/ie:ie',
'//java/client/src/org/openqa/selenium/firefox:firefox',
],
)