Sha256: de18b3c7b00359822b8255d27f82d35b4f3937ea73d720d7efb323cddbfc0abf
Contents?: true
Size: 1.87 KB
Versions: 2
Compression:
Stored size: 1.87 KB
Contents
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Unit Test Harness</title> <script type="text/javascript" src="resource://xpcomcore/loader.js"></script> <script type="text/javascript" src="resource://xultestrunner/vendor/prototype/prototype.js"></script> <script type="text/javascript" src="resource://xultestrunner/vendor/scriptaculous/unittest.js"></script> <link rel="stylesheet" href="resource://xultestrunner/vendor/scriptaculous/test.css" type="text/css" /> <script type="text/javascript"> $(document).observe('dom:loaded', function(){ // FIXME - Because we're in crazy HTML/resource URL land we need to grant ourselves some magical privileges // since I clearly don't "get" XULRunner security var privileges = 'UniversalXPConnect UniversalBrowserRead UniversalBrowserWrite ' + 'UniversalPreferencesRead UniversalPreferencesWrite CapabilityPreferencesAccess UniversalFileRead'; netscape.security.PrivilegeManager.enablePrivilege(privileges); // FIXME - add stuff to xpcomcore for doing this jacked up crap var ioService = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService); var resProt = ioService.getProtocolHandler("resource").QueryInterface(Ci.nsIResProtocolHandler); var libPath = ioService.newURI(resProt.resolveURI(ioService.newURI("resource://xultestrunner/lib", null, null)), null, null).QueryInterface(Components.interfaces.nsIURL).path; $LOAD_PATH.push(libPath); require("xultestcase"); var qp = window.location.search.toQueryParams(); var testCase = XULTestCase.loadFromFile(qp.testFile); testCase.go(); }); </script> </head> <body> <h1>Unit Test Harness</h1> <!-- Log output --> <div id="testlog"></div> </body> </html>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gabrielg-xultestrunner-0.2.2 | xulapp/chrome/content/vendor/scriptaculous/testharness.html |
gabrielg-xultestrunner-0.2.3 | xulapp/chrome/content/vendor/scriptaculous/testharness.html |