Flutter Engine
The Flutter Engine
RenderingSelectionTest.m
Go to the documentation of this file.
1// Copyright 2020 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#import <Flutter/Flutter.h>
6#import <XCTest/XCTest.h>
7
8@interface RenderingSelectionTest : XCTestCase
9@property(nonatomic, strong) XCUIApplication* application;
10@end
11
12@implementation RenderingSelectionTest
13
14- (void)setUp {
15 [super setUp];
16 self.continueAfterFailure = NO;
17 self.application = [[XCUIApplication alloc] init];
18}
19
21 self.application.launchArguments =
22 @[ @"--animated-color-square", @"--assert-ca-layer-type", @"--enable-software-rendering" ];
23 [self.application launch];
24
25 // App asserts that the rendering API is CALayer
26}
27
28- (void)testMetalRendering {
29 self.application.launchArguments = @[ @"--animated-color-square", @"--assert-ca-layer-type" ];
30 [self.application launch];
31
32 // App asserts that the rendering API is CAMetalLayer
33}
34@end
XCUIApplication * application