Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/test-web-view.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-05-21 00:43:37 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-05-21 00:43:37 (GMT)
commitd8d3d5a63b7934f0740cdebb5f3b1d8fc99ed16b (patch)
treeb86deecdb2650a5fc77c454f12802332c3b59096 /tests/test-web-view.py
parente92cafce48d41dcf92ba07adeb179c529ea7fd26 (diff)
Split the tests
Diffstat (limited to 'tests/test-web-view.py')
-rw-r--r--tests/test-web-view.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/test-web-view.py b/tests/test-web-view.py
index 3ca693a..0542654 100644
--- a/tests/test-web-view.py
+++ b/tests/test-web-view.py
@@ -6,46 +6,14 @@ import hulahop
hulahop.startup(os.path.expanduser('~/.test-hulahop'))
from hulahop.webview import WebView
-from xpcom import components
-from xpcom.server.factory import Factory
-
-class AppLauncher:
- _com_interfaces_ = components.interfaces.nsIHelperAppLauncherDialog
-
- def promptForSaveToFile(self, launcher, windowContext,
- defaultFile, suggestedFileExtension):
- print 'promptForSaveToFile'
-
- def show(self, launcher, context, reason):
- print 'show'
-
-class EventListener:
- _com_interfaces_ = components.interfaces.nsIDOMEventListener
-
- def handleEvent(self, event):
- print 'Mouse down'
-
def _quit(window):
hulahop.shutdown()
gtk.main_quit()
-registrar = components.registrar
-registrar.registerFactory('{64355793-988d-40a5-ba8e-fcde78cac631}"',
- 'Test Application Launcher',
- '@mozilla.org/helperapplauncherdialog;1',
- Factory(AppLauncher))
-
-cls = components.classes["@mozilla.org/preferences-service;1"]
-prefService = cls.getService(components.interfaces.nsIPrefService)
-branch = prefService.getBranch('')
-branch.setBoolPref('security.warn_submit_insecure', False)
-branch.setBoolPref('security.warn_submit_insecure.show_once', False)
-
window = gtk.Window()
window.connect("destroy", _quit)
web_view = WebView()
-web_view.window_root.addEventListener('mousedown', EventListener(), False)
web_view.load_uri('http://www.google.com')
window.add(web_view)
web_view.show()