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

Unified Diff: tools/deep_memory_profiler/visualizer/graph-view_unittest.js

Issue 23777005: Modified directory preparing for app engine for dmprof visualizer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove index.js Created 7 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: tools/deep_memory_profiler/visualizer/graph-view_unittest.js
diff --git a/tools/deep_memory_profiler/visualizer/graph-view_unittest.js b/tools/deep_memory_profiler/visualizer/graph-view_unittest.js
deleted file mode 100644
index e649555e6c2691ad982a221526b8ff6f9c52d494..0000000000000000000000000000000000000000
--- a/tools/deep_memory_profiler/visualizer/graph-view_unittest.js
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2013 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.
-
-/**
- * Test whether given line is valid.
- * @param {Object} line
- * @param {number} length Length of line data.
- * @return {boolean} Line is valid or not.
- */
-var lineIsValid = function(line, length) {
- if (!('id' in line))
- return false;
- if (!('label' in line))
- return false;
- if (!('data' in line) ||
- 'data' in line && line.data.length !== length)
- return false;
-
- return true;
-};
-
-// Test title format is file-name:function-name.
-test('graph-view:generateLines_', function() {
- stop();
- $.getJSON('data/sample.json', function(data) {
- start();
- var profiler = new Profiler(data);
- var models = profiler.parseTemplate_();
- var length = models.length;
- var lines = GraphView.prototype.generateLines_(models);
- lines.forEach(function(line) {
- ok(lineIsValid(line, length));
- });
- inspect(lines, 'lines generated by graph view:\n');
- });
-});
« no previous file with comments | « tools/deep_memory_profiler/visualizer/graph-view.js ('k') | tools/deep_memory_profiler/visualizer/index.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698