From 7e0fd77b13d8e4d8a169adf3733ef70d47933eea Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sun, 13 May 2007 20:32:28 +0200 Subject: [PATCH] Some fixes --- browser/components/browserhelper/nsBrowserHelper.js | 3 ++- tests/test-browser.py | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/browser/components/browserhelper/nsBrowserHelper.js b/browser/components/browserhelper/nsBrowserHelper.js index c57e993f..ef359be6 100644 --- a/browser/components/browserhelper/nsBrowserHelper.js +++ b/browser/components/browserhelper/nsBrowserHelper.js @@ -35,7 +35,7 @@ BrowserHelperService.prototype = { return this; } -; +} /* :::::::: Service Registration & Initialization ::::::::::::::: */ @@ -94,5 +94,6 @@ const BrowserHelperFactory = { }; function NSGetModule(aComMgr, aFileSpec) { + dump("nsBrowserHelper: NSGetModule\n") return BrowserHelperModule; } diff --git a/tests/test-browser.py b/tests/test-browser.py index 12394a68..681aefab 100755 --- a/tests/test-browser.py +++ b/tests/test-browser.py @@ -24,9 +24,13 @@ import gtk import sugar.browser +def _quit(window): + sugar.browser.shutdown() + gtk.main_quit() + # Main window window = gtk.Window() -window.connect("destroy", lambda w: gtk.main_quit()) +window.connect("destroy", _quit) sugar.browser.startup(os.path.expanduser('~/.sugar-browser-test'), 'test')