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

Side by Side Diff: chrome/test/data/third_party/spaceport/README.chromium

Issue 10154006: Add test data for spaceport benchmark. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 Name: HTML5 Game Benchmarks
2 URL: git://github.com/sibblingz/PerfMarks
3 URL: http://spaceport.io/community/perfmarks
4 Version: 0
5 Date: April 3, 2012
6 Revision: 933190655b4ba171dab1d642cd6968676dd8f00d
7 License: Various, see license file
8 License File: LICENSE
9
10 Additional files, not in the original suite:
11 README.chromium
12
13 Modifications to the test suite to enable running as a cross browser performance test.
14 js/index.js
15
16 How to update:
17
18 In js/index.js, change the 'step' attribute to add the required console.log
19 statements. Below is the patch.
20
21 diff --git a/js/index.js b/js/index.js
22 index 2c23d0d..059a57a 100644
23 --- a/js/index.js
24 +++ b/js/index.js
25 @@ -36,17 +36,25 @@ define([ 'tests/performance', 'testDom', 'testRunner', 'tabl es', 'util/report',
26 function runPerformanceTests(callback) {
27 callback = ensureCallback(callback);
28
29 testRunner.run('performance', performance, {
30 done: function (err, results) {
31 allTestsDone(err, results);
32 callback(err, results);
33 },
34 - step: testDone
35 + step: function (err, name, results) {
36 + shortName = name.replace('performance.sprites.image.', '');
37 + if (results) {
38 + console.log(shortName + ": " + results.objectCount);
39 + } else {
40 + console.log(shortName + ": 0");
41 + }
42 + return testDone(err, name, results);
43 + }
44 });
45 }
46
47 function runAndUploadPerformanceTests(callback) {
48 callback = ensureCallback(callback);
49
50 runPerformanceTests(function (err, results) {
51 if (err) return callback(err);
OLDNEW
« no previous file with comments | « chrome/test/data/third_party/spaceport/LICENSE ('k') | chrome/test/data/third_party/spaceport/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698