##// END OF EJS Templates
don't change name of section
Paul Ivanov -
Show More
@@ -176,7 +176,7 b' class JSController(TestController):'
176 def __init__(self, section):
176 def __init__(self, section):
177 """Create new test runner."""
177 """Create new test runner."""
178 TestController.__init__(self)
178 TestController.__init__(self)
179 self.section = section[len(js_prefix):]
179 self.section = section
180
180
181 self.ipydir = TemporaryDirectory()
181 self.ipydir = TemporaryDirectory()
182 self.nbdir = TemporaryDirectory()
182 self.nbdir = TemporaryDirectory()
@@ -191,7 +191,7 b' class JSController(TestController):'
191 self._init_server()
191 self._init_server()
192 js_test_dir = get_js_test_dir()
192 js_test_dir = get_js_test_dir()
193 includes = '--includes=' + os.path.join(js_test_dir,'util.js')
193 includes = '--includes=' + os.path.join(js_test_dir,'util.js')
194 test_cases = os.path.join(js_test_dir, self.section)
194 test_cases = os.path.join(js_test_dir, self.section[len(js_prefix):])
195 port = '--port=' + str(self.server_port)
195 port = '--port=' + str(self.server_port)
196 self.cmd = ['casperjs', 'test', port, includes, test_cases]
196 self.cmd = ['casperjs', 'test', port, includes, test_cases]
197 super(JSController, self).launch()
197 super(JSController, self).launch()
General Comments 0
You need to be logged in to leave comments. Login now