[flutter_tools] remove special casing of web listview requests (#82826)
This commit is contained in:
@@ -205,11 +205,7 @@ void main() {
|
||||
'streamId': 'Isolate',
|
||||
}
|
||||
),
|
||||
FakeVmServiceRequest(
|
||||
method: 'getVM',
|
||||
jsonResponse: fakeVM.toJson(),
|
||||
args: <String, Object>{},
|
||||
),
|
||||
listViews,
|
||||
FakeVmServiceRequest(
|
||||
method: 'getIsolate',
|
||||
jsonResponse: isolate.toJson(),
|
||||
|
||||
@@ -81,11 +81,6 @@ final FakeVmServiceRequest listViews = FakeVmServiceRequest(
|
||||
},
|
||||
);
|
||||
|
||||
final FakeVmServiceRequest getVM = FakeVmServiceRequest(
|
||||
method: 'getVM',
|
||||
jsonResponse: fakeVM.toJson(),
|
||||
);
|
||||
|
||||
void main() {
|
||||
testWithoutContext('keyboard input handling single help character', () async {
|
||||
final TestRunner testRunner = TestRunner();
|
||||
@@ -173,7 +168,7 @@ void main() {
|
||||
|
||||
testWithoutContext('a - debugToggleProfileWidgetBuilds with web target', () async {
|
||||
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
|
||||
getVM,
|
||||
listViews,
|
||||
const FakeVmServiceRequest(
|
||||
method: 'ext.flutter.profileWidgetBuilds',
|
||||
args: <String, Object>{
|
||||
@@ -235,7 +230,7 @@ void main() {
|
||||
|
||||
testWithoutContext('b - debugToggleBrightness with web target', () async {
|
||||
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
|
||||
getVM,
|
||||
listViews,
|
||||
const FakeVmServiceRequest(
|
||||
method: 'ext.flutter.brightnessOverride',
|
||||
args: <String, Object>{
|
||||
@@ -245,7 +240,7 @@ void main() {
|
||||
'value': 'Brightness.light',
|
||||
}
|
||||
),
|
||||
getVM,
|
||||
listViews,
|
||||
const FakeVmServiceRequest(
|
||||
method: 'ext.flutter.brightnessOverride',
|
||||
args: <String, Object>{
|
||||
@@ -315,7 +310,7 @@ void main() {
|
||||
|
||||
testWithoutContext('i - debugToggleWidgetInspector with web target', () async {
|
||||
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
|
||||
getVM,
|
||||
listViews,
|
||||
const FakeVmServiceRequest(
|
||||
method: 'ext.flutter.inspector.show',
|
||||
args: <String, Object>{
|
||||
@@ -348,7 +343,7 @@ void main() {
|
||||
|
||||
testWithoutContext('I - debugToggleInvertOversizedImages with web target', () async {
|
||||
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
|
||||
getVM,
|
||||
listViews,
|
||||
const FakeVmServiceRequest(
|
||||
method: 'ext.flutter.invertOversizedImages',
|
||||
args: <String, Object>{
|
||||
@@ -389,7 +384,7 @@ void main() {
|
||||
|
||||
testWithoutContext('L - debugDumpLayerTree with web target', () async {
|
||||
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
|
||||
getVM,
|
||||
listViews,
|
||||
const FakeVmServiceRequest(
|
||||
method: 'ext.flutter.debugDumpLayerTree',
|
||||
args: <String, Object>{
|
||||
@@ -472,7 +467,7 @@ void main() {
|
||||
testWithoutContext('o,O - debugTogglePlatform with web target', () async {
|
||||
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
|
||||
// Request 1.
|
||||
getVM,
|
||||
listViews,
|
||||
const FakeVmServiceRequest(
|
||||
method: 'ext.flutter.platformOverride',
|
||||
args: <String, Object>{
|
||||
@@ -482,7 +477,7 @@ void main() {
|
||||
'value': 'iOS'
|
||||
},
|
||||
),
|
||||
getVM,
|
||||
listViews,
|
||||
const FakeVmServiceRequest(
|
||||
method: 'ext.flutter.platformOverride',
|
||||
args: <String, Object>{
|
||||
@@ -494,7 +489,7 @@ void main() {
|
||||
},
|
||||
),
|
||||
// Request 2.
|
||||
getVM,
|
||||
listViews,
|
||||
const FakeVmServiceRequest(
|
||||
method: 'ext.flutter.platformOverride',
|
||||
args: <String, Object>{
|
||||
@@ -504,7 +499,7 @@ void main() {
|
||||
'value': 'android'
|
||||
},
|
||||
),
|
||||
getVM,
|
||||
listViews,
|
||||
const FakeVmServiceRequest(
|
||||
method: 'ext.flutter.platformOverride',
|
||||
args: <String, Object>{
|
||||
@@ -544,7 +539,7 @@ void main() {
|
||||
|
||||
testWithoutContext('p - debugToggleDebugPaintSizeEnabled with web target', () async {
|
||||
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
|
||||
getVM,
|
||||
listViews,
|
||||
const FakeVmServiceRequest(
|
||||
method: 'ext.flutter.debugPaint',
|
||||
args: <String, Object>{
|
||||
@@ -603,7 +598,7 @@ void main() {
|
||||
|
||||
testWithoutContext('S - debugDumpSemanticsTreeInTraversalOrder with web target', () async {
|
||||
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
|
||||
getVM,
|
||||
listViews,
|
||||
const FakeVmServiceRequest(
|
||||
method: 'ext.flutter.debugDumpSemanticsTreeInTraversalOrder',
|
||||
args: <String, Object>{
|
||||
@@ -644,7 +639,7 @@ void main() {
|
||||
|
||||
testWithoutContext('U - debugDumpSemanticsTreeInInverseHitTestOrder with web target', () async {
|
||||
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
|
||||
getVM,
|
||||
listViews,
|
||||
const FakeVmServiceRequest(
|
||||
method: 'ext.flutter.debugDumpSemanticsTreeInInverseHitTestOrder',
|
||||
args: <String, Object>{
|
||||
@@ -698,7 +693,7 @@ void main() {
|
||||
|
||||
testWithoutContext('t,T - debugDumpRenderTree with web target', () async {
|
||||
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
|
||||
getVM,
|
||||
listViews,
|
||||
const FakeVmServiceRequest(
|
||||
method: 'ext.flutter.debugDumpRenderTree',
|
||||
args: <String, Object>{
|
||||
@@ -709,7 +704,7 @@ void main() {
|
||||
},
|
||||
),
|
||||
// Request 2.
|
||||
getVM,
|
||||
listViews,
|
||||
const FakeVmServiceRequest(
|
||||
method: 'ext.flutter.debugDumpRenderTree',
|
||||
args: <String, Object>{
|
||||
@@ -766,7 +761,7 @@ void main() {
|
||||
|
||||
testWithoutContext('w,W - debugDumpApp with web target', () async {
|
||||
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
|
||||
getVM,
|
||||
listViews,
|
||||
const FakeVmServiceRequest(
|
||||
method: 'ext.flutter.debugDumpApp',
|
||||
args: <String, Object>{
|
||||
@@ -777,7 +772,7 @@ void main() {
|
||||
},
|
||||
),
|
||||
// Request 2.
|
||||
getVM,
|
||||
listViews,
|
||||
const FakeVmServiceRequest(
|
||||
method: 'ext.flutter.debugDumpApp',
|
||||
args: <String, Object>{
|
||||
@@ -837,7 +832,7 @@ void main() {
|
||||
|
||||
testWithoutContext('z,Z - debugToggleDebugCheckElevationsEnabled with web target', () async {
|
||||
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
|
||||
getVM,
|
||||
listViews,
|
||||
const FakeVmServiceRequest(
|
||||
method: 'ext.flutter.debugCheckElevationsEnabled',
|
||||
args: <String, Object>{
|
||||
@@ -845,7 +840,7 @@ void main() {
|
||||
},
|
||||
),
|
||||
// Request 2.
|
||||
getVM,
|
||||
listViews,
|
||||
const FakeVmServiceRequest(
|
||||
method: 'ext.flutter.debugCheckElevationsEnabled',
|
||||
args: <String, Object>{
|
||||
@@ -1024,7 +1019,7 @@ void main() {
|
||||
final BufferLogger logger = BufferLogger.test();
|
||||
final FileSystem fileSystem = MemoryFileSystem.test();
|
||||
final TerminalHandler terminalHandler = setUpTerminalHandler(<FakeVmServiceRequest>[
|
||||
getVM,
|
||||
listViews,
|
||||
FakeVmServiceRequest(
|
||||
method: 'ext.flutter.debugAllowBanner',
|
||||
args: <String, Object>{
|
||||
@@ -1173,7 +1168,7 @@ void main() {
|
||||
final FileSystem fileSystem = MemoryFileSystem.test();
|
||||
final TerminalHandler terminalHandler = setUpTerminalHandler(
|
||||
<FakeVmServiceRequest>[
|
||||
getVM,
|
||||
listViews,
|
||||
FakeVmServiceRequest(
|
||||
method: 'ext.flutter.debugAllowBanner',
|
||||
args: <String, Object>{
|
||||
|
||||
Reference in New Issue
Block a user