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

Unified Diff: LayoutTests/dart/inspector/deferred-import.dart

Issue 1532413002: Added Dartium changes onto 45.0.2454.104 (Closed) Base URL: http://src.chromium.org/blink/branches/chromium/2454
Patch Set: Created 5 years 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 | « LayoutTests/dart/inspector/debugger-expected.txt ('k') | LayoutTests/dart/inspector/deferred-import.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/dart/inspector/deferred-import.dart
diff --git a/LayoutTests/dart/inspector/deferred-import.dart b/LayoutTests/dart/inspector/deferred-import.dart
new file mode 100644
index 0000000000000000000000000000000000000000..55970e67d165bf764c0814a3c1983888cb911f2d
--- /dev/null
+++ b/LayoutTests/dart/inspector/deferred-import.dart
@@ -0,0 +1,17 @@
+import 'dart:collection';
+import 'dart:html';
+import 'deferred-import-library.dart' deferred as deferred_import;
+
+main() {
+ window.onMessage.listen(handleMessage);
+}
+
+handleMessage(event) {
+ if (event.data == 'fromJS') {
+ deferred_import.loadLibrary().then((_) {
+ querySelector("#sample_text_id").text =
+ 'value = ${deferred_import.calculate()}';
+ window.postMessage('fromDart', '*');
+ });
+ }
+}
« no previous file with comments | « LayoutTests/dart/inspector/debugger-expected.txt ('k') | LayoutTests/dart/inspector/deferred-import.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698