Chromium Code Reviews| Index: third_party/pkg/update_angular.sh |
| diff --git a/third_party/pkg/update_angular.sh b/third_party/pkg/update_angular.sh |
| index 88dad3a7c12d73b0c10aef92892aeffad7f0b096..97a3f3a260181b91abd08c53c8a22293ab2dc487 100755 |
| --- a/third_party/pkg/update_angular.sh |
| +++ b/third_party/pkg/update_angular.sh |
| @@ -39,8 +39,9 @@ generate_test_files() { |
| generate_browser_test() { |
| local import_file=$1 |
| local out_file=$2 |
| + local test_name="$(basename $out_file)" |
| - cat << END_TEMPLATE > ${out_file} |
| + cat << END_DART_TEMPLATE > ${out_file} |
| /// auto-generated by generate_angular_tests.sh |
| // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| @@ -64,7 +65,34 @@ main() { |
| test_lib.main(); |
| } |
| -END_TEMPLATE |
| +END_DART_TEMPLATE |
| + |
| + cat << END_HTML_TEMPLATE > "${out_file%.dart}.html" |
| +<!DOCTYPE html> |
| +<html> |
| +<head> |
| + <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| + <meta name="dart.unittest" content="full-stack-traces"> |
| + <title> ${test_name} </title> |
| + <style> |
| + .unittest-table { font-family:monospace; border:1px; } |
| + .unittest-pass { background: #6b3;} |
| + .unittest-fail { background: #d55;} |
| + .unittest-error { background: #a11;} |
| + </style> |
| + <script src="/packages/shadow_dom/shadow_dom.debug.js"></script> |
|
Siggi Cherem (dart-lang)
2014/01/07 00:33:24
I thought this had to be without '/'? (same in the
blois
2014/01/07 00:42:42
The test server handles /packages specially.
|
| +</head> |
| +<body> |
| + <h1> Running ${test_name} </h1> |
| + <script type="text/javascript" |
| + src="/packages/unittest/test_controller.js"></script> |
| + <script type="text/javascript" |
| + src="/packages/browser/interop.js"></script> |
| + %TEST_SCRIPTS% |
| +</body> |
| +</html> |
| + |
| +END_HTML_TEMPLATE |
| } |
| generate_vm_test() { |