Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/test-pref-service.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-pref-service.py')
-rw-r--r--tests/test-pref-service.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/test-pref-service.py b/tests/test-pref-service.py
deleted file mode 100644
index c14cc15..0000000
--- a/tests/test-pref-service.py
+++ /dev/null
@@ -1,31 +0,0 @@
-import os
-
-import gtk
-
-import hulahop
-hulahop.startup(os.path.expanduser('~/.test-hulahop'))
-from hulahop.webview import WebView
-
-from xpcom import components
-
-def _quit(window):
- hulahop.shutdown()
- gtk.main_quit()
-
-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.load_uri('http://www.google.com')
-window.add(web_view)
-web_view.show()
-
-window.show()
-
-gtk.main()