aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-02-03 19:57:11 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-02-03 19:57:11 -0800
commit1cb7cf18b704920eeead32b3ea681780c3aad05e (patch)
tree26cc25eedf08c638d668bbda791d04a29db26ad1
parentfe0255186c55dbda4510e0714a891391fe20934b (diff)
stop gles test from rendering after a while, to not eat up CPU until it is manually stopped
-rw-r--r--tests/hello_world_gles_shell.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/hello_world_gles_shell.html b/tests/hello_world_gles_shell.html
index ad2c5a87..7f0b2013 100644
--- a/tests/hello_world_gles_shell.html
+++ b/tests/hello_world_gles_shell.html
@@ -39,6 +39,7 @@
var xhr = new XMLHttpRequest();
xhr.open('GET', 'http://localhost:8888/report_gl_result?' + result, true);
xhr.send();
+ setTimeout(function() { _glutDisplayFunc = function(){} }, 2000); // Stop rendering after a while
}
function doTest() {
var firstImage = Module.canvas.toDataURL();