diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-08-27 18:23:35 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-08-27 18:23:35 -0700 |
commit | 1b134c883a0708f25a90a31903be3a2006a27ed4 (patch) | |
tree | cae6030cf76c1d01e6fe6f162d1b4ecc3cc66def /tests/test_browser.py | |
parent | 3b2b7341aad1fb098b4a90a88ee8ee271b61e39a (diff) |
FS.loadFilesFromDB|saveFilesToDB
Diffstat (limited to 'tests/test_browser.py')
-rw-r--r-- | tests/test_browser.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_browser.py b/tests/test_browser.py index 1c9cbfad..32b29966 100644 --- a/tests/test_browser.py +++ b/tests/test_browser.py @@ -794,6 +794,17 @@ If manually bisecting: def test_glut_touchevents(self): self.btest('glut_touchevents.c', '1') + def test_file_db(self): + secret = str(time.time()) + open('moar.txt', 'w').write(secret) + self.btest('file_db.cpp', '1', args=['--preload-file', 'moar.txt', '-DFIRST']) + shutil.copyfile('test.html', 'first.html') + self.btest('file_db.cpp', secret) + shutil.copyfile('test.html', 'second.html') + open('moar.txt', 'w').write('aliantha') + self.btest('file_db.cpp', secret, args=['--preload-file', 'moar.txt']) # even with a file there, we load over it + shutil.move('test.html', 'third.html') + def test_sdl_pumpevents(self): # key events should be detected using SDL_PumpEvents open(os.path.join(self.get_dir(), 'pre.js'), 'w').write(''' |