4 |
4 |
5 |
5 |
6 def js(name): |
6 def js(name): |
7 return '/static/js_examples/' + name |
7 return '/static/js_examples/' + name |
8 |
8 |
|
9 |
9 class QUnitTestCaseTC(qunit.QUnitTestCase): |
10 class QUnitTestCaseTC(qunit.QUnitTestCase): |
10 |
11 |
11 timeout_error = SkipTest |
12 timeout_error = SkipTest |
12 all_js_tests = ( |
13 all_js_tests = ( |
13 (js('test_simple_success.js'),), |
14 (js('test_simple_success.js'),), |
14 (js('test_with_dep.js'), (js('dep_1.js'),)), |
15 (js('test_with_dep.js'), (js('dep_1.js'),)), |
15 (js('test_with_ordered_deps.js'), (js('dep_1.js'), js('deps_2.js'),)), |
16 (js('test_with_ordered_deps.js'), (js('dep_1.js'), js('deps_2.js'),)), |
16 ) |
17 ) |
17 |
|
18 |
18 |
19 def test_simple_failure(self): |
19 def test_simple_failure(self): |
20 js_tests = list(self._test_qunit(js('test_simple_failure.js'))) |
20 js_tests = list(self._test_qunit(js('test_simple_failure.js'))) |
21 self.assertEqual(len(js_tests), 3) |
21 self.assertEqual(len(js_tests), 3) |
22 test_1, test_2, test_3 = js_tests |
22 test_1, test_2, test_3 = js_tests |