[e2e] Version bump for v0.5.0 (#2807)
* Version bump for v0.5.0
diff --git a/packages/e2e/CHANGELOG.md b/packages/e2e/CHANGELOG.md
index 8798e96..725b648 100644
--- a/packages/e2e/CHANGELOG.md
+++ b/packages/e2e/CHANGELOG.md
@@ -1,3 +1,13 @@
+## 0.5.0
+
+* **Breaking change** by default, tests will use the device window size.
+ Tests can still override the window size by using the `setSurfaceSize` method.
+* **Breaking change** If using Flutter 1.19.0-2.0.pre.196 or greater, the
+ `testTextInput` will no longer automatically register.
+* **Breaking change** If using Flutter 1.19.0-2.0.pre.196 or greater, the
+ `HttpOverrides` will no longer be set by default.
+* Minor formatting changes to Dart code.
+
## 0.4.3+3
* Fixed code snippet in readme that referenced a non-existent `result` variable.
diff --git a/packages/e2e/lib/e2e.dart b/packages/e2e/lib/e2e.dart
index 0b0c45f..c2ddb2d 100644
--- a/packages/e2e/lib/e2e.dart
+++ b/packages/e2e/lib/e2e.dart
@@ -26,10 +26,14 @@
// `plugins.flutter.io/e2e`. Mark the tests as complete before invoking
// the channel.
if (kIsWeb) {
- if (!_allTestsPassed.isCompleted) _allTestsPassed.complete(true);
+ if (!_allTestsPassed.isCompleted) {
+ _allTestsPassed.complete(true);
+ }
}
await _channel.invokeMethod<void>(
- 'allTestsFinished', <String, dynamic>{'results': _results});
+ 'allTestsFinished',
+ <String, dynamic>{'results': _results},
+ );
} on MissingPluginException {
print('Warning: E2E test plugin was not detected.');
}
@@ -110,20 +114,30 @@
}
@override
- Future<void> runTest(Future<void> testBody(), VoidCallback invariantTester,
- {String description = '', Duration timeout}) async {
+ Future<void> runTest(
+ Future<void> testBody(),
+ VoidCallback invariantTester, {
+ String description = '',
+ Duration timeout,
+ }) async {
// TODO(jackson): Report the results individually instead of all at once
// See https://github.com/flutter/flutter/issues/38985
- final TestExceptionReporter valueBeforeTest = reportTestException;
+ final TestExceptionReporter oldTestExceptionReporter = reportTestException;
reportTestException =
(FlutterErrorDetails details, String testDescription) {
_results[description] = 'failed';
_failureMethodsDetails.add(Failure(testDescription, details.toString()));
- if (!_allTestsPassed.isCompleted) _allTestsPassed.complete(false);
- valueBeforeTest(details, testDescription);
+ if (!_allTestsPassed.isCompleted) {
+ _allTestsPassed.complete(false);
+ }
+ oldTestExceptionReporter(details, testDescription);
};
- await super.runTest(testBody, invariantTester,
- description: description, timeout: timeout);
+ await super.runTest(
+ testBody,
+ invariantTester,
+ description: description,
+ timeout: timeout,
+ );
_results[description] ??= 'success';
}
}
diff --git a/packages/e2e/pubspec.yaml b/packages/e2e/pubspec.yaml
index 355a2b9..82de42b 100644
--- a/packages/e2e/pubspec.yaml
+++ b/packages/e2e/pubspec.yaml
@@ -1,6 +1,6 @@
name: e2e
description: Runs tests that use the flutter_test API as integration tests.
-version: 0.4.3+3
+version: 0.5.0
homepage: https://github.com/flutter/plugins/tree/master/packages/e2e
environment: