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

Unified Diff: dart/tests/try/web/print.js

Issue 645513002: Scaffolding for testing incremental compilation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix bad refactoring. Created 6 years, 2 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 | « dart/tests/try/web/incremental_compilation_update_test.dart ('k') | dart/tests/try/web/sandbox.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, '*');
}
« no previous file with comments | « dart/tests/try/web/incremental_compilation_update_test.dart ('k') | dart/tests/try/web/sandbox.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698