Chromium Code Reviews| Index: chrome/test/functional/tracing/tracing_test.js |
| diff --git a/chrome/test/functional/tracing/tracing_test.js b/chrome/test/functional/tracing/tracing_test.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..655fd2de403867f80c042a05c43cd9f63ffe69b1 |
| --- /dev/null |
| +++ b/chrome/test/functional/tracing/tracing_test.js |
| @@ -0,0 +1,19 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +window.pyautoRecordTrace = function(systemTracing, uuid) { |
|
nduca
2012/07/20 07:13:13
systemTracing -> systemTracingEnabled, copy the st
|
| + 'use strict'; |
| + TimelineModelDecorator.recordTrace(function(model) { |
|
nduca
2012/07/20 07:13:13
I think this record stuff should be in this file,
|
| + if( window.timelineModelDecorators == undefined ) |
| + window.timelineModelDecorators = {}; |
| + window.timelineModelDecorators[uuid] = model; |
| + window.domAutomationController.send(uuid); |
| + }); |
| + var willSystemTrace = |
| + tracingController.supportsSystemTracing ? systemTracing : false; |
| + tracingController.beginTracing(willSystemTrace); |
| + return willSystemTrace; |
| +}; |
| + |
| +window.domAutomationController.send(''); |