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

Side by Side Diff: chrome/test/functional/tracing/tracer.js

Issue 222873002: Remove pyauto tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 window.pyautoRecordTrace = function(systemTracing) {
6 'use strict';
7 if( window.timelineModelShimId == undefined )
8 window.timelineModelShimId = 0;
9 if( window.timelineModelShims == undefined )
10 window.timelineModelShims = {};
11 var handler = function() {
12 tracingController.removeEventListener('traceEnded', handler);
13 var model = new TimelineModelShim(
14 Array.prototype.slice.call(arguments, 1)
15 );
16 var events = [tracingController.traceEvents_];
17 if (tracingController.supportsSystemTracing)
18 events.push(tracingController.systemTraceEvents_);
19 model.importTraces(events);
20 var shimId = window.timelineModelShimId;
21 window.timelineModelShims[shimId] = model;
22 window.domAutomationController.send(shimId);
23 window.timelineModelShimId++;
24 };
25 tracingController.addEventListener('traceEnded', handler);
26 var willSystemTrace =
27 tracingController.supportsSystemTracing ? systemTracing : false;
28 tracingController.beginTracing(willSystemTrace);
29 return willSystemTrace;
30 };
31
32 // This causes the PyAuto ExecuteJavascript call which executed this file to
33 // return.
34 window.domAutomationController.send('');
OLDNEW
« no previous file with comments | « chrome/test/functional/tracing/timeline_model_shim.js ('k') | chrome/test/functional/tracing/tracer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698