Commit 584dbe3d authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

Fix the activity name in the Gallery back button memory metric (#7527)

parent 40e305dc
......@@ -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));
}
......
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