devtools/qunit.py
changeset 10583 97c88aa7c779
parent 10432 f5ec46a6867a
child 10608 7fc548d9dd8e
--- a/devtools/qunit.py	Mon Jul 20 13:55:54 2015 +0200
+++ b/devtools/qunit.py	Thu Jul 23 12:32:51 2015 +0200
@@ -122,25 +122,20 @@
 
     def test_javascripts(self):
         for args in self.all_js_tests:
+            self.assertIn(len(args), (1, 2))
             test_file = self.abspath(args[0])
             if len(args) > 1:
                 depends   = [self.abspath(dep) for dep in args[1]]
             else:
                 depends = ()
-            if len(args) > 2:
-                data   = [self.abspath(data) for data in args[2]]
-            else:
-                data = ()
-            for js_test in self._test_qunit(test_file, depends, data):
+            for js_test in self._test_qunit(test_file, depends):
                 yield js_test
 
     @with_tempdir
-    def _test_qunit(self, test_file, depends=(), data_files=(), timeout=10):
+    def _test_qunit(self, test_file, depends=(), timeout=10):
         assert osp.exists(test_file), test_file
         for dep in depends:
             assert osp.exists(dep), dep
-        for data in data_files:
-            assert osp.exists(data), data
 
         QUnitView.test_file = test_file
         QUnitView.depends = depends