aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-03-23 12:02:59 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-03-23 12:02:59 -0700
commit6a3c3938cd802db8b034c27b743844735f1b6d28 (patch)
treecb5f38ab6e348984b042177d1a14a451075605b0 /tests/runner.py
parenta7573355dbfafe35ec7620c51dc0d7929b024fb7 (diff)
minimal support for SDL text rendering
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index c34334ea..66934895 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -6375,6 +6375,12 @@ f.close()
shutil.move(os.path.join(self.get_dir(), basename), basename + '.renamedsoitcannotbefound');
self.run_browser('page.html', '', '/report_result?' + str(width))
+ def test_sdl_font(self):
+ open(os.path.join(self.get_dir(), 'sdl_font.c'), 'w').write(self.with_report_result(open(path_from_root('tests', 'sdl_font.c')).read()))
+
+ Popen(['python', EMCC, os.path.join(self.get_dir(), 'sdl_font.c'), '-o', 'page.html']).communicate()
+ self.run_browser('page.html', '', '/report_result?80')
+
def test_worker(self):
# Test running in a web worker
output = Popen(['python', EMCC, path_from_root('tests', 'hello_world_worker.cpp'), '-o', 'worker.js'], stdout=PIPE, stderr=PIPE).communicate()