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

Unified Diff: tracing/tracing/ui/tracks/cpu_usage_track_test.html

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 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: tracing/tracing/ui/tracks/cpu_usage_track_test.html
diff --git a/tracing/tracing/ui/tracks/cpu_usage_track_test.html b/tracing/tracing/ui/tracks/cpu_usage_track_test.html
index 519d37b9ca167526638aacc5d8a4a622f49b76f3..0ef7005dcaeac637074465599f73db4c79681ff9 100644
--- a/tracing/tracing/ui/tracks/cpu_usage_track_test.html
+++ b/tracing/tracing/ui/tracks/cpu_usage_track_test.html
@@ -120,6 +120,18 @@ tr.b.unittest.testSuite(function() {
assertArrayValuesCloseTo(actualValue, expectedValue);
});
+ test('computeCpuUsage_tooManyIntervals', function() {
+ var sliceA = new tr.model.ThreadSlice('', title, 0, 5, {}, 50);
+ sliceA.cpuDuration = 25;
+ var sliceB = new tr.model.ThreadSlice(
+ '', title, 0, 50000010, {}, 50000030);
+ sliceB.cpuDuration = 15;
+
+ var model = buildModel([[sliceA, sliceB]]);
+
+ assert.throws(() => createCpuUsageTrack.call(this, model, 5));
+ });
+
test('computeCpuUsage_floatAndComplexIntervals', function() {
// First thread.
// 0 5 10 15 20 25 30 35 40 45 50 55
« no previous file with comments | « tracing/tracing/ui/tracks/cpu_usage_track.html ('k') | tracing/tracing/ui/tracks/memory_dump_track_test_utils.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698