[Edit Mode] #629 restored disabled tests for DropGesture. Removed extraneous argument to broadcast function

This commit is contained in:
Henry
2016-05-26 11:42:15 -07:00
parent eda1f23df9
commit f301741852
2 changed files with 2 additions and 21 deletions

View File

@@ -61,8 +61,7 @@ define(
{ {
x: event.pageX - rect.left, x: event.pageX - rect.left,
y: event.pageY - rect.top y: event.pageY - rect.top
}, }
domainObject
); );
} }
} }

View File

@@ -34,8 +34,7 @@ define(
TEST_ID = "test-id", TEST_ID = "test-id",
DROP_ID = "drop-id"; DROP_ID = "drop-id";
//TODO: Disabled for NEM Beta describe("The drop gesture", function () {
xdescribe("The drop gesture", function () {
var mockDndService, var mockDndService,
mockQ, mockQ,
mockElement, mockElement,
@@ -144,23 +143,6 @@ define(
expect(mockCompose.perform).toHaveBeenCalled(); 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 () { it("invokes compose on drop in browse mode for folders", function () {
// Set the mockDomainObject to not have the editor capability // Set the mockDomainObject to not have the editor capability
mockDomainObject.hasCapability.andReturn(false); mockDomainObject.hasCapability.andReturn(false);