Commits

Rune Halvorsen committed 6417e6a

Removed unused browser launching function, tweaked output and made tabs close themselves after runs.

Comments (0)

Files changed (1)

 
            QUnit.done = function(failures, total) {
                glueonSend("done", failures, total);
+               window.setTimeout(window.close, 1000);
            }
 
            glueonHijackOutput(); // should be optional
 def NoseLikeLogger(BaseLogger):
     pass
 
-def launch_browser(browser):
-    if os.path.isfile(browser): # looks like a file
-        pass
-    elif browser == "opera":
-        pass
-    elif browser == "firefox":
-        pass
-    elif browser == "chrome":
-        pass
-    elif browser == "safari":
-        pass
-    elif browser == "ie":
-        pass
-
 
 class SilentWSGIRequestHandler(WSGIRequestHandler):
     def log_message(self, format, *args):
         if options.launch:
             browser = webbrowser.get(options.browser)
             browser.open("http://localhost:%s" % options.port)
+        else:
+            print >> sys.stderr, "Listening on port", options.port
+
 
         starttime = time.time()
         while True:
     except KeyboardInterrupt:
         pass
 
-    print >> sys.stderr, "Finished"
-
 
 def build_parser():
     parser = OptionParser()