fix(benchpress): support chrome 52

Without this fix, the `scriptTime` was always 0.
This commit is contained in:
Tobias Bosch 2016-08-30 09:54:17 -07:00
parent 6dceaf209d
commit 942104d9ac
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ export class ChromeDriverExtension extends WebDriverExtension {
};
return normalizeEvent(event, {'name': 'gc', 'args': normArgs});
} else if (
this._isEvent(categories, name, ['devtools.timeline', 'v8'], 'FunctionCall') &&
this._isEvent(categories, name, ['devtools.timeline'], 'FunctionCall') &&
(isBlank(args) || isBlank(args['data']) ||
(!StringWrapper.equals(args['data']['scriptName'], 'InjectedScript') &&
!StringWrapper.equals(args['data']['scriptName'], '')))) {