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

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

Issue 2364243002: Serialize Histograms more efficiently. (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/base/statistics.html ('k') | tracing/tracing/value/histogram.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/statistics_test.html
diff --git a/tracing/tracing/base/statistics_test.html b/tracing/tracing/base/statistics_test.html
index 5e039fd80c1dcb46a7f48d9cf7481860697cad44..2b243c93dc8b8b67edd21fbd0b2d042d80e0bd7b 100644
--- a/tracing/tracing/base/statistics_test.html
+++ b/tracing/tracing/base/statistics_test.html
@@ -469,6 +469,14 @@ tr.b.unittest.testSuite(function() {
assert.isBelow(dB, dC);
});
+ test('uniformlySampleArray', function() {
+ var samples = ['A', 'B', 'C', 'D', 'E'];
+ for (var i = samples.length; i >= 0; --i) {
+ Statistics.uniformlySampleArray(samples, i);
+ assert.lengthOf(samples, i);
+ }
+ });
+
test('uniformlySampleStream', function() {
var samples = [];
Statistics.uniformlySampleStream(samples, 1, 'A', 5);
@@ -565,6 +573,5 @@ tr.b.unittest.testSuite(function() {
results = Statistics.mwu(normallyDistributedSample, emptySample);
assert(!results.p);
});
-
});
</script>
« no previous file with comments | « tracing/tracing/base/statistics.html ('k') | tracing/tracing/value/histogram.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698