Index: dart/tests/try/web/print.js |
diff --git a/dart/pkg/analysis_server/bin/server.dart b/dart/tests/try/web/print.js |
similarity index 53% |
copy from dart/pkg/analysis_server/bin/server.dart |
copy to dart/tests/try/web/print.js |
index 84b770210ccd5e71efa2be786fe71b4b0b24097e..8f2bd5b341ea2a2661c8b95dd68cb3281bab6a64 100644 |
--- a/dart/pkg/analysis_server/bin/server.dart |
+++ b/dart/tests/try/web/print.js |
@@ -2,12 +2,9 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-import 'package:analysis_server/driver.dart'; |
- |
-/** |
- * Create and run an HTTP-based analysis server. |
- */ |
-void main(List<String> args) { |
- Driver driver = new Driver(); |
- driver.start(args); |
+/// Unless overridden by a Zone, [print] in dart:core will call this function |
+/// if defined. |
+function dartPrint(message) { |
+ console.log(message); |
+ window.parent.postMessage(message, '*'); |
} |