Revert "Init licenses for test bindings (#81961)" (#82337)

This commit is contained in:
Jia Hao
2021-05-14 12:29:03 +08:00
committed by GitHub
parent 93c87e92b3
commit 08154b22ce
4 changed files with 7 additions and 65 deletions

View File

@@ -297,6 +297,13 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
_testTextInput = TestTextInput(onCleared: _resetFocusedEditable);
}
@override
// ignore: MUST_CALL_SUPER
void initLicenses() {
// Do not include any licenses, because we're a test, and the LICENSE file
// doesn't get generated for tests.
}
/// Whether there is currently a test executing.
bool get inTest;
@@ -898,13 +905,6 @@ class AutomatedTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding {
binding.mockFlutterAssets();
}
@override
// ignore: MUST_CALL_SUPER
void initLicenses() {
// Do not include any licenses, because we're a test, and the LICENSE file
// doesn't get generated for tests.
}
FakeAsync? _currentFakeAsync; // set in runTest; cleared in postTest
Completer<void>? _pendingAsyncTasks;

View File

@@ -209,10 +209,6 @@ void main() {
}
expect(result.exitCode, 0);
});
testWithoutContext('integration test can show the license page', () async {
return _testFile('license', automatedTestsDirectory, integrationTestDirectory, exitCode: isZero, extraArguments: integrationTestExtraArgs);
});
}
Future<void> _testFile(