summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2010-09-23 08:17:00 -0500
committerJoel Martin <github@martintribe.org>2010-09-23 08:17:00 -0500
commit005d9ee999b19e6a079625aeb5efcf9f2636c2a7 (patch)
tree67d09ade23c6ade06f359ed6078ca6ef8bf6982f /tests
parent8787e49b92f00c27bbf872b29ea26aa03c145f3e (diff)
downloadwebsockify-005d9ee999b19e6a079625aeb5efcf9f2636c2a7.tar.gz
Misc cleanup: debug logging, record filename, etc.
- include/canvas.js: When 'debug' logging, show browser detection values. - test/canvas.html: Only restore the canvas to it's starting state if the logging level is not 'debug'. - wsproxy.py: Append the session number to the record filename so that multiple sessions don't stomp on each other.
Diffstat (limited to 'tests')
-rw-r--r--tests/canvas.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/canvas.html b/tests/canvas.html
index 87e7781..f271953 100644
--- a/tests/canvas.html
+++ b/tests/canvas.html
@@ -104,8 +104,10 @@
message("prefer Canvas ops: " + time2 + "ms total, " +
(time2 / iterations) + "ms per frame");
- canvas.resize(start_width, start_height, true);
- test_functions();
+ if (Util.get_logging() !== 'debug') {
+ canvas.resize(start_width, start_height, true);
+ test_functions();
+ }
$('startButton').disabled = false;
$('startButton').value = "Do Performance Test";
}