fix(ci): replace unused main.dart test wrappers with the public root shell
The unused-code gate flags debugSetCrashReporterReady (referenced nowhere) and the formFactorScaleForTesting/rootShellForTesting wrappers (referenced only from tests, which the lib-scoped check cannot see). Delete the dead setter and let the car-scale test build the real rootShell and FormFactorScale directly.
This commit is contained in:
@@ -43,7 +43,7 @@ void main() {
|
||||
child: MaterialApp(
|
||||
theme: ThemeData(extensions: const [testMonoTokens]),
|
||||
home: const SizedBox.expand(),
|
||||
builder: (context, child) => app.rootShellForTesting(child: child),
|
||||
builder: (context, child) => app.rootShell(child),
|
||||
),
|
||||
),
|
||||
);
|
||||
@@ -142,7 +142,7 @@ Future<void> _pumpScaleHarness(WidgetTester tester, {required ValueChanged<Media
|
||||
TranslationProvider(
|
||||
child: MaterialApp(
|
||||
theme: ThemeData(extensions: const [testMonoTokens]),
|
||||
home: app.formFactorScaleForTesting(
|
||||
home: app.FormFactorScale(
|
||||
child: Builder(
|
||||
builder: (context) {
|
||||
onMediaQuery(MediaQuery.of(context));
|
||||
|
||||
Reference in New Issue
Block a user