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

Unified Diff: tests/try/web/incremental_compilation_update.html

Issue 2232273004: Delete site/try (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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: tests/try/web/incremental_compilation_update.html
diff --git a/tests/try/web/incremental_compilation_update.html b/tests/try/web/incremental_compilation_update.html
deleted file mode 100644
index 61734d484e5dda88d6423d210b0b0f9a25418442..0000000000000000000000000000000000000000
--- a/tests/try/web/incremental_compilation_update.html
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<!-- Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
- -- 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.
- -->
-<html lang="en">
- <head>
- <title>incremental_compilation_update_test.html</title>
- <meta charset="UTF-8">
- </head>
- <body>
- <h1>incremental_compilation_update_test.html</h1>
- <pre id="console"></pre>
-<script type="application/javascript" src="print.js"></script>
-<script type="application/javascript">
-(function() {
- var dartMainClosure;
-
- /// Invoked by JavaScript code generated by dart2js when the program is ready
- /// to invoke main.
- self.dartMainRunner = function dartMainRunner(main) {
- dartMainClosure = main;
-
- // Invoke the "main" method of the Dart program.
- main();
-
- // Let the sandbox embedder know that main is done running.
- window.parent.postMessage('iframe-dart-main-done', '*');
- }
-
- /// Invoked when a 'message' event is received. Message events are generated
- /// with Window.postMessage and used to communicate between this iframe and
- /// its embedding parent page.
- function onMessage(e) {
- if (e.data[0] === 'add-script') {
- // Received a message on the form ['add-script', uri].
- // Install a new script tag with the uri.
- var script = document.createElement('script');
- script.src = e.data[1];
- script.type = 'application/javascript';
- document.body.appendChild(script);
- } else if (e.data[0] === 'apply-update') {
- self.$dart_unsafe_incremental_support.patch(e.data[1]);
-
- dartMainClosure();
-
- // Let the sandbox embedder know that main is done running.
- window.parent.postMessage('iframe-dart-updated-main-done', '*');
- } else {
- // Other messages are just logged.
- console.log(e);
- }
- }
- window.addEventListener('message', onMessage, false);
-
- // Let the sandbox embedder know that this iframe is ready, that is,
- // listening for messages.
- window.parent.postMessage('iframe-ready', '*');
-
-})();
-</script>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698