Fix the activity name in the Gallery back button memory metric (#7527)
This commit is contained in:
parent
40e305dc2d
commit
584dbe3d32
@ -302,9 +302,12 @@ class AndroidBackButtonMemoryTest {
|
|||||||
|
|
||||||
// Perform a series of back button suspend and resume cycles.
|
// Perform a series of back button suspend and resume cycles.
|
||||||
for (int i = 0; i < 10; i++) {
|
for (int i = 0; i < 10; i++) {
|
||||||
device.shellExec('input', <String>['keyevent', 'KEYCODE_BACK']);
|
await device.shellExec('input', <String>['keyevent', 'KEYCODE_BACK']);
|
||||||
await new Future<Null>.delayed(new Duration(milliseconds: 1000));
|
await new Future<Null>.delayed(new Duration(milliseconds: 1000));
|
||||||
device.shellExec('am', <String>['start', '-n', 'io.flutter.examples.gallery/org.domokit.sky.shell.SkyActivity']);
|
String output = await device.shellEval('am', <String>['start', '-n', 'io.flutter.examples.gallery/io.flutter.app.FlutterActivity']);
|
||||||
|
print(output);
|
||||||
|
if (output.contains('Error'))
|
||||||
|
return new TaskResult.failure('unable to launch activity');
|
||||||
await new Future<Null>.delayed(new Duration(milliseconds: 1000));
|
await new Future<Null>.delayed(new Duration(milliseconds: 1000));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user