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

Unified Diff: third_party/WebKit/Source/devtools/scripts/npm_test.js

Issue 2448143004: DevTools: add custom-devtools-frontend flag for content shell layout tests (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/scripts/npm_test.js
diff --git a/third_party/WebKit/Source/devtools/scripts/npm_test.js b/third_party/WebKit/Source/devtools/scripts/npm_test.js
index dc14020ce579554163b4242a725751546e6e976d..d9d0d3d059b8f8398fe133206ddec4ea949b40a1 100644
--- a/third_party/WebKit/Source/devtools/scripts/npm_test.js
+++ b/third_party/WebKit/Source/devtools/scripts/npm_test.js
@@ -210,21 +210,16 @@ function buildAndTest(buildDirectoryPath)
function build(contentShellResourcesPath)
{
var devtoolsResourcesPath = path.resolve(contentShellResourcesPath, "inspector");
- var copiedFrontendPath = path.resolve(devtoolsResourcesPath, "front_end");
- var debugPath = path.resolve(devtoolsResourcesPath, "debug");
- utils.removeRecursive(copiedFrontendPath);
- utils.removeRecursive(debugPath);
- utils.copyRecursive(SOURCE_PATH, devtoolsResourcesPath);
- fs.renameSync(copiedFrontendPath, debugPath);
var inspectorBackendCommandsPath = path.resolve(devtoolsResourcesPath, "InspectorBackendCommands.js");
var supportedCSSPropertiesPath = path.resolve(devtoolsResourcesPath, "SupportedCSSProperties.js");
- utils.copy(inspectorBackendCommandsPath, debugPath);
- utils.copy(supportedCSSPropertiesPath, debugPath);
+ utils.copy(inspectorBackendCommandsPath, SOURCE_PATH);
+ utils.copy(supportedCSSPropertiesPath, SOURCE_PATH);
}
function runTests(buildDirectoryPath)
{
var testArgs = [
+ `--additional-drt-flag=--devtools-path=${SOURCE_PATH}`,
"--additional-drt-flag=--debug-devtools",
"--no-pixel-tests",
"--build-directory",

Powered by Google App Engine
This is Rietveld 408576698