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

Unified 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, 8 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 | « chrome/test/data/third_party/spaceport/LICENSE ('k') | chrome/test/data/third_party/spaceport/README.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/third_party/spaceport/README.chromium
diff --git a/chrome/test/data/third_party/spaceport/README.chromium b/chrome/test/data/third_party/spaceport/README.chromium
new file mode 100644
index 0000000000000000000000000000000000000000..7d6ef47797b1f9501c80b3632b701e070da486dc
--- /dev/null
+++ b/chrome/test/data/third_party/spaceport/README.chromium
@@ -0,0 +1,51 @@
+Name: HTML5 Game Benchmarks
+URL: git://github.com/sibblingz/PerfMarks
+URL: http://spaceport.io/community/perfmarks
+Version: 0
+Date: April 3, 2012
+Revision: 933190655b4ba171dab1d642cd6968676dd8f00d
+License: Various, see license file
+License File: LICENSE
+
+Additional files, not in the original suite:
+ README.chromium
+
+Modifications to the test suite to enable running as a cross browser performance test.
+ js/index.js
+
+How to update:
+
+In js/index.js, change the 'step' attribute to add the required console.log
+statements. Below is the patch.
+
+diff --git a/js/index.js b/js/index.js
+index 2c23d0d..059a57a 100644
+--- a/js/index.js
++++ b/js/index.js
+@@ -36,17 +36,25 @@ define([ 'tests/performance', 'testDom', 'testRunner', 'tables', 'util/report',
+ function runPerformanceTests(callback) {
+ callback = ensureCallback(callback);
+
+ testRunner.run('performance', performance, {
+ done: function (err, results) {
+ allTestsDone(err, results);
+ callback(err, results);
+ },
+- step: testDone
++ step: function (err, name, results) {
++ shortName = name.replace('performance.sprites.image.', '');
++ if (results) {
++ console.log(shortName + ": " + results.objectCount);
++ } else {
++ console.log(shortName + ": 0");
++ }
++ return testDone(err, name, results);
++ }
+ });
+ }
+
+ function runAndUploadPerformanceTests(callback) {
+ callback = ensureCallback(callback);
+
+ runPerformanceTests(function (err, results) {
+ if (err) return callback(err);
« 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