Skip to content

Commit

Permalink
Merge branch 'release/1.2_45'
Browse files Browse the repository at this point in the history
  • Loading branch information
duemunk committed Jan 2, 2015
2 parents 688d397 + c2fddbd commit 01c8acc
Show file tree
Hide file tree
Showing 552 changed files with 25,460 additions and 17,488 deletions.
1 change: 1 addition & 0 deletions BeMyEyes Tests/BeMyEyes Tests-Bridging-Header.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@

#import "BMEHelperMainViewController.h"
#import "BMEBlindMainViewController.h"
#import "BMEFrontPageViewController.h"
3 changes: 2 additions & 1 deletion BeMyEyes Tests/BlindMainViewController_Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class BlindMainViewController_Tests: FBSnapshotTestCase {
override func setUp() {
super.setUp()
// recordMode = true
renderAsLayer = true

helperVC = UIApplication.sharedApplication().keyWindow?.rootViewController?.storyboard?.instantiateViewControllerWithIdentifier(BMEMainBlindControllerIdentifier) as? BMEBlindMainViewController
helperVC?.viewDidLoad()
Expand All @@ -26,7 +27,7 @@ class BlindMainViewController_Tests: FBSnapshotTestCase {
}

func testOnAllDevices() {
verifyViewOnAllDevices(helperVC!.view)
verifyViewOnAllDevicesAndLanguages(helperVC!)
}

func testCreatePromoScreenshots() {
Expand Down
32 changes: 32 additions & 0 deletions BeMyEyes Tests/FrontPageViewController_Tests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
//
// FrontPageViewController_Tests.swift
// BeMyEyes
//
// Created by Tobias Due Munk on 02/01/15.
// Copyright (c) 2015 Be My Eyes. All rights reserved.
//

import UIKit
import XCTest

class FrontPageViewController_Tests: FBSnapshotTestCase {

var frontPageVC: BMEFrontPageViewController?

override func setUp() {
super.setUp()
recordMode = true
renderAsLayer = true

frontPageVC = UIApplication.sharedApplication().keyWindow?.rootViewController?.storyboard?.instantiateViewControllerWithIdentifier(BMEFrontPageControllerIdentifier) as? BMEFrontPageViewController
frontPageVC?.viewDidLoad()
}

override func tearDown() {
super.tearDown()
}

func testOnAllDevices() {
verifyViewOnAllDevicesAndLanguages(frontPageVC!)
}
}
3 changes: 2 additions & 1 deletion BeMyEyes Tests/HelperMainViewController_Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class HelperMainViewController_Tests: FBSnapshotTestCase {
override func setUp() {
super.setUp()
// recordMode = true
renderAsLayer = true

helperVC = UIApplication.sharedApplication().keyWindow?.rootViewController?.storyboard?.instantiateViewControllerWithIdentifier(BMEMainHelperControllerIdentifier) as? BMEHelperMainViewController
helperVC?.viewDidLoad()
Expand All @@ -30,7 +31,7 @@ class HelperMainViewController_Tests: FBSnapshotTestCase {
helperVC.user = BMEUser.idealUser()
helperVC.stats = BMECommunityStats.idealStats()
}
verifyViewOnAllDevices(helperVC!.view)
verifyViewOnAllDevicesAndLanguages(helperVC!)
}

func testCreatePromoScreenshots() {
Expand Down
Loading

0 comments on commit 01c8acc

Please sign in to comment.