Remove unused physicalDepth code (#60152)
This commit is contained in:
@@ -86,22 +86,6 @@ class TestWindow implements Window {
|
||||
onMetricsChanged();
|
||||
}
|
||||
|
||||
@override
|
||||
double get physicalDepth => _physicalDepthTestValue ?? _window.physicalDepth;
|
||||
double _physicalDepthTestValue;
|
||||
/// Hides the real physical depth and reports the given
|
||||
/// [physicalDepthTestValue] instead.
|
||||
set physicalDepthTestValue (double physicalDepthTestValue) {
|
||||
_physicalDepthTestValue = physicalDepthTestValue;
|
||||
onMetricsChanged();
|
||||
}
|
||||
/// Deletes any existing test physical depth and returns to using the real
|
||||
/// physical depth.
|
||||
void clearPhysicalDepthTestValue() {
|
||||
_physicalDepthTestValue = null;
|
||||
onMetricsChanged();
|
||||
}
|
||||
|
||||
@override
|
||||
WindowPadding get viewInsets => _viewInsetsTestValue ?? _window.viewInsets;
|
||||
WindowPadding _viewInsetsTestValue;
|
||||
@@ -418,7 +402,6 @@ class TestWindow implements Window {
|
||||
clearLocalesTestValue();
|
||||
clearPaddingTestValue();
|
||||
clearPhysicalSizeTestValue();
|
||||
clearPhysicalDepthTestValue();
|
||||
clearSemanticsEnabledTestValue();
|
||||
clearTextScaleFactorTestValue();
|
||||
clearViewInsetsTestValue();
|
||||
|
||||
@@ -43,20 +43,6 @@ void main() {
|
||||
);
|
||||
});
|
||||
|
||||
testWidgets('TestWindow can fake physical depth', (WidgetTester tester) async {
|
||||
verifyThatTestWindowCanFakeProperty<double>(
|
||||
tester: tester,
|
||||
realValue: ui.window.physicalDepth,
|
||||
fakeValue: 120.0,
|
||||
propertyRetriever: () {
|
||||
return WidgetsBinding.instance.window.physicalDepth;
|
||||
},
|
||||
propertyFaker: (TestWidgetsFlutterBinding binding, double fakeValue) {
|
||||
binding.window.physicalDepthTestValue = fakeValue;
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
testWidgets('TestWindow can fake view insets', (WidgetTester tester) async {
|
||||
verifyThatTestWindowCanFakeProperty<WindowPadding>(
|
||||
tester: tester,
|
||||
|
||||
Reference in New Issue
Block a user