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

Unified Diff: sdk/lib/_internal/pub/test/deploy/copies_browser_js_next_to_entrypoints_test.dart

Issue 18399004: Make pub deploy copy over interop.js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 7 years, 5 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
Index: sdk/lib/_internal/pub/test/deploy/copies_browser_js_next_to_entrypoints_test.dart
diff --git a/sdk/lib/_internal/pub/test/deploy/copies_dart_js_next_to_entrypoints_test.dart b/sdk/lib/_internal/pub/test/deploy/copies_browser_js_next_to_entrypoints_test.dart
similarity index 68%
rename from sdk/lib/_internal/pub/test/deploy/copies_dart_js_next_to_entrypoints_test.dart
rename to sdk/lib/_internal/pub/test/deploy/copies_browser_js_next_to_entrypoints_test.dart
index 417233b4321e12910450c3f917312848a9bd145d..e6f007c57d3774797353c301e6c95623b2bc5b63 100644
--- a/sdk/lib/_internal/pub/test/deploy/copies_dart_js_next_to_entrypoints_test.dart
+++ b/sdk/lib/_internal/pub/test/deploy/copies_browser_js_next_to_entrypoints_test.dart
@@ -13,7 +13,7 @@ import '../test_pub.dart';
main() {
initConfig();
- integration("compiles dart.js next to entrypoints", () {
+ integration("compiles dart.js and interop.js next to entrypoints", () {
// Dart2js can take a long time to compile dart code, so we increase the
// timeout to cope with that.
currentSchedule.timeout *= 3;
@@ -40,7 +40,8 @@ main() {
d.tar('1.0.0.tar.gz', [
d.file('pubspec.yaml', yaml(packageMap("browser", "1.0.0"))),
d.dir('lib', [
- d.file('dart.js', 'contents of dart.js')
+ d.file('dart.js', 'contents of dart.js'),
+ d.file('interop.js', 'contents of interop.js')
])
])
])
@@ -63,13 +64,15 @@ main() {
schedulePub(args: ["deploy"],
output: '''
Finding entrypoints...
-Copying web| => deploy|
-Compiling web|file.dart => deploy|file.dart.js
-Compiling web|file.dart => deploy|file.dart
-Copying package:browser/dart.js => deploy|packages|browser|dart.js
-Compiling web|subdir|subfile.dart => deploy|subdir|subfile.dart.js
-Compiling web|subdir|subfile.dart => deploy|subdir|subfile.dart
-Copying package:browser/dart.js => deploy|subdir|packages|browser|dart.js
+Copying web| => deploy|
+Compiling web|file.dart => deploy|file.dart.js
+Compiling web|file.dart => deploy|file.dart
+Copying package:browser/dart.js => deploy|packages|browser|dart.js
+Copying package:browser/interop.js => deploy|packages|browser|interop.js
+Compiling web|subdir|subfile.dart => deploy|subdir|subfile.dart.js
+Compiling web|subdir|subfile.dart => deploy|subdir|subfile.dart
+Copying package:browser/dart.js => deploy|subdir|packages|browser|dart.js
+Copying package:browser/interop.js => deploy|subdir|packages|browser|interop.js
'''.replaceAll('|', path.separator),
exitCode: 0);
@@ -78,11 +81,13 @@ Copying package:browser/dart.js => deploy|subdir|packages|browser|dart.js
d.matcherFile('file.dart.js', isNot(isEmpty)),
d.matcherFile('file.dart', isNot(isEmpty)),
d.dir('packages', [d.dir('browser', [
- d.file('dart.js', 'contents of dart.js')
+ d.file('dart.js', 'contents of dart.js'),
+ d.file('interop.js', 'contents of interop.js')
])]),
d.dir('subdir', [
d.dir('packages', [d.dir('browser', [
- d.file('dart.js', 'contents of dart.js')
+ d.file('dart.js', 'contents of dart.js'),
+ d.file('interop.js', 'contents of interop.js')
])]),
d.matcherFile('subfile.dart.js', isNot(isEmpty)),
d.matcherFile('subfile.dart', isNot(isEmpty))

Powered by Google App Engine
This is Rietveld 408576698