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

Unified Diff: tracing/tracing/ui/extras/about_tracing/record_controller_test.html

Issue 1673893002: [trace-viewer] Removed monitoring mode (Closed) Base URL: https://chromium.googlesource.com/external/github.com/catapult-project/catapult.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « tracing/tracing/ui/extras/about_tracing/record_controller.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/extras/about_tracing/record_controller_test.html
diff --git a/tracing/tracing/ui/extras/about_tracing/record_and_capture_controller_test.html b/tracing/tracing/ui/extras/about_tracing/record_controller_test.html
similarity index 57%
rename from tracing/tracing/ui/extras/about_tracing/record_and_capture_controller_test.html
rename to tracing/tracing/ui/extras/about_tracing/record_controller_test.html
index 9a06e61d38073b258576f76b97abe227b21c71c5..69c9cc8173d511fb499441cfb2f2d8700f08dcaf 100644
--- a/tracing/tracing/ui/extras/about_tracing/record_and_capture_controller_test.html
+++ b/tracing/tracing/ui/extras/about_tracing/record_controller_test.html
@@ -8,7 +8,7 @@ found in the LICENSE file.
<link rel="import"
href="/tracing/ui/extras/about_tracing/mock_tracing_controller_client.html">
<link rel="import"
- href="/tracing/ui/extras/about_tracing/record_and_capture_controller.html">
+ href="/tracing/ui/extras/about_tracing/record_controller.html">
<script>
'use strict';
@@ -61,50 +61,5 @@ tr.b.unittest.testSuite(function() {
});
});
});
-
- test('monitoring', function() {
- return new Promise(function(resolve, reject) {
- var mock = new tr.ui.e.about_tracing.MockTracingControllerClient();
-
- mock.expectRequest('beginMonitoring', function(monitoringOptions) {
- assert.typeOf(monitoringOptions.categoryFilter, 'string');
- assert.typeOf(monitoringOptions.useSystemTracing, 'boolean');
- assert.typeOf(monitoringOptions.useSampling, 'boolean');
- assert.typeOf(monitoringOptions.tracingRecordMode, 'string');
- setTimeout(function() {
- var capturePromise = tr.ui.e.about_tracing.captureMonitoring(mock);
- capturePromise.then(
- function(data) {
- var testDataString = JSON.stringify(testData);
- assert.equal(data, testDataString);
- },
- function(error) {
- reject();
- });
- }, 10);
- return '';
- });
-
- mock.expectRequest('captureMonitoring', function(data) {
- setTimeout(function() {
- var endPromise = tr.ui.e.about_tracing.endMonitoring(mock);
- endPromise.then(
- function(data) {
- mock.assertAllRequestsHandled();
- resolve();
- },
- function(error) {
- reject();
- });
- }, 10);
- return JSON.stringify(testData);
- });
-
- mock.expectRequest('endMonitoring', function(data) {
- });
-
- tr.ui.e.about_tracing.beginMonitoring(mock);
- });
- });
});
</script>
« no previous file with comments | « tracing/tracing/ui/extras/about_tracing/record_controller.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698