[devtools/qunit] prefix jquery_dir with 'file://'
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Fri, 18 Jun 2010 18:35:09 +0200
changeset 5795 7947b1af2e82
parent 5794 a6b81d106775
child 5797 7183f32fad13
[devtools/qunit] prefix jquery_dir with 'file://' (as this is used from within a web browser)
devtools/qunit.py
--- a/devtools/qunit.py	Fri Jun 18 18:16:36 2010 +0200
+++ b/devtools/qunit.py	Fri Jun 18 18:35:09 2010 +0200
@@ -132,7 +132,7 @@
 
 
         # generate html test file
-        jquery_dir = self.config.locate_resource('jquery.js')
+        jquery_dir = 'file://' + self.config.locate_resource('jquery.js')
         html_test_file = NamedTemporaryFile(suffix='.html')
         html_test_file.write(make_qunit_html(test_file, depends,
                              server_data=(self.test_host, self.test_port),