[flutter_tools] test toggle debugPaintsize (#74464)
This commit is contained in:
@@ -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');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user