[flutter_tools] test toggle debugPaintsize (#74464)

This commit is contained in:
Jonah Williams 2021-01-22 18:11:37 -08:00 committed by GitHub
parent f3947ea0cd
commit fa0880c309
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,6 +133,22 @@ void main() {
expect(bogusResponse.json['value'], 'Brightness.light');
});
// TODO(devoncarew): These tests fail on cirrus-ci windows.
}, skip: platform.isWindows);
testWithoutContext('ext.flutter.debugPaint can toggle debug painting', () async {
final Isolate isolate = await waitForExtension(vmService, 'ext.flutter.debugPaint');
final Response response = await vmService.callServiceExtension(
'ext.flutter.debugPaint',
isolateId: isolate.id,
);
expect(response.json['enabled'], 'false');
final Response updateResponse = await vmService.callServiceExtension(
'ext.flutter.debugPaint',
isolateId: isolate.id,
args: <String, String>{
'enabled': 'true',
}
);
expect(updateResponse.json['enabled'], 'true');
});
});
}