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

Unified Diff: chrome/test/functional/tracing/tracing_test.js

Issue 10736055: Smoke test for tracing infrastructure in PyAuto (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use argument slices rather than explicit argument lists where appropriate. Created 8 years, 5 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: 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('');

Powered by Google App Engine
This is Rietveld 408576698