Set dart defines properly while in debug mode. (#152262)

Turns out just supporting the right value for `kDebugMode` was a lot simpler than I thought. Debug builds used to never go through the build system code path when using `flutter run`, but now that we have wasm this can occur with the run command.

This should address https://github.com/flutter/flutter/issues/148850
This commit is contained in:
Jackson Gardner
2024-07-25 15:00:50 -07:00
committed by GitHub
parent e08d26319c
commit 8f0e77696f
5 changed files with 94 additions and 9 deletions

View File

@@ -224,6 +224,8 @@ class WebTestsSuite {
'--dart-define=test.valueB=Value',
]
),
() => _runWebDebugTest('lib/assertion_test.dart'),
() => _runWebReleaseTest('lib/assertion_test.dart'),
() => _runWebDebugTest('lib/sound_mode.dart'),
() => _runWebReleaseTest('lib/sound_mode.dart'),
() => _runFlutterWebTest(