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

Unified Diff: examples/dart/hello_world/hello/lib/main.dart

Issue 1571823002: Dart: Adds tests of a couple Dart examples. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Restore analyze-dart Created 4 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 | « examples/dart/example_tests.py ('k') | examples/dart/hello_world/hello/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/dart/hello_world/hello/lib/main.dart
diff --git a/examples/dart/hello_world/hello/lib/main.dart b/examples/dart/hello_world/hello/lib/main.dart
index 0d572ccb4ead7caf493f11d4e155e7f71f5d0c4a..140f725fc3e54420ae28e833cc9c28ef3aafdc7c 100644
--- a/examples/dart/hello_world/hello/lib/main.dart
+++ b/examples/dart/hello_world/hello/lib/main.dart
@@ -18,9 +18,12 @@ class Hello extends Application {
void initialize(List<String> args, String url) {
print("$url Hello");
+ var worldUrl = url.replaceAll("hello", "world");
+ print("Connecting to $worldUrl");
+
// We expect to find the world mojo application at the same
// path as this application.
- var c = connectToApplication(url.replaceAll("hello", "world"));
+ var c = connectToApplication(worldUrl);
// A call to close() here would cause this app to go down before the "world"
// app has a chance to come up. Instead, we wait to close this app until
« no previous file with comments | « examples/dart/example_tests.py ('k') | examples/dart/hello_world/hello/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698