Unverified Commit d875ebe2 authored by Mikkel Nygaard Ravn's avatar Mikkel Nygaard Ravn Committed by GitHub

Revert "Enable --sync-async in Flutter. (#17866)" (#17878)

This reverts commit 39d7f22a.
parent 39d7f22a
...@@ -43,10 +43,7 @@ Who lives, who dies, who tells your story\? ...@@ -43,10 +43,7 @@ Who lives, who dies, who tells your story\?
When the exception was thrown, this was the stack: When the exception was thrown, this was the stack:
#[0-9]+ +main.<anonymous closure> \(.+[/\\]dev[/\\]automated_tests[/\\]flutter_test[/\\]exception_handling_test\.dart:16:9\) #[0-9]+ +main.<anonymous closure> \(.+[/\\]dev[/\\]automated_tests[/\\]flutter_test[/\\]exception_handling_test\.dart:16:9\)
#[0-9]+ +.+ \(package:flutter_test[/\\]src[/\\]binding.dart:[0-9]+:[0-9]+\) #[0-9]+ +main.<anonymous closure> \(.+[/\\]dev[/\\]automated_tests[/\\]flutter_test[/\\]exception_handling_test\.dart:15:77\)
#[0-9]+ +.+ \(package:flutter_test[/\\]src[/\\]binding.dart:[0-9]+:[0-9]+\)
#[0-9]+ +.+ \(package:flutter_test[/\\]src[/\\]binding.dart:[0-9]+:[0-9]+\)
#[0-9]+ +.+ \(package:flutter_test[/\\]src[/\\]binding.dart:[0-9]+:[0-9]+\)
#[0-9]+ +.+ \(package:flutter_test[/\\]src[/\\]widget_tester\.dart:[0-9]+:[0-9]+\) #[0-9]+ +.+ \(package:flutter_test[/\\]src[/\\]widget_tester\.dart:[0-9]+:[0-9]+\)
<<skip until matching line>> <<skip until matching line>>
^\(elided [0-9]+ .+\)$ ^\(elided [0-9]+ .+\)$
......
...@@ -14,10 +14,7 @@ class TestTestBinding extends AutomatedTestWidgetsFlutterBinding { ...@@ -14,10 +14,7 @@ class TestTestBinding extends AutomatedTestWidgetsFlutterBinding {
Future<Null> guardedHelper(WidgetTester tester) { Future<Null> guardedHelper(WidgetTester tester) {
return TestAsyncUtils.guard(() async { return TestAsyncUtils.guard(() async {
await tester.pumpWidget(const Directionality( await tester.pumpWidget(const Text('Hello'));
textDirection: TextDirection.ltr,
child: const Text('Hello'),
));
}); });
} }
......
...@@ -767,12 +767,6 @@ class AutomatedTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding { ...@@ -767,12 +767,6 @@ class AutomatedTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding {
}); });
return new Future<Null>.microtask(() async { return new Future<Null>.microtask(() async {
// Run all queued microtasks.
await new Future<Null>.microtask(() {});
// When the test had an exception, the test-framework already
// ran the teardown functions, removing the _fakeAsync function.
if (_fakeAsync == null)
return null;
// Resolve interplay between fake async and real async calls. // Resolve interplay between fake async and real async calls.
_fakeAsync.flushMicrotasks(); _fakeAsync.flushMicrotasks();
while (_pendingAsyncTasks != null) { while (_pendingAsyncTasks != null) {
......
...@@ -120,7 +120,6 @@ class KernelCompiler { ...@@ -120,7 +120,6 @@ class KernelCompiler {
'--sdk-root', '--sdk-root',
sdkRoot, sdkRoot,
'--strong', '--strong',
'--sync-async',
'--target=flutter', '--target=flutter',
]; ];
if (trackWidgetCreation) if (trackWidgetCreation)
...@@ -253,7 +252,6 @@ class ResidentCompiler { ...@@ -253,7 +252,6 @@ class ResidentCompiler {
_sdkRoot, _sdkRoot,
'--incremental', '--incremental',
'--strong', '--strong',
'--sync-async',
'--target=flutter', '--target=flutter',
]; ];
if (outputPath != null) { if (outputPath != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment