Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1185)

Side by Side Diff: tests/selenium/selenium.gyp

Issue 201046: This makes selenium in Firefox work on the Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/o3d/
Patch Set: Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/selenium/mac_chrome.sh ('k') | tests/selenium/unpack_firefox.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 'selenium_args': [ 8 'selenium_args': [
9 '--referencedir=<(screenshotsdir)', 9 '--referencedir=<(screenshotsdir)',
10 '--product_dir=<(PRODUCT_DIR)', 10 '--product_dir=<(PRODUCT_DIR)',
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 'HOME', 69 'HOME',
70 'DISPLAY', 70 'DISPLAY',
71 'XAUTHORITY', 71 'XAUTHORITY',
72 ], 72 ],
73 'run_as': { 73 'run_as': {
74 'working_directory': '<(DEPTH)', 74 'working_directory': '<(DEPTH)',
75 'action': [ 75 'action': [
76 'python<(EXECUTABLE_SUFFIX)', 76 'python<(EXECUTABLE_SUFFIX)',
77 'o3d/tests/selenium/main.py', 77 'o3d/tests/selenium/main.py',
78 '<@(selenium_args)', 78 '<@(selenium_args)',
79 '--browserpath=<(browser_path)',
79 '--browser=*firefox', 80 '--browser=*firefox',
80 '--screenshotsdir=<(PRODUCT_DIR)/tests/selenium/screenshots_firefox', 81 '--screenshotsdir=<(PRODUCT_DIR)/tests/selenium/screenshots_firefox',
81 ], 82 ],
82 }, 83 },
84 'conditions': [
85 ['OS=="win"',
86 {
87 'variables': {
88 'browser_path': '',
89 },
90 }
91 ],
92 ['OS=="linux"',
93 {
94 'variables': {
95 'browser_path': '',
96 },
97 },
98 ],
99 ['OS=="mac"',
100 {
101 'dependencies': [
102 'unpack_firefox',
103 ],
104 'variables': {
105 'browser_path': '<(PRODUCT_DIR)/selenium_firefox/Firefox.app/Conte nts/MacOS/firefox-bin',
106 },
107 },
108 ],
109 ],
83 }, 110 },
84 { 111 {
85 'target_name': 'selenium_chrome', 112 'target_name': 'selenium_chrome',
86 'type': 'none', 113 'type': 'none',
87 'dependencies': [ 114 'dependencies': [
88 'install_selenium_tests', 115 'install_selenium_tests',
89 '../tests.gyp:unit_tests', 116 '../tests.gyp:unit_tests',
90 '../../plugin/plugin.gyp:npo3dautoplugin', 117 '../../plugin/plugin.gyp:npo3dautoplugin',
91 ], 118 ],
92 'scons_propagate_variables': [ 119 'scons_propagate_variables': [
93 'HOME', 120 'HOME',
94 'DISPLAY', 121 'DISPLAY',
95 'XAUTHORITY', 122 'XAUTHORITY',
96 ], 123 ],
97 'run_as': { 124 'run_as': {
98 'action': [ 125 'action': [
99 'python<(EXECUTABLE_SUFFIX)', 126 'python<(EXECUTABLE_SUFFIX)',
100 'main.py', 127 'main.py',
101 '<@(selenium_args)', 128 '<@(selenium_args)',
129 '--browserpath=<(browser_path)',
102 '--browser=*googlechrome', 130 '--browser=*googlechrome',
103 '--screenshotsdir=<(PRODUCT_DIR)/tests/selenium/screenshots_chrome', 131 '--screenshotsdir=<(PRODUCT_DIR)/tests/selenium/screenshots_chrome',
104 ], 132 ],
105 }, 133 },
106 'conditions': [ 134 'conditions': [
135 ['OS=="win"',
136 {
137 'variables': {
138 'browser_path': '',
139 },
140 }
141 ],
107 ['OS=="linux"', 142 ['OS=="linux"',
108 { 143 {
109 'variables': { 144 'variables': {
110 'selenium_args': [ 145 'browser_path': '/usr/bin/google-chrome',
111 '--browserpath=/usr/bin/google-chrome',
112 ],
113 }, 146 },
114 }, 147 },
115 ], 148 ],
116 ['OS=="mac"', 149 ['OS=="mac"',
117 { 150 {
118 'variables': { 151 'variables': {
119 'selenium_args': [ 152 'browser_path': 'mac_chrome.sh',
120 '--browserpath="/Applications/Google Chrome.app/Contents/MacOS/G oogle Chrome"',
121 ],
122 }, 153 },
123 }, 154 },
124 ], 155 ],
125 ], 156 ],
126 }, 157 },
127 ], 158 ],
128 'conditions': [ 159 'conditions': [
129 ['<(selenium_screenshots) == 1', 160 ['<(selenium_screenshots) == 1',
130 { 161 {
131 'variables': { 162 'variables': {
132 'selenium_args': [ 163 'selenium_args': [
133 '--screenshots', 164 '--screenshots',
134 ], 165 ],
135 }, 166 },
136 }, 167 },
137 ], 168 ],
138 ['OS=="mac"', 169 ['OS=="mac"',
139 { 170 {
140 'targets': [ 171 'targets': [
141 { 172 {
173 'target_name': 'unpack_firefox',
174 'type': 'none',
175 'actions': [
176 {
177 'action_name': 'unpack_firefox',
178 'inputs': [
179 '<(PRODUCT_DIR)/O3D.plugin',
180 ],
181 'outputs': [
182 '<(PRODUCT_DIR)/selenium_firefox',
183 ],
184 'action': [
185 'python',
186 'unpack_firefox.py',
187 '--plugin_path=<(PRODUCT_DIR)/O3D.plugin',
188 '--product_path=<(PRODUCT_DIR)',
189 ],
190 },
191 ],
192 },
193 {
142 'target_name': 'selenium_safari', 194 'target_name': 'selenium_safari',
143 'type': 'none', 195 'type': 'none',
144 'dependencies': [ 196 'dependencies': [
145 'install_selenium_tests', 197 'install_selenium_tests',
146 '../tests.gyp:unit_tests', 198 '../tests.gyp:unit_tests',
147 '../../plugin/plugin.gyp:npo3dautoplugin', 199 '../../plugin/plugin.gyp:npo3dautoplugin',
148 ], 200 ],
149 'run_as': { 201 'run_as': {
150 'action': [ 202 'action': [
151 'python<(EXECUTABLE_SUFFIX)', 203 'python<(EXECUTABLE_SUFFIX)',
(...skipping 29 matching lines...) Expand all
181 '--browser=*iexplore', 233 '--browser=*iexplore',
182 '--screenshotsdir=<(PRODUCT_DIR)/tests/selenium/screenshots_ie', 234 '--screenshotsdir=<(PRODUCT_DIR)/tests/selenium/screenshots_ie',
183 ], 235 ],
184 }, 236 },
185 }, 237 },
186 ], 238 ],
187 }, 239 },
188 ], 240 ],
189 ], 241 ],
190 } 242 }
OLDNEW
« no previous file with comments | « tests/selenium/mac_chrome.sh ('k') | tests/selenium/unpack_firefox.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698