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

Unified Diff: samples/beachdemo/beachdemo.js

Issue 155191: Change our selenium tests to call ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 11 years, 5 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 | « no previous file | samples/o3djs/performance.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/beachdemo/beachdemo.js
===================================================================
--- samples/beachdemo/beachdemo.js (revision 20010)
+++ samples/beachdemo/beachdemo.js (working copy)
@@ -1834,9 +1834,21 @@
showHint();
+ window.o3d_prepForSelenium = prepForSelenium;
window.g_finished = true; // for selenium testing.
}
+// Put the demo in a consistent state.
+function prepForSelenium() {
+ // Turn off the perf monitor.
+ g_perfMon = null;
+
+ // Set the render targets to a fixed size.
+ g_renderTargetWidth = 256;
+ g_renderTargetHeight = 256;
+ setupRenderTargets();
+}
+
/**
* Creates the client area.
*/
« no previous file with comments | « no previous file | samples/o3djs/performance.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698