Unverified Commit 16738248 authored by Mikkel Nygaard Ravn's avatar Mikkel Nygaard Ravn Committed by GitHub

Clean up external_ui device lab test (#13177)

parent 5ecbc92b
...@@ -23,7 +23,7 @@ android { ...@@ -23,7 +23,7 @@ android {
} }
defaultConfig { defaultConfig {
applicationId "com.yourcompany.externalui" applicationId "io.flutter.externalui"
minSdkVersion 16 minSdkVersion 16
targetSdkVersion 25 targetSdkVersion 25
versionCode 1 versionCode 1
......
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.yourcompany.externalui"> package="io.flutter.externalui">
<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.INTERNET"/>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
package com.yourcompany.externalui; package io.flutter.externalui;
import android.graphics.Canvas; import android.graphics.Canvas;
import android.graphics.Paint; import android.graphics.Paint;
......
...@@ -359,7 +359,7 @@ ...@@ -359,7 +359,7 @@
"$(inherited)", "$(inherited)",
"$(PROJECT_DIR)/Flutter", "$(PROJECT_DIR)/Flutter",
); );
PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.externalUi; PRODUCT_BUNDLE_IDENTIFIER = io.flutter.externalUi;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
}; };
name = Debug; name = Debug;
...@@ -381,7 +381,7 @@ ...@@ -381,7 +381,7 @@
"$(inherited)", "$(inherited)",
"$(PROJECT_DIR)/Flutter", "$(PROJECT_DIR)/Flutter",
); );
PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.externalUi; PRODUCT_BUNDLE_IDENTIFIER = io.flutter.externalUi;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
}; };
name = Release; name = Release;
......
...@@ -95,7 +95,9 @@ Widget builds: $_widgetBuilds'''; ...@@ -95,7 +95,9 @@ Widget builds: $_widgetBuilds''';
ticker.dispose(); ticker.dispose();
setState(() { setState(() {
_flutterFrameRate = tickCount * 1000 / elapsed.inMilliseconds; _flutterFrameRate = tickCount * 1000 / elapsed.inMilliseconds;
_summary = 'Flutter frame rate is ${_flutterFrameRate.toStringAsFixed(1)}fps.\nPress play to produce texture frames.'; _summary = '''
Flutter frame rate is ${_flutterFrameRate.toStringAsFixed(1)}fps.
Press play to produce texture frames.''';
_icon = Icons.play_arrow; _icon = Icons.play_arrow;
_state = FrameState.initial; _state = FrameState.initial;
}); });
......
...@@ -16,11 +16,13 @@ Future<Null> main() async { ...@@ -16,11 +16,13 @@ Future<Null> main() async {
setUpAll(() async { setUpAll(() async {
driver = await FlutterDriver.connect(); driver = await FlutterDriver.connect();
// TODO(mravn): the following pause appears necessary on iOS to avoid
// inflating elements too early (when there is no size).
await new Future<Null>.delayed(const Duration(seconds: 1));
}); });
// This test verifies that we can consume texture frames at a rate
// close to the minimum of the rate at which they are produced
// and Flutter's frame rate. It also verifies that we do not rebuild the
// Widget tree during texture consumption. The test starts by measuring
// Flutter's frame rate.
test('texture rendering', () async { test('texture rendering', () async {
final SerializableFinder fab = find.byValueKey('fab'); final SerializableFinder fab = find.byValueKey('fab');
final SerializableFinder summary = find.byValueKey('summary'); final SerializableFinder summary = find.byValueKey('summary');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment