FBScreenTests.m 851 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * Copyright (c) 2015-present, Facebook, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. */
  9. #import <XCTest/XCTest.h>
  10. #import "FBIntegrationTestCase.h"
  11. #import "FBScreen.h"
  12. @interface FBScreenTests : FBIntegrationTestCase
  13. @end
  14. @implementation FBScreenTests
  15. - (void)setUp
  16. {
  17. [super setUp];
  18. [self launchApplication];
  19. }
  20. - (void)testScreenScale
  21. {
  22. XCTAssertTrue([FBScreen scale] >= 2);
  23. }
  24. - (void)testStatusBarSize
  25. {
  26. CGSize statusBarSize = [FBScreen statusBarSizeForApplication:self.testedApplication];
  27. BOOL statusBarSizeIsZero = CGSizeEqualToSize(CGSizeZero, statusBarSize);
  28. XCTAssertFalse(statusBarSizeIsZero);
  29. }
  30. @end