Unverified Commit fa0880c3 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

[flutter_tools] test toggle debugPaintsize (#74464)

parent f3947ea0
...@@ -133,6 +133,22 @@ void main() { ...@@ -133,6 +133,22 @@ void main() {
expect(bogusResponse.json['value'], 'Brightness.light'); expect(bogusResponse.json['value'], 'Brightness.light');
}); });
// TODO(devoncarew): These tests fail on cirrus-ci windows. testWithoutContext('ext.flutter.debugPaint can toggle debug painting', () async {
}, skip: platform.isWindows); 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');
});
});
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment