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

Side by Side Diff: third_party/WebKit/Source/devtools/scripts/npm_test.js

Issue 2611843003: DevTools: fix --debug-devtools flag for npm test (Closed)
Patch Set: rebase Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/Source/devtools/readme.md ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/readme.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698