aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/hello_world_gles.c12
-rw-r--r--tests/test_browser.py3
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/hello_world_gles.c b/tests/hello_world_gles.c
index 78595a49..f05cf052 100644
--- a/tests/hello_world_gles.c
+++ b/tests/hello_world_gles.c
@@ -547,6 +547,10 @@ gears_draw(void)
draw_gear(gear3, transform, -3.1, 4.2, -2 * angle - 25.0, blue);
glutSwapBuffers();
+
+#ifdef LONGTEST
+ glutPostRedisplay(); // check for issues with not throttling calls
+#endif
}
/**
@@ -621,6 +625,14 @@ gears_idle(void)
fps);
tRate0 = t;
frames = 0;
+#ifdef LONGTEST
+ static runs = 0;
+ runs++;
+ if (runs == 4) {
+ int result = fps;
+ REPORT_RESULT();
+ }
+#endif
}
}
diff --git a/tests/test_browser.py b/tests/test_browser.py
index f34a2d98..dfb1ef69 100644
--- a/tests/test_browser.py
+++ b/tests/test_browser.py
@@ -1386,6 +1386,9 @@ keydown(100);keyup(100); // trigger the end
args=['-DHAVE_BUILTIN_SINCOS'], outfile='something.html',
message='You should see animating gears.')
+ def test_glgears_long(self):
+ self.btest('hello_world_gles.c', expected=map(str, range(30, 1000)), args=['-DHAVE_BUILTIN_SINCOS', '-DLONGTEST'])
+
def test_glgears_animation(self):
es2_suffix = ['', '_full', '_full_944']
for full_es2 in [0, 1, 2]: