aboutsummaryrefslogtreecommitdiff
path: root/tools/reproduceriter.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-09-14 16:20:48 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-09-14 16:20:48 -0700
commit089cdbee641110ddc78c0ab58fefa0818180d286 (patch)
tree65fe26eb04cdb635ecef5e76a763c48eebeb44d0 /tools/reproduceriter.py
parentfcad40c708aa7035040c918d4f873cc594a3b4cf (diff)
refactor reproduceriter
Diffstat (limited to 'tools/reproduceriter.py')
-rwxr-xr-xtools/reproduceriter.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/reproduceriter.py b/tools/reproduceriter.py
index b7643e26..89fcc41c 100755
--- a/tools/reproduceriter.py
+++ b/tools/reproduceriter.py
@@ -138,11 +138,8 @@ open(os.path.join(out_dir, first_js), 'w').write(
window_location, window_location.split('?')[-1], on_idle or 'null', dirs_to_drop
) if shell else '') +
open(os.path.join(os.path.dirname(__file__), 'reproduceriter.js')).read() +
- open(os.path.join(in_dir, first_js)).read() + '''
-if (typeof nagivator == 'undefined') {
- window.runEventLoop();
-}
-''')
+ open(os.path.join(in_dir, first_js)).read() + ('\nwindow.runEventLoop();\n' if shell else '')
+)
print 'done!'