From bd1ebf2e1498bd022808f8b237654ce42ae537be Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Sat, 11 Jan 2025 13:16:21 -0800 Subject: [PATCH] [android_engine_test] Remove background/foreground from surface texture trampoline test. (#161441) See if this fixes the golden. The background/foreground isn't necessary for this test which is just a gold comparison of the rendering --- .../external_texture_other_face_main_test.dart | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/dev/integration_tests/android_engine_test/test_driver/external_texture_other_face_main_test.dart b/dev/integration_tests/android_engine_test/test_driver/external_texture_other_face_main_test.dart index 4ea49c151c2a8..072d0713da08d 100644 --- a/dev/integration_tests/android_engine_test/test_driver/external_texture_other_face_main_test.dart +++ b/dev/integration_tests/android_engine_test/test_driver/external_texture_other_face_main_test.dart @@ -12,8 +12,6 @@ import '_luci_skia_gold_prelude.dart'; void main() async { // To test the golden file generation locally, comment out the following line. // autoUpdateGoldenFiles = true; - - const String appName = 'com.example.android_engine_test'; late final FlutterDriver flutterDriver; late final NativeDriver nativeDriver; @@ -31,21 +29,9 @@ void main() async { await flutterDriver.close(); }); - test('should screenshot and match an external smiley face texture', () async { + test('should screenshot and match a smiley face texture using the trampoline', () async { await flutterDriver.waitFor(find.byType('Texture')); - // On Android: Background the app, trim memory, and restore the app. - if (nativeDriver case final AndroidNativeDriver nativeDriver) { - print('Backgrounding the app, trimming memory, and resuming the app.'); - await nativeDriver.backgroundApp(); - - print('Trimming memory.'); - await nativeDriver.simulateLowMemory(appName: appName); - - print('Resuming the app.'); - await nativeDriver.resumeApp(appName: appName); - } - await expectLater( nativeDriver.screenshot(), matchesGoldenFile('external_texture_other_face.android.png'),