mirror of
https://github.com/nasa/openmct.git
synced 2024-12-23 23:12:23 +00:00
[Edit Mode] #629 restored disabled tests for DropGesture. Removed extraneous argument to broadcast function
This commit is contained in:
parent
eda1f23df9
commit
f301741852
@ -61,8 +61,7 @@ define(
|
||||
{
|
||||
x: event.pageX - rect.left,
|
||||
y: event.pageY - rect.top
|
||||
},
|
||||
domainObject
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -34,8 +34,7 @@ define(
|
||||
TEST_ID = "test-id",
|
||||
DROP_ID = "drop-id";
|
||||
|
||||
//TODO: Disabled for NEM Beta
|
||||
xdescribe("The drop gesture", function () {
|
||||
describe("The drop gesture", function () {
|
||||
var mockDndService,
|
||||
mockQ,
|
||||
mockElement,
|
||||
@ -144,23 +143,6 @@ define(
|
||||
expect(mockCompose.perform).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
|
||||
it("does not invoke compose on drop in browse mode for non-folders", function () {
|
||||
// Set the mockDomainObject to not have the editor capability
|
||||
mockDomainObject.hasCapability.andReturn(false);
|
||||
// Set the mockDomainObject to not have a type of folder
|
||||
mockDomainObject.getModel.andReturn({type: 'notAFolder'});
|
||||
|
||||
callbacks.dragover(mockEvent);
|
||||
expect(mockAction.getActions).toHaveBeenCalledWith({
|
||||
key: 'compose',
|
||||
selectedObject: mockDraggedObject
|
||||
});
|
||||
callbacks.drop(mockEvent);
|
||||
expect(mockCompose.perform).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
|
||||
it("invokes compose on drop in browse mode for folders", function () {
|
||||
// Set the mockDomainObject to not have the editor capability
|
||||
mockDomainObject.hasCapability.andReturn(false);
|
||||
|
Loading…
Reference in New Issue
Block a user