From befa66a9e259160c4f988d0b5e33202bc7650991 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Fri, 18 Sep 2015 14:54:37 -0700 Subject: [PATCH] [Mobile] Remove obsolete test cases ...for functionality that has been moved out of TreeNodeController. --- .../test/controllers/TreeNodeControllerSpec.js | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/platform/commonUI/general/test/controllers/TreeNodeControllerSpec.js b/platform/commonUI/general/test/controllers/TreeNodeControllerSpec.js index 247120cdec..f2e5d1ae2d 100644 --- a/platform/commonUI/general/test/controllers/TreeNodeControllerSpec.js +++ b/platform/commonUI/general/test/controllers/TreeNodeControllerSpec.js @@ -52,10 +52,10 @@ define( "domainObject", [ "getId", "getCapability", "getModel", "useCapability" ] ); - + mockAgentService.getOrientation.andReturn("portrait"); mockAgentService.isPhone.andReturn(true); - + controller = new TreeNodeController(mockScope, mockTimeout, mockAgentService); }); @@ -196,17 +196,6 @@ define( expect(controller.isSelected()).toBeFalsy(); }); - - it("check if tree node is in a mobile device", function () { - if (controller) { - controller.checkMobile(); - } - }); - - it("allows a set object to emit select-obj", function () { - controller.setObject(mockNgModel, mockDomainObject); - expect(mockScope.$emit).toHaveBeenCalledWith('select-obj'); - }); }); } -); \ No newline at end of file +);