Skip to content

Commit

Permalink
Revert "Init licenses for test bindings (#81961)" (#82337)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiahaog committed May 14, 2021
1 parent 93c87e9 commit 08154b2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 65 deletions.

This file was deleted.

53 changes: 0 additions & 53 deletions dev/automated_tests/integration_test/license_test.dart

This file was deleted.

14 changes: 7 additions & 7 deletions packages/flutter_test/lib/src/binding.dart
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down
4 changes: 0 additions & 4 deletions packages/flutter_tools/test/integration.shard/test_test.dart
Expand Up @@ -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(
Expand Down

0 comments on commit 08154b2

Please sign in to comment.