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

Unified Diff: test/build/script_compactor_test.dart

Issue 1012143007: script compactor now names its bootstrap file based off the html entrypoint, not the dart file (Closed) Base URL: git@github.com:dart-lang/web-components.git@master
Patch Set: Created 5 years, 9 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 | « pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/build/script_compactor_test.dart
diff --git a/test/build/script_compactor_test.dart b/test/build/script_compactor_test.dart
index 22408db573db3a2ad9c344010ae312efb09bcc67..b182c3101fba27c379f3c4f8fbe1b728eb30f839 100644
--- a/test/build/script_compactor_test.dart
+++ b/test/build/script_compactor_test.dart
@@ -120,7 +120,7 @@ void basicTests() {
<link rel="import" href="packages/a/foo.html">
</head>
<body>
- <script type="application/dart" src="index.html.1.bootstrap.dart"></script>
+ <script type="application/dart" src="index.bootstrap.dart"></script>
</body>
</html>''',
'a|web/index.html.1.dart': '''
@@ -130,8 +130,8 @@ void basicTests() {
library a.foo;
import 'package:a/bar.dart';''',
- 'a|web/index.html.1.bootstrap.dart': '''
- library a.web.index_html_1_bootstrap_dart;
+ 'a|web/index.bootstrap.dart': '''
+ library a.web.index_bootstrap_dart;
import 'index.html.0.dart' as i0;
import 'index.html.1.dart' as i1;
@@ -190,14 +190,14 @@ void codeExtractorTests() {
}, {
'a|web/test.html': '''
<!DOCTYPE html><html><head>
- <script type="application/dart" src="test.html.0.bootstrap.dart">
+ <script type="application/dart" src="test.bootstrap.dart">
</script>
</head><body></body></html>''',
'a|web/test.html.0.dart': '''
library a.web.test_html_0;
main() { }''',
- 'a|web/test.html.0.bootstrap.dart': '''
- library a.web.test_html_0_bootstrap_dart;
+ 'a|web/test.bootstrap.dart': '''
+ library a.web.test_bootstrap_dart;
import 'test.html.0.dart' as i0;
@@ -214,14 +214,14 @@ void codeExtractorTests() {
}, {
'a|web/test.html': '''
<!DOCTYPE html><html><head>
- <script type="application/dart" src="test.html.0.bootstrap.dart">
+ <script type="application/dart" src="test.bootstrap.dart">
</script>
</head><body></body></html>''',
'a|web/test.html.0.dart': '''
library f;
main() { }''',
- 'a|web/test.html.0.bootstrap.dart': '''
- library a.web.test_html_0_bootstrap_dart;
+ 'a|web/test.bootstrap.dart': '''
+ library a.web.test_bootstrap_dart;
import 'test.html.0.dart' as i0;
@@ -336,7 +336,7 @@ dartUriTests() {
part 'test2/baz.dart';''',
'a|web/test2/foo.html': '''
<!DOCTYPE html><html><head></head><body>
- <script type="application/dart" src="foo.html.0.bootstrap.dart">
+ <script type="application/dart" src="foo.bootstrap.dart">
</script>
</body></html>''',
'a|web/test2/foo.html.0.dart': '''
« no previous file with comments | « pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698