Add a test to stocks for changing the locale
I had to add a setLocale method to WidgetTester and split the code in FlutterBinding which handled locale changes to allow me to dispatch a locale change w/o actually changing what the c++ code reports as the locale. Also added the test to Travis. @abarth @jason-simmons
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
export PATH="$PWD/bin:$PATH"
|
||||
|
||||
# analyze all the Dart code in the repo
|
||||
./bin/flutter analyze --flutter-repo --no-current-directory --no-current-package --congratulate
|
||||
flutter analyze --flutter-repo --no-current-directory --no-current-package --congratulate
|
||||
|
||||
# flutter package tests
|
||||
./bin/flutter test --flutter-repo
|
||||
flutter test --flutter-repo
|
||||
|
||||
(cd packages/cassowary; pub run test -j1)
|
||||
# (cd packages/flutter_sprites; ) # No tests to run.
|
||||
@@ -15,6 +17,8 @@ set -ex
|
||||
# (cd packages/playfair; ) # No tests to run.
|
||||
# (cd packages/updater; ) # No tests to run.
|
||||
|
||||
(cd examples/stocks; flutter test)
|
||||
|
||||
if [ $TRAVIS_PULL_REQUEST = "false" ]; then
|
||||
if [ $TRAVIS_BRANCH = "master" ]; then
|
||||
(cd packages/flutter; dartdoc)
|
||||
|
||||
Reference in New Issue
Block a user