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

Unified Diff: tracing/tracing/base/piecewise_linear_function_test.html

Issue 2771723003: [tracing] Move math utilities from base into their own subdirectory (attempt 2) (Closed)
Patch Set: rebase Created 3 years, 9 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/base/piecewise_linear_function.html ('k') | tracing/tracing/base/quad.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/piecewise_linear_function_test.html
diff --git a/tracing/tracing/base/piecewise_linear_function_test.html b/tracing/tracing/base/piecewise_linear_function_test.html
deleted file mode 100644
index 7b36d7d256c9b6dc0a56a4f33717c0b2130ae599..0000000000000000000000000000000000000000
--- a/tracing/tracing/base/piecewise_linear_function_test.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright 2016 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.
--->
-
-<link rel="import" href="/tracing/base/piecewise_linear_function.html">
-
-<script>
-'use strict';
-
-tr.b.unittest.testSuite(function() {
- test('PiecewiseLinearFunctionEmpty', function() {
- var f = new tr.b.PiecewiseLinearFunction();
- assert.strictEqual(f.max, -Infinity);
- assert.strictEqual(f.min, Infinity);
- assert.strictEqual(f.average, 0);
- assert.strictEqual(f.percentile(0.5), 0);
- });
-
- test('PiecewiseLinearFunction', function() {
- var f = new tr.b.PiecewiseLinearFunction();
- f.push(0, 0.0, 10, 1.0);
- f.push(10, 1.0, 20, 0.0);
- f.push(20, 0.0, 30, 0.0);
- assert.strictEqual(f.max, 1.0);
- assert.strictEqual(f.min, 0.0);
- assert.closeTo(f.average, 20 * 1 / 2.0 / 30, 1e-6);
- assert.closeTo(f.percentile(1.0 / 3.0), 0.0, 1e-6);
- assert.closeTo(f.percentile(2.0 / 3.0), 0.5, 1e-6);
- });
-});
-</script>
« no previous file with comments | « tracing/tracing/base/piecewise_linear_function.html ('k') | tracing/tracing/base/quad.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698