@@ -1186,7 +1186,7 @@ class _UnsupportedDisplay implements TestDisplay {
11861186/// If a test needs to override a real [SingletonFlutterWindow] property and
11871187/// then later return to using the real [SingletonFlutterWindow] property,
11881188/// [TestWindow] provides methods to clear each individual test value, e.g.,
1189- /// [clearLocaleTestValue ] .
1189+ /// [clearDevicePixelRatioTestValue ] .
11901190///
11911191/// To clear all fake test values in a [TestWindow] , consider using
11921192/// [clearAllTestValues] .
@@ -1507,22 +1507,6 @@ class TestWindow implements SingletonFlutterWindow {
15071507 )
15081508 @override
15091509 Locale get locale => platformDispatcher.locale;
1510- /// Hides the real locale and reports the given [localeTestValue] instead.
1511- @Deprecated (
1512- 'Use WidgetTester.platformDispatcher.localeTestValue instead. '
1513- 'This feature was deprecated after v2.11.0-0.0.pre.'
1514- )
1515- set localeTestValue (Locale localeTestValue) { // ignore: avoid_setters_without_getters
1516- platformDispatcher.localeTestValue = localeTestValue;
1517- }
1518- @Deprecated (
1519- 'Use WidgetTester.platformDispatcher.clearLocaleTestValue() instead. '
1520- 'This feature was deprecated after v2.11.0-0.0.pre.'
1521- )
1522- /// Deletes any existing test locale and returns to using the real locale.
1523- void clearLocaleTestValue () {
1524- platformDispatcher.clearLocaleTestValue ();
1525- }
15261510
15271511 @Deprecated (
15281512 'Use WidgetTester.platformDispatcher.locales instead. '
@@ -1531,22 +1515,6 @@ class TestWindow implements SingletonFlutterWindow {
15311515 )
15321516 @override
15331517 List <Locale > get locales => platformDispatcher.locales;
1534- /// Hides the real locales and reports the given [localesTestValue] instead.
1535- @Deprecated (
1536- 'Use WidgetTester.platformDispatcher.localesTestValue instead. '
1537- 'This feature was deprecated after v2.11.0-0.0.pre.'
1538- )
1539- set localesTestValue (List <Locale > localesTestValue) { // ignore: avoid_setters_without_getters
1540- platformDispatcher.localesTestValue = localesTestValue;
1541- }
1542- /// Deletes any existing test locales and returns to using the real locales.
1543- @Deprecated (
1544- 'Use WidgetTester.platformDispatcher.clearLocalesTestValue() instead. '
1545- 'This feature was deprecated after v2.11.0-0.0.pre.'
1546- )
1547- void clearLocalesTestValue () {
1548- platformDispatcher.clearLocalesTestValue ();
1549- }
15501518
15511519 @Deprecated (
15521520 'Use WidgetTester.platformDispatcher.onLocaleChanged instead. '
@@ -1572,14 +1540,6 @@ class TestWindow implements SingletonFlutterWindow {
15721540 )
15731541 @override
15741542 String get initialLifecycleState => platformDispatcher.initialLifecycleState;
1575- /// Sets a faked initialLifecycleState for testing.
1576- @Deprecated (
1577- 'Use WidgetTester.platformDispatcher.initialLifecycleStateTestValue instead. '
1578- 'This feature was deprecated after v2.11.0-0.0.pre.'
1579- )
1580- set initialLifecycleStateTestValue (String state) { // ignore: avoid_setters_without_getters
1581- platformDispatcher.initialLifecycleStateTestValue = state;
1582- }
15831543
15841544 @Deprecated (
15851545 'Use WidgetTester.platformDispatcher.textScaleFactor instead. '
@@ -1656,24 +1616,6 @@ class TestWindow implements SingletonFlutterWindow {
16561616 )
16571617 @override
16581618 bool get alwaysUse24HourFormat => platformDispatcher.alwaysUse24HourFormat;
1659- /// Hides the real clock format and reports the given
1660- /// [alwaysUse24HourFormatTestValue] instead.
1661- @Deprecated (
1662- 'Use WidgetTester.platformDispatcher.alwaysUse24HourFormatTestValue instead. '
1663- 'This feature was deprecated after v2.11.0-0.0.pre.'
1664- )
1665- set alwaysUse24HourFormatTestValue (bool alwaysUse24HourFormatTestValue) { // ignore: avoid_setters_without_getters
1666- platformDispatcher.alwaysUse24HourFormatTestValue = alwaysUse24HourFormatTestValue;
1667- }
1668- /// Deletes any existing test clock format and returns to using the real clock
1669- /// format.
1670- @Deprecated (
1671- 'Use WidgetTester.platformDispatcher.clearAlwaysUse24HourTestValue() instead. '
1672- 'This feature was deprecated after v2.11.0-0.0.pre.'
1673- )
1674- void clearAlwaysUse24HourTestValue () {
1675- platformDispatcher.clearAlwaysUse24HourTestValue ();
1676- }
16771619
16781620 @Deprecated (
16791621 'Use WidgetTester.platformDispatcher.onTextScaleFactorChanged instead. '
@@ -1715,15 +1657,6 @@ class TestWindow implements SingletonFlutterWindow {
17151657 )
17161658 @override
17171659 bool get brieflyShowPassword => platformDispatcher.brieflyShowPassword;
1718- /// Hides the real [brieflyShowPassword] and reports the given
1719- /// `brieflyShowPasswordTestValue` instead.
1720- @Deprecated (
1721- 'Use WidgetTester.platformDispatcher.brieflyShowPasswordTestValue instead. '
1722- 'This feature was deprecated after v2.11.0-0.0.pre.'
1723- )
1724- set brieflyShowPasswordTestValue (bool brieflyShowPasswordTestValue) { // ignore: avoid_setters_without_getters
1725- platformDispatcher.brieflyShowPasswordTestValue = brieflyShowPasswordTestValue;
1726- }
17271660
17281661 @Deprecated (
17291662 'Use WidgetTester.platformDispatcher.onBeginFrame instead. '
@@ -1800,24 +1733,6 @@ class TestWindow implements SingletonFlutterWindow {
18001733 )
18011734 @override
18021735 String get defaultRouteName => platformDispatcher.defaultRouteName;
1803- /// Hides the real default route name and reports the given
1804- /// [defaultRouteNameTestValue] instead.
1805- @Deprecated (
1806- 'Use WidgetTester.platformDispatcher.defaultRouteNameTestValue instead. '
1807- 'This feature was deprecated after v2.11.0-0.0.pre.'
1808- )
1809- set defaultRouteNameTestValue (String defaultRouteNameTestValue) { // ignore: avoid_setters_without_getters
1810- platformDispatcher.defaultRouteNameTestValue = defaultRouteNameTestValue;
1811- }
1812- /// Deletes any existing test default route name and returns to using the real
1813- /// default route name.
1814- @Deprecated (
1815- 'Use WidgetTester.platformDispatcher.clearDefaultRouteNameTestValue() instead. '
1816- 'This feature was deprecated after v2.11.0-0.0.pre.'
1817- )
1818- void clearDefaultRouteNameTestValue () {
1819- platformDispatcher.clearDefaultRouteNameTestValue ();
1820- }
18211736
18221737 @Deprecated (
18231738 'Use WidgetTester.platformDispatcher.scheduleFrame() instead. '
@@ -1846,24 +1761,6 @@ class TestWindow implements SingletonFlutterWindow {
18461761 )
18471762 @override
18481763 bool get semanticsEnabled => platformDispatcher.semanticsEnabled;
1849- /// Hides the real semantics enabled and reports the given
1850- /// [semanticsEnabledTestValue] instead.
1851- @Deprecated (
1852- 'Use WidgetTester.platformDispatcher.semanticsEnabledTestValue instead. '
1853- 'This feature was deprecated after v2.11.0-0.0.pre.'
1854- )
1855- set semanticsEnabledTestValue (bool semanticsEnabledTestValue) { // ignore: avoid_setters_without_getters
1856- platformDispatcher.semanticsEnabledTestValue = semanticsEnabledTestValue;
1857- }
1858- /// Deletes any existing test semantics enabled and returns to using the real
1859- /// semantics enabled.
1860- @Deprecated (
1861- 'Use WidgetTester.platformDispatcher.clearSemanticsEnabledTestValue() instead. '
1862- 'This feature was deprecated after v2.11.0-0.0.pre.'
1863- )
1864- void clearSemanticsEnabledTestValue () {
1865- platformDispatcher.clearSemanticsEnabledTestValue ();
1866- }
18671764
18681765 @Deprecated (
18691766 'Use WidgetTester.platformDispatcher.onSemanticsEnabledChanged instead. '
@@ -1889,27 +1786,6 @@ class TestWindow implements SingletonFlutterWindow {
18891786 )
18901787 @override
18911788 AccessibilityFeatures get accessibilityFeatures => platformDispatcher.accessibilityFeatures;
1892- /// Hides the real accessibility features and reports the given
1893- /// [accessibilityFeaturesTestValue] instead.
1894- ///
1895- /// Consider using [FakeAccessibilityFeatures] to provide specific
1896- /// values for the various accessibility features under test.
1897- @Deprecated (
1898- 'Use WidgetTester.platformDispatcher.accessibilityFeaturesTestValue instead. '
1899- 'This feature was deprecated after v2.11.0-0.0.pre.'
1900- )
1901- set accessibilityFeaturesTestValue (AccessibilityFeatures accessibilityFeaturesTestValue) { // ignore: avoid_setters_without_getters
1902- platformDispatcher.accessibilityFeaturesTestValue = accessibilityFeaturesTestValue;
1903- }
1904- /// Deletes any existing test accessibility features and returns to using the
1905- /// real accessibility features.
1906- @Deprecated (
1907- 'Use WidgetTester.platformDispatcher.clearAccessibilityFeaturesTestValue() instead. '
1908- 'This feature was deprecated after v2.11.0-0.0.pre.'
1909- )
1910- void clearAccessibilityFeaturesTestValue () {
1911- platformDispatcher.clearAccessibilityFeaturesTestValue ();
1912- }
19131789
19141790 @Deprecated (
19151791 'Use WidgetTester.platformDispatcher.onAccessibilityFeaturesChanged instead. '
@@ -1984,7 +1860,7 @@ class TestWindow implements SingletonFlutterWindow {
19841860 /// [PlatformDispatcher] values are reported again.
19851861 ///
19861862 /// If desired, clearing of properties can be done on an individual basis,
1987- /// e.g., [clearLocaleTestValue ] .
1863+ /// e.g., [clearDevicePixelRatioTestValue ] .
19881864 @Deprecated (
19891865 'Use WidgetTester.platformDispatcher.clearAllTestValues() and WidgetTester.view.reset() instead. '
19901866 'Deprecated to prepare for the upcoming multi-window support. '
0 commit comments