Commit 618ccef9 authored by nduca@google.com's avatar nduca@google.com

Add tests.html based on MultiTestRunner that runs all about:tracing unittests....

Add tests.html based on MultiTestRunner that runs all about:tracing unittests. Long term, we need to switch to some official testing harness, but until that is feasible, this helps commits slipping in with failing tests.

Review URL: https://chromiumcodereview.appspot.com/10065009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132602 0039d316-1c4b-4281-b951-d872f2087c98
parent 1cc9b1da
......@@ -5,10 +5,8 @@ To work on this code:
python -m SimpleHTTPServer
In any browser, navigate to
http://localhost:8000/tracing/
http://localhost:8000/tracing/tests.html
We use Closure's unit test harness for testing. There isn't a master
test file, so just run all the .html files you find. :/
If you add a file, make sure to update ../tracing.js and verify all the tests,
since we don't have a sane module system.
If you add a file, make sure to update:
../tracing.js
And, of course, verify all the tests,
<!DOCTYPE html>
<html>
<!--
Copyright (c) 2012 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.
-->
<head>
<title>All Tracing Tests</title>
<script>
tests = [
"timeline_model_test.html",
"timeline_track_test.html",
"linux_perf_importer_test.html",
"trace_event_importer_test.html",
"profiling_view_test.html",
];
</script>
<script src="http://closure-library.googlecode.com/svn/trunk/closure/goog/base.js"></script>
<script>
goog.require('goog.testing.MultiTestRunner');
</script>
<link rel="stylesheet" href="http://closure-library.googlecode.com/svn/trunk/closure/goog/css/multitestrunner.css" type="text/css">
</head>
<body>
<div id="runner"></div>
<script>
var testRunner = new goog.testing.MultiTestRunner()
.setName(document.title)
.setBasePath('./')
.setStatsBucketSizes(5, 500)
.setHidePasses(true)
.addTests(tests);
testRunner.render(document.getElementById('runner'));
testRunner.start();
</script>
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment