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

Unified Diff: tests/html/scripts_test_js.js

Issue 705733003: Support dart and js scripts in HTML tests, on dartium. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove stray file Created 6 years, 1 month 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/html/scripts_test_js.js
diff --git a/pkg/docgen/test/multi_library_code/lib/root_lib.dart b/tests/html/scripts_test_js.js
similarity index 55%
copy from pkg/docgen/test/multi_library_code/lib/root_lib.dart
copy to tests/html/scripts_test_js.js
index 74423abfeba22b68b7561d308758df0fdd7d9e60..a495473707475333fe91c8e9633bfcde18daf6e4 100644
--- a/pkg/docgen/test/multi_library_code/lib/root_lib.dart
+++ b/tests/html/scripts_test_js.js
@@ -2,12 +2,10 @@
// 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 root_lib;
+window.postMessage('fish', '*');
-export 'test_lib.dart';
-export 'test_lib_foo.dart';
-export 'test_lib_bar.dart';
-
-class RootClass {
- RootClass(int a, int b);
+function delayed() {
+ parent.postMessage('cow', '*'); // Unexpected message OK.
ricow1 2014/11/05 10:59:54 why parent here and not window?
Bill Hesse 2014/11/05 12:51:51 WE want to test that sending to parent does not br
+ window.postMessage('crab', '*');
}
+setTimeout(delayed, 500);

Powered by Google App Engine
This is Rietveld 408576698