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

Unified Diff: tests/compiler/dart2js/source_map_deferred_validator_test_file.dart

Issue 652723002: Add support for source maps in deferred libraries. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Guard against null-uris. 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
Index: tests/compiler/dart2js/source_map_deferred_validator_test_file.dart
diff --git a/samples/pop_pop_win/web/game_web.dart b/tests/compiler/dart2js/source_map_deferred_validator_test_file.dart
similarity index 53%
copy from samples/pop_pop_win/web/game_web.dart
copy to tests/compiler/dart2js/source_map_deferred_validator_test_file.dart
index fc287491ad5f29284f153db230883217a3e651c2..08ae57f57163543d59d72130fb48ceba1ffde023 100644
--- a/samples/pop_pop_win/web/game_web.dart
+++ b/tests/compiler/dart2js/source_map_deferred_validator_test_file.dart
@@ -1,11 +1,14 @@
// 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.
-library pop_pop_win.game_web;
-import 'platform_web.dart';
-import 'package:pop_pop_win/pop_pop_win.dart';
+import 'source_map_deferred_validator_test_lib.dart' deferred as def;
void main() {
- startGame(new PlatformWeb());
-}
+ def.loadLibrary().then((_) {
+ () {
+ var helloClass = new def.HelloClass();
+ helloClass.printHello();
+ }();
+ });
+}

Powered by Google App Engine
This is Rietveld 408576698