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

* fix updrade script; upgrade to the latest package versions

* exclude special dependencies from transitive closure

* fix stack trace handling in flutter_test due to stack_trace change

* change type on _emptyStackTrace
This commit is contained in:
Yegor
2017-10-25 16:12:43 -07:00
committed by GitHub
parent aff731c0a6
commit 5b3575006e
28 changed files with 628 additions and 391 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', _EmptyStack.instance);
test_package.registerException('Test failed. See exception logs above.$additional', _emptyStackTrace);
_pendingExceptionDetails = null;
}
_currentTestDescription = null;
@@ -1082,12 +1082,7 @@ class _LiveTestRenderView extends RenderView {
}
}
class _EmptyStack implements StackTrace {
const _EmptyStack._();
static const _EmptyStack instance = const _EmptyStack._();
@override
String toString() => '';
}
final StackTrace _emptyStackTrace = new stack_trace.Chain(const <stack_trace.Trace>[]);
StackTrace _unmangle(StackTrace stack) {
if (stack is stack_trace.Trace)