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

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

Issue 1336373002: Port rendering_stats' implementation to javascript (Closed) Base URL: https://github.com/catapult-project/catapult@master
Patch Set: Address Dan's reviews Created 5 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
Index: tracing/tracing/base/utils_test.html
diff --git a/tracing/tracing/base/utils_test.html b/tracing/tracing/base/utils_test.html
index a08ac33b24e944614b8909e937f6e388cc4fe8e9..28d7b8b6b4960a9ba9a78d40edacc315bbfed50a 100644
--- a/tracing/tracing/base/utils_test.html
+++ b/tracing/tracing/base/utils_test.html
@@ -26,5 +26,11 @@ tr.b.unittest.testSuite(function() {
assert.equal(ex.typeName, 'MyError');
});
+ test('testFlattenArray', function() {
+ var arr = [[1, 2, 100], [2, 3], [], [4, 5, 6]];
+ assert.deepEqual(tr.b.flattenArray(arr),
+ [1, 2, 100, 2, 3, 4, 5, 6]);
+ });
+
});
</script>

Powered by Google App Engine
This is Rietveld 408576698