Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
16738248
Unverified
Commit
16738248
authored
Nov 23, 2017
by
Mikkel Nygaard Ravn
Committed by
GitHub
Nov 23, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up external_ui device lab test (#13177)
parent
5ecbc92b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
9 deletions
+13
-9
build.gradle
dev/integration_tests/external_ui/android/app/build.gradle
+1
-1
AndroidManifest.xml
...ests/external_ui/android/app/src/main/AndroidManifest.xml
+1
-1
MainActivity.java
...app/src/main/java/io/flutter/externalui/MainActivity.java
+1
-1
project.pbxproj
...on_tests/external_ui/ios/Runner.xcodeproj/project.pbxproj
+2
-2
main.dart
dev/integration_tests/external_ui/lib/main.dart
+3
-1
main_test.dart
dev/integration_tests/external_ui/test_driver/main_test.dart
+5
-3
No files found.
dev/integration_tests/external_ui/android/app/build.gradle
View file @
16738248
...
...
@@ -23,7 +23,7 @@ android {
}
defaultConfig
{
applicationId
"
com.yourcompany
.externalui"
applicationId
"
io.flutter
.externalui"
minSdkVersion
16
targetSdkVersion
25
versionCode
1
...
...
dev/integration_tests/external_ui/android/app/src/main/AndroidManifest.xml
View file @
16738248
<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"
/>
...
...
dev/integration_tests/external_ui/android/app/src/main/java/
com/yourcompany
/externalui/MainActivity.java
→
dev/integration_tests/external_ui/android/app/src/main/java/
io/flutter
/externalui/MainActivity.java
View file @
16738248
...
...
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package
com
.
yourcompany
.
externalui
;
package
io
.
flutter
.
externalui
;
import
android.graphics.Canvas
;
import
android.graphics.Paint
;
...
...
dev/integration_tests/external_ui/ios/Runner.xcodeproj/project.pbxproj
View file @
16738248
...
...
@@ -359,7 +359,7 @@
"$(inherited)"
,
"$(PROJECT_DIR)/Flutter"
,
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.yourcompany
.externalUi
;
PRODUCT_BUNDLE_IDENTIFIER
=
io.flutter
.externalUi
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
};
name
=
Debug
;
...
...
@@ -381,7 +381,7 @@
"$(inherited)"
,
"$(PROJECT_DIR)/Flutter"
,
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.yourcompany
.externalUi
;
PRODUCT_BUNDLE_IDENTIFIER
=
io.flutter
.externalUi
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
};
name
=
Release
;
...
...
dev/integration_tests/external_ui/lib/main.dart
View file @
16738248
...
...
@@ -95,7 +95,9 @@ Widget builds: $_widgetBuilds''';
ticker
.
dispose
();
setState
(()
{
_flutterFrameRate
=
tickCount
*
1000
/
elapsed
.
inMilliseconds
;
_summary
=
'Flutter frame rate is
${_flutterFrameRate.toStringAsFixed(1)}
fps.
\n
Press play to produce texture frames.'
;
_summary
=
'''
Flutter frame rate is
${_flutterFrameRate.toStringAsFixed(1)}
fps.
Press play to produce texture frames.'''
;
_icon
=
Icons
.
play_arrow
;
_state
=
FrameState
.
initial
;
});
...
...
dev/integration_tests/external_ui/test_driver/main_test.dart
View file @
16738248
...
...
@@ -16,11 +16,13 @@ Future<Null> main() async {
setUpAll
(()
async
{
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
{
final
SerializableFinder
fab
=
find
.
byValueKey
(
'fab'
);
final
SerializableFinder
summary
=
find
.
byValueKey
(
'summary'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment