Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

Commit

Permalink
Allows tests to declare categories and flags.
Browse files Browse the repository at this point in the history
  • Loading branch information
paullewis committed Nov 4, 2015
1 parent 3dc1e38 commit 94a05ee
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test-runner/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ function start (opts) {
'disabled-by-default-devtools.timeline.frame'
];

if (typeof opts.test.categories !== 'undefined') {
opts.test.categories.forEach(function(category) {
traceCategories.push(category);
});
}

if (opts.android)
options = options.androidChrome();

Expand All @@ -45,6 +51,12 @@ function start (opts) {
// Run without a sandbox.
options.addArguments('no-sandbox');

if (typeof opts.test.flags !== 'undefined') {
opts.test.flags.forEach(function(flag) {
options.addArguments(flag);
});
}

// Set up that we want to get trace data.
options.setLoggingPrefs({ performance: 'ALL' });
options.setPerfLoggingPrefs({
Expand Down

0 comments on commit 94a05ee

Please sign in to comment.