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

Unified Diff: chrome/test/data/third_party/spaceport/js/sprites/canvas.js

Issue 10134041: 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
Index: chrome/test/data/third_party/spaceport/js/sprites/canvas.js
diff --git a/chrome/test/data/third_party/spaceport/js/sprites/canvas.js b/chrome/test/data/third_party/spaceport/js/sprites/canvas.js
new file mode 100644
index 0000000000000000000000000000000000000000..7c873d564028f5f89fe1dc586ef1b4a795f6875c
--- /dev/null
+++ b/chrome/test/data/third_party/spaceport/js/sprites/canvas.js
@@ -0,0 +1,14 @@
+define([ ], function () {
+ function canvas() {
+ var canvas = document.createElement('canvas');
+ canvas.width = 512;
+ canvas.height = 512;
+ canvas.style.background = '#FFFFFF';
+ canvas.style.position = 'absolute';
+ canvas.style.left = '0';
+ canvas.style.top = '0';
+ return canvas;
+ }
+
+ return canvas;
+});

Powered by Google App Engine
This is Rietveld 408576698