diff options
Diffstat (limited to 'js_tests/admin/actions.test.js')
-rw-r--r-- | js_tests/admin/actions.test.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/js_tests/admin/actions.test.js b/js_tests/admin/actions.test.js new file mode 100644 index 0000000000..01e9267b94 --- /dev/null +++ b/js_tests/admin/actions.test.js @@ -0,0 +1,18 @@ +module('admin.actions', { + beforeEach: function() { + // Number of results shown on page + window._actions_icnt = '100'; + + var $ = django.jQuery; + $('#qunit-fixture').append($('#result-table').text()); + + $('tr input.action-select').actions(); + } +}); + +test('check', function(assert) { + var $ = django.jQuery; + assert.notOk($('.action-select').is(':checked')); + $('#action-toggle').click(); + assert.ok($('.action-select').is(':checked')); +}); |