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

Unified Diff: tracing/tracing/value/histogram_test.html

Issue 2341623002: Display Histograms in value-set-table-cells. (Closed)
Patch Set: . Created 4 years, 3 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/value/histogram.html ('k') | tracing/tracing/value/ui/diagnostic_map_table.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/value/histogram_test.html
diff --git a/tracing/tracing/value/histogram_test.html b/tracing/tracing/value/histogram_test.html
index 399cc8d0b0ef4bdb6fa65eaf176e073ccf472735..da801cfa4f037da74adbc8b9754e624a902f01e5 100644
--- a/tracing/tracing/value/histogram_test.html
+++ b/tracing/tracing/value/histogram_test.html
@@ -40,28 +40,29 @@ tr.b.unittest.testSuite(function() {
}
test('significance', function() {
- assert.strictEqual(
- new tr.v.Histogram('', unitlessNumber).getDifferenceSignificance(
- new tr.v.Histogram('', unitlessNumber)), tr.v.Significance.DONT_CARE);
-
var boundaries = tr.v.HistogramBinBoundaries.createLinear(0, 100, 10);
var numericA = new tr.v.Histogram(
'', unitlessNumber_smallerIsBetter, boundaries);
var numericB = new tr.v.Histogram(
'', unitlessNumber_smallerIsBetter, boundaries);
+
+ var dontCare = new tr.v.Histogram('', unitlessNumber, boundaries);
+ assert.strictEqual(dontCare.getDifferenceSignificance(dontCare),
+ tr.b.Statistics.Significance.DONT_CARE);
+
for (var i = 0; i < 100; ++i) {
numericA.addSample(i);
numericB.addSample(i * 0.85);
}
assert.strictEqual(numericA.getDifferenceSignificance(numericB),
- tr.v.Significance.INSIGNIFICANT);
+ tr.b.Statistics.Significance.INSIGNIFICANT);
assert.strictEqual(numericB.getDifferenceSignificance(numericA),
- tr.v.Significance.INSIGNIFICANT);
+ tr.b.Statistics.Significance.INSIGNIFICANT);
assert.strictEqual(numericA.getDifferenceSignificance(numericB, 0.1),
- tr.v.Significance.SIGNIFICANT);
+ tr.b.Statistics.Significance.SIGNIFICANT);
assert.strictEqual(numericB.getDifferenceSignificance(numericA, 0.1),
- tr.v.Significance.SIGNIFICANT);
+ tr.b.Statistics.Significance.SIGNIFICANT);
});
test('numericBasic', function() {
« no previous file with comments | « tracing/tracing/value/histogram.html ('k') | tracing/tracing/value/ui/diagnostic_map_table.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698