Revert "fix --force-upgrade script; upgrade to the latest package versions (#12700)" (#12729)

This reverts commit 5b3575006e.
This commit is contained in:
Yegor
2017-10-25 17:08:08 -07:00
committed by GitHub
parent 5b3575006e
commit 7f0d4f4caa
28 changed files with 391 additions and 628 deletions

View File

@@ -337,7 +337,7 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
String additional = '';
if (_currentTestDescription != '')
additional = '\nThe test description was: $_currentTestDescription';
test_package.registerException('Test failed. See exception logs above.$additional', _emptyStackTrace);
test_package.registerException('Test failed. See exception logs above.$additional', _EmptyStack.instance);
_pendingExceptionDetails = null;
}
_currentTestDescription = null;
@@ -1082,7 +1082,12 @@ class _LiveTestRenderView extends RenderView {
}
}
final StackTrace _emptyStackTrace = new stack_trace.Chain(const <stack_trace.Trace>[]);
class _EmptyStack implements StackTrace {
const _EmptyStack._();
static const _EmptyStack instance = const _EmptyStack._();
@override
String toString() => '';
}
StackTrace _unmangle(StackTrace stack) {
if (stack is stack_trace.Trace)