forked from firka/flutter
Enable goldenFileComparator fix for on-device integration tests. (#163157)
Closes https://github.com/flutter/flutter/issues/143299. Closes https://github.com/flutter/flutter/issues/160043. A website update is work-in-progress here to add more context for users: <https://github.com/flutter/website/pull/11716>.
This commit is contained in:
@@ -243,6 +243,11 @@ void main() {
|
||||
buffer.write('''
|
||||
goldenFileComparator = LocalFileComparator(Uri.parse('$testUrl'));
|
||||
autoUpdateGoldenFiles = $updateGoldens;
|
||||
''');
|
||||
}
|
||||
if (integrationTest) {
|
||||
buffer.write('''
|
||||
VmServiceProxyGoldenFileComparator.useIfRunningOnDevice();
|
||||
''');
|
||||
}
|
||||
if (testConfigFile != null) {
|
||||
|
||||
Reference in New Issue
Block a user