OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 var childProcess = require("child_process"); | 5 var childProcess = require("child_process"); |
6 var fs = require("fs"); | 6 var fs = require("fs"); |
7 var path = require("path"); | 7 var path = require("path"); |
8 var shell = require("child_process").execSync; | 8 var shell = require("child_process").execSync; |
9 | 9 |
10 var utils = require("./utils"); | 10 var utils = require("./utils"); |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 | 226 |
227 function runTests(buildDirectoryPath, useDebugDevtools) | 227 function runTests(buildDirectoryPath, useDebugDevtools) |
228 { | 228 { |
229 var testArgs = getInspectorTests().concat([ | 229 var testArgs = getInspectorTests().concat([ |
230 "--no-pixel-tests", | 230 "--no-pixel-tests", |
231 "--build-directory", | 231 "--build-directory", |
232 buildDirectoryPath, | 232 buildDirectoryPath, |
233 ]); | 233 ]); |
234 if (useDebugDevtools) { | 234 if (useDebugDevtools) { |
235 testArgs.push("--additional-driver-flag=--debug-devtools"); | 235 testArgs.push("--additional-driver-flag=--debug-devtools"); |
| 236 } else { |
| 237 console.log("TIP: You can debug a test using: npm run debug-test inspect
or/test-name.html") |
236 } | 238 } |
237 if (IS_DEBUG_ENABLED) { | 239 if (IS_DEBUG_ENABLED) { |
238 testArgs.push("--additional-driver-flag=--remote-debugging-port=9222"); | 240 testArgs.push("--additional-driver-flag=--remote-debugging-port=9222"); |
239 testArgs.push("--time-out-ms=6000000"); | 241 testArgs.push("--time-out-ms=6000000"); |
240 console.log("\n============================================="); | 242 console.log("\n============================================="); |
241 console.log("Go to: http://localhost:9222/"); | 243 console.log("Go to: http://localhost:9222/"); |
242 console.log("Click on link and in console execute: test()"); | 244 console.log("Click on link and in console execute: test()"); |
243 console.log("=============================================\n"); | 245 console.log("=============================================\n"); |
244 } | 246 } |
245 var args = [BLINK_TEST_PATH].concat(testArgs).concat(getTestFlags()); | 247 var args = [BLINK_TEST_PATH].concat(testArgs).concat(getTestFlags()); |
(...skipping 12 matching lines...) Expand all Loading... |
258 function getInspectorTests() | 260 function getInspectorTests() |
259 { | 261 { |
260 var specificTests = process.argv.filter(arg => utils.includes(arg, "inspecto
r")); | 262 var specificTests = process.argv.filter(arg => utils.includes(arg, "inspecto
r")); |
261 if (specificTests.length) | 263 if (specificTests.length) |
262 return specificTests; | 264 return specificTests; |
263 return [ | 265 return [ |
264 "inspector*", | 266 "inspector*", |
265 "http/tests/inspector*", | 267 "http/tests/inspector*", |
266 ]; | 268 ]; |
267 } | 269 } |
OLD | NEW |