|
|
@@ -1872,6 +1872,8 @@ describe('OC.Share.ShareDialogView', function() { |
|
|
|
|
|
|
|
expect(dialog.$el.find('.shareWithLoading').hasClass('hidden')).toEqual(false); |
|
|
|
expect(dialog.$el.find('.shareWithConfirm').hasClass('hidden')).toEqual(true); |
|
|
|
expect(autocompleteStub.lastCall.args[0]).toEqual('disable'); |
|
|
|
expect(autocompleteStub.calledWith('close')).toEqual(true); |
|
|
|
expect(dialog.$el.find('.shareWithField').prop('disabled')).toEqual(true); |
|
|
|
expect(dialog.$el.find('.shareWithField').val()).toEqual('bob'); |
|
|
|
}); |
|
|
@@ -1918,6 +1920,7 @@ describe('OC.Share.ShareDialogView', function() { |
|
|
|
// Ensure that the UI is not restored before adding the share |
|
|
|
expect(dialog.$el.find('.shareWithLoading').hasClass('hidden')).toEqual(false); |
|
|
|
expect(dialog.$el.find('.shareWithConfirm').hasClass('hidden')).toEqual(true); |
|
|
|
expect(autocompleteStub.lastCall.args[0]).toEqual('disable'); |
|
|
|
expect(dialog.$el.find('.shareWithField').prop('disabled')).toEqual(true); |
|
|
|
expect(dialog.$el.find('.shareWithField').val()).toEqual('bob'); |
|
|
|
|
|
|
@@ -1933,6 +1936,7 @@ describe('OC.Share.ShareDialogView', function() { |
|
|
|
|
|
|
|
expect(dialog.$el.find('.shareWithLoading').hasClass('hidden')).toEqual(true); |
|
|
|
expect(dialog.$el.find('.shareWithConfirm').hasClass('hidden')).toEqual(false); |
|
|
|
expect(autocompleteStub.lastCall.args[0]).toEqual('enable'); |
|
|
|
expect(dialog.$el.find('.shareWithField').prop('disabled')).toEqual(false); |
|
|
|
expect(dialog.$el.find('.shareWithField').val()).toEqual(''); |
|
|
|
}); |
|
|
@@ -1981,6 +1985,7 @@ describe('OC.Share.ShareDialogView', function() { |
|
|
|
// Ensure that the UI is not restored before adding the share |
|
|
|
expect(dialog.$el.find('.shareWithLoading').hasClass('hidden')).toEqual(false); |
|
|
|
expect(dialog.$el.find('.shareWithConfirm').hasClass('hidden')).toEqual(true); |
|
|
|
expect(autocompleteStub.lastCall.args[0]).toEqual('disable'); |
|
|
|
expect(dialog.$el.find('.shareWithField').prop('disabled')).toEqual(true); |
|
|
|
expect(dialog.$el.find('.shareWithField').val()).toEqual('bob'); |
|
|
|
|
|
|
@@ -1996,6 +2001,7 @@ describe('OC.Share.ShareDialogView', function() { |
|
|
|
|
|
|
|
expect(dialog.$el.find('.shareWithLoading').hasClass('hidden')).toEqual(true); |
|
|
|
expect(dialog.$el.find('.shareWithConfirm').hasClass('hidden')).toEqual(false); |
|
|
|
expect(autocompleteStub.lastCall.args[0]).toEqual('enable'); |
|
|
|
expect(dialog.$el.find('.shareWithField').prop('disabled')).toEqual(false); |
|
|
|
expect(dialog.$el.find('.shareWithField').val()).toEqual('bob'); |
|
|
|
|
|
|
@@ -2037,6 +2043,7 @@ describe('OC.Share.ShareDialogView', function() { |
|
|
|
|
|
|
|
expect(dialog.$el.find('.shareWithLoading').hasClass('hidden')).toEqual(true); |
|
|
|
expect(dialog.$el.find('.shareWithConfirm').hasClass('hidden')).toEqual(false); |
|
|
|
expect(autocompleteStub.lastCall.args[0]).toEqual('enable'); |
|
|
|
expect(dialog.$el.find('.shareWithField').prop('disabled')).toEqual(false); |
|
|
|
expect(dialog.$el.find('.shareWithField').val()).toEqual('bob'); |
|
|
|
|
|
|
@@ -2088,6 +2095,7 @@ describe('OC.Share.ShareDialogView', function() { |
|
|
|
|
|
|
|
expect(dialog.$el.find('.shareWithLoading').hasClass('hidden')).toEqual(true); |
|
|
|
expect(dialog.$el.find('.shareWithConfirm').hasClass('hidden')).toEqual(false); |
|
|
|
expect(autocompleteStub.lastCall.args[0]).toEqual('enable'); |
|
|
|
expect(dialog.$el.find('.shareWithField').prop('disabled')).toEqual(false); |
|
|
|
expect(dialog.$el.find('.shareWithField').val()).toEqual('bo'); |
|
|
|
}); |
|
|
@@ -2143,6 +2151,7 @@ describe('OC.Share.ShareDialogView', function() { |
|
|
|
|
|
|
|
expect(dialog.$el.find('.shareWithLoading').hasClass('hidden')).toEqual(true); |
|
|
|
expect(dialog.$el.find('.shareWithConfirm').hasClass('hidden')).toEqual(false); |
|
|
|
expect(autocompleteStub.lastCall.args[0]).toEqual('enable'); |
|
|
|
expect(dialog.$el.find('.shareWithField').prop('disabled')).toEqual(false); |
|
|
|
expect(dialog.$el.find('.shareWithField').val()).toEqual('bob'); |
|
|
|
}); |
|
|
@@ -2171,6 +2180,7 @@ describe('OC.Share.ShareDialogView', function() { |
|
|
|
|
|
|
|
expect(dialog.$el.find('.shareWithLoading').hasClass('hidden')).toEqual(true); |
|
|
|
expect(dialog.$el.find('.shareWithConfirm').hasClass('hidden')).toEqual(false); |
|
|
|
expect(autocompleteStub.lastCall.args[0]).toEqual('enable'); |
|
|
|
expect(dialog.$el.find('.shareWithField').prop('disabled')).toEqual(false); |
|
|
|
expect(dialog.$el.find('.shareWithField').val()).toEqual('bob'); |
|
|
|
|
|
|
@@ -2188,6 +2198,7 @@ describe('OC.Share.ShareDialogView', function() { |
|
|
|
|
|
|
|
expect(dialog.$el.find('.shareWithLoading').hasClass('hidden')).toEqual(true); |
|
|
|
expect(dialog.$el.find('.shareWithConfirm').hasClass('hidden')).toEqual(false); |
|
|
|
expect(autocompleteStub.lastCall.args[0]).toEqual('enable'); |
|
|
|
expect(dialog.$el.find('.shareWithField').prop('disabled')).toEqual(false); |
|
|
|
expect(dialog.$el.find('.shareWithField').val()).toEqual('bob'); |
|
|
|
|