Skip to content

Commit 5e47feb

Browse files
jiahaogEgor
authored andcommitted
[integration_test] Minor cleanup (flutter#2956)
- Doc typos - Unused Java variables
1 parent d996cf1 commit 5e47feb

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

packages/integration_test/android/src/main/java/dev/flutter/plugins/integration_test/IntegrationTestPlugin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public void onAttachedToEngine(FlutterPluginBinding binding) {
3737
onAttachedToEngine(binding.getApplicationContext(), binding.getBinaryMessenger());
3838
}
3939

40-
private void onAttachedToEngine(Context applicationContext, BinaryMessenger messenger) {
41-
methodChannel = new MethodChannel(messenger, "plugins.flutter.io/integration_test");
40+
private void onAttachedToEngine(Context unusedApplicationContext, BinaryMessenger messenger) {
41+
methodChannel = new MethodChannel(messenger, CHANNEL);
4242
methodChannel.setMethodCallHandler(this);
4343
}
4444

packages/integration_test/lib/common.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Response {
5353
}
5454
}
5555

56-
/// Method for formating the test failures' details.
56+
/// Method for formatting the test failures' details.
5757
String formatFailures(List<Failure> failureDetails) {
5858
if (failureDetails.isEmpty) {
5959
return '';

packages/integration_test/lib/integration_test_driver.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ import 'package:path/path.dart' as path;
1919
String testOutputsDirectory =
2020
Platform.environment['FLUTTER_TEST_OUTPUTS_DIR'] ?? 'build';
2121

22-
/// The callback type to handle [integration_test.Response.data] after the test succcess.
22+
/// The callback type to handle [integration_test.Response.data] after the test
23+
/// succeeds.
2324
typedef ResponseDataCallback = FutureOr<void> Function(Map<String, dynamic>);
2425

2526
/// Writes a json-serializable json data to to

0 commit comments

Comments
 (0)