mirror of
https://github.com/flutter/flutter
synced 2024-10-13 03:32:55 +00:00
[flutter_tools] test toggle debugPaintsize (#74464)
This commit is contained in:
parent
f3947ea0cd
commit
fa0880c309
|
@ -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');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue