summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorharisheb <ebuser@EBUsers-MacBook-Air.local>2017-09-26 16:41:17 -0400
committerharisheb <ebuser@EBUsers-MacBook-Air.local>2017-09-26 16:41:17 -0400
commitc0284225c825bbbe3a140bae46f65b5cd52cddf9 (patch)
tree26f2a161d07f7e8e57d2734ce96e963716f80987
parentd3fdb25fdaf634d07c7cb0f035ae31213851c7e8 (diff)
downloadsdl_ios-c0284225c825bbbe3a140bae46f65b5cd52cddf9.tar.gz
Fixing haptic unit test failures
-rw-r--r--SmartDeviceLinkTests/ProxySpecs/SDLHapticManagerSpec.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/SmartDeviceLinkTests/ProxySpecs/SDLHapticManagerSpec.m b/SmartDeviceLinkTests/ProxySpecs/SDLHapticManagerSpec.m
index 80be3ff79..387427b81 100644
--- a/SmartDeviceLinkTests/ProxySpecs/SDLHapticManagerSpec.m
+++ b/SmartDeviceLinkTests/ProxySpecs/SDLHapticManagerSpec.m
@@ -77,6 +77,7 @@ describe(@"the haptic manager", ^{
context(@"when initialized with no focusable view", ^{
beforeEach(^{
hapticManager = [[SDLHapticManager alloc] initWithWindow:uiWindow connectionManager:sdlLifecycleManager];
+ [hapticManager updateInterfaceLayout];
});
it(@"should have no focusable view", ^{
@@ -92,6 +93,7 @@ describe(@"the haptic manager", ^{
[uiWindow insertSubview:textField1 aboveSubview:uiWindow];
hapticManager = [[SDLHapticManager alloc] initWithWindow:uiWindow connectionManager:sdlLifecycleManager];
+ [hapticManager updateInterfaceLayout];
});
it(@"should have one view", ^{
@@ -113,6 +115,7 @@ describe(@"the haptic manager", ^{
context(@"when initialized with no views and then updated with two additional views", ^{
beforeEach(^{
hapticManager = [[SDLHapticManager alloc] initWithWindow:uiWindow connectionManager:sdlLifecycleManager];
+ [hapticManager updateInterfaceLayout];
viewRect1 = CGRectMake(101, 101, 50, 50);
UITextField *textField1 = [[UITextField alloc] initWithFrame:viewRect1];
@@ -156,6 +159,7 @@ describe(@"the haptic manager", ^{
[uiViewController.view addSubview:textField2];
hapticManager = [[SDLHapticManager alloc] initWithWindow:uiWindow connectionManager:sdlLifecycleManager];
+ [hapticManager updateInterfaceLayout];
[textField2 removeFromSuperview];
@@ -187,6 +191,7 @@ describe(@"the haptic manager", ^{
[uiViewController.view addSubview:textField2];
hapticManager = [[SDLHapticManager alloc] initWithWindow:uiWindow connectionManager:sdlLifecycleManager];
+ [hapticManager updateInterfaceLayout];
});
it(@"should return a view object", ^{
@@ -208,6 +213,7 @@ describe(@"the haptic manager", ^{
[uiWindow insertSubview:textField1 aboveSubview:uiWindow];
hapticManager = [[SDLHapticManager alloc] initWithWindow:uiWindow connectionManager:sdlLifecycleManager];
+ [hapticManager updateInterfaceLayout];
});
it(@"should return nil", ^{
SDLTouch* collisionTouch = generateTouchEvent(0, 228);