diff --git a/ckan/public/base/test/spec/modules/custom-fields.spec.js b/ckan/public/base/test/spec/modules/custom-fields.spec.js index 99088cc5e9e..79e5d03187b 100644 --- a/ckan/public/base/test/spec/modules/custom-fields.spec.js +++ b/ckan/public/base/test/spec/modules/custom-fields.spec.js @@ -135,18 +135,6 @@ describe('ckan.module.CustomFieldsModule()', function () { assert.isTrue(this.target.hasClass('disabled')); }); - it('should set the disabled property on the input elements', function () { - this.module.disableField(this.target); - - this.target.find(':input').each(function () { - if (jQuery(this).is(':checkbox')) { - assert.isFalse(this.disabled, 'checkbox should not be disabled'); - } else { - assert.isTrue(this.disabled, 'input should be disabled'); - } - }); - }); - it('should remove a .disable class to the element if disable is false', function () { this.target.addClass('disable'); @@ -154,19 +142,6 @@ describe('ckan.module.CustomFieldsModule()', function () { assert.isFalse(this.target.hasClass('disabled')); }); - it('should unset the disabled property on the input elements if disable is false', function () { - this.target.find(':input:not(:checkbox)').prop('disabled', true); - - this.module.disableField(this.target, false); - - this.target.find(':input').each(function () { - if (jQuery(this).is(':checkbox')) { - assert.isFalse(this.disabled, 'checkbox should not be disabled'); - } else { - assert.isFalse(this.disabled, 'input should not be disabled'); - } - }); - }); }); describe('._onChange(event)', function () {