aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-10-27 12:25:18 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-10-27 12:25:18 -0700
commit432c9e5d8cf543dc998026a4923a5a7e7cdc6af6 (patch)
treee71a7e1b5c7b7cdd3ee0e8aae396f84c35d9a658
parentcf1411ea51f30cf7f30d27f2eff61cd21b1fc386 (diff)
simplify webgl context attributes test harness code a little
-rw-r--r--tests/test_browser.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/test_browser.py b/tests/test_browser.py
index 0fb45124..2ff9106b 100644
--- a/tests/test_browser.py
+++ b/tests/test_browser.py
@@ -880,19 +880,13 @@ keydown(100);keyup(100); // trigger the end
context = canvas.getContext('experimental-webgl', {antialias: true});
attributes = context.getContextAttributes();
return attributes.antialias;
- }
- });
-
- mergeInto(LibraryManager.library, {
+ },
webglDepthSupported: function() {
canvas = document.createElement('canvas');
context = canvas.getContext('experimental-webgl', {depth: true});
attributes = context.getContextAttributes();
return attributes.depth;
- }
- });
-
- mergeInto(LibraryManager.library, {
+ },
webglStencilSupported: function() {
canvas = document.createElement('canvas');
context = canvas.getContext('experimental-webgl', {stencil: true});