mirror of
https://github.com/flutter/flutter
synced 2024-10-13 11:42:54 +00:00
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.
|
||||
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));
|
||||
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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue