diff --git a/.travis.yml b/.travis.yml index be0de320..87a340d7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,8 @@ language: dart dart: + # We need 2.9.2 to verify the Chrome MemoryInfo workaround: https://github.com/cleandart/react-dart/pull/280 + # TODO remove the workaround as well as this config once SDK lower bound is >=2.9.3 - 2.9.2 - stable - dev @@ -14,7 +16,7 @@ cache: before_script: - dartanalyzer . - | - if [ "$TRAVIS_DART_VERSION" != "dev" ]; then + if [ "$TRAVIS_DART_VERSION" == "stable" ]; then dartfmt --line-length=120 --dry-run --set-exit-if-changed . fi - pub run dependency_validator -i build_runner,build_test,build_web_compilers diff --git a/test/lifecycle_test/util.dart b/test/lifecycle_test/util.dart index 068f67b9..d6d3d47d 100644 --- a/test/lifecycle_test/util.dart +++ b/test/lifecycle_test/util.dart @@ -40,7 +40,11 @@ mixin LifecycleTestHelper on Component { 'context': context, }); - var lifecycleCallback = props == null ? staticProps == null ? null : staticProps[memberName] : props[memberName]; + var lifecycleCallback = props == null + ? staticProps == null + ? null + : staticProps[memberName] + : props[memberName]; if (lifecycleCallback != null) { return Function.apply( lifecycleCallback,