Index: tool/transformer_test.sh |
diff --git a/tool/transformer_test.sh b/tool/transformer_test.sh |
index e733f86ae657a39a5c3a5054c0de6492da0a1374..b25c6ca44c99d31e9016ffae73dd1798df2b6e80 100755 |
--- a/tool/transformer_test.sh |
+++ b/tool/transformer_test.sh |
@@ -1,14 +1,19 @@ |
#!/bin/bash |
set -eu |
-DIR=$(dirname "${BASH_SOURCE[0]}") |
+cd $( dirname "${BASH_SOURCE[0]}" )/.. |
-# TODO(ochafik): Run pub serve + launch a browser on |
-# http://localhost:8080/hello_app/web/ |
+export CHROME_CANARY_BIN=`./tool/get_chrome_canary.sh` |
+ |
+echo "*** Testing pub serve + DDC transformer" |
+pub run test --timeout 120s test/transformer_e2e_test.dart |
+ |
+echo "*** Testing pub build + DDC transformer" |
cd test/transformer/hello_app |
pub get |
pub build |
expected_files=( |
+ build/web/hello_app/web/index.html |
build/web/hello_app/web/main.js |
build/web/hello_dep/simple.js |
build/web/hello_dep/utils.js |