Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Unified Diff: third_party/pkg/update_angular.sh

Issue 112953006: Adding Shadow DOM polyfill to Angular tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/third_party/angular_tests/routing/routing_test.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « pkg/third_party/angular_tests/routing/routing_test.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698