diff options
author | Einar Egilsson | 2012-01-08 06:41:57 +0100 |
---|---|---|
committer | Einar Egilsson | 2012-01-08 06:41:57 +0100 |
commit | 5a68a9c070e45f4a8366f0baed90befe685f2824 (patch) | |
tree | 470fbb8ac4e54a3776bac0b4e6e15ded34691ae1 /chrome/unittest/run.html | |
parent | 53846831aecade74980349949f24d88f33a55c04 (diff) |
2.7.1
Diffstat (limited to 'chrome/unittest/run.html')
-rw-r--r-- | chrome/unittest/run.html | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/unittest/run.html b/chrome/unittest/run.html index cc178aa..1c056d5 100644 --- a/chrome/unittest/run.html +++ b/chrome/unittest/run.html @@ -15,8 +15,9 @@ <script type="text/javascript"> //Global variables - var subscriptLoader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"].getService(Components.interfaces.mozIJSSubScriptLoader); - var redirector = Components.classes["@einaregilsson.com/redirector;1"].getService(Components.interfaces.rdIRedirector); + Components.utils.import("chrome://redirector/content/js/redirect.js"); + Components.utils.import("chrome://redirector/content/js/redirector.js"); + var redirector = Redirector; function setupTest(name, testcase) { var table = document.createElement('table'); @@ -48,9 +49,6 @@ function setup() { //quick and dirty cleanup document.getElementById('tests').innerHTML = ''; - subscriptLoader.loadSubScript('chrome://redirector/content/code/redirect.js'); - subscriptLoader.loadSubScript('chrome://redirector/content/unittest/testcases.js'); - redirector.reload(); var sorted = []; for (var name in tests) { @@ -88,6 +86,7 @@ } </script> + <script type="text/javascript" src="testcases.js"></script> </head> <body onload="setup();"> <h1>Redirector Unit Tests</h1> |