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

Unified Diff: tests/html/two_scripts_test_first.dart

Issue 732533002: Add HTML test with two dart scripts on one page. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « tests/html/two_scripts_htmltest.html ('k') | tests/html/two_scripts_test_second.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/two_scripts_test_first.dart
diff --git a/tests/language/metadata_self_test.dart b/tests/html/two_scripts_test_first.dart
similarity index 57%
copy from tests/language/metadata_self_test.dart
copy to tests/html/two_scripts_test_first.dart
index 434cc38a0a0c2cc3aa81953b34b4cbdb7cd8abee..1813aa5d91604c4d17887357930d66a2a291373b 100644
--- a/tests/language/metadata_self_test.dart
+++ b/tests/html/two_scripts_test_first.dart
@@ -2,13 +2,14 @@
// 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.
-// Test that metadata refer to the annotated declaration.
+library TwoScriptsTestFirst;
+import 'dart:html';
-@Foo()
-class Foo {
- const Foo();
+aGlobalFunction() {
+ window.postMessage('first_global', '*');
sigurdm 2014/11/18 08:19:55 Why do we have a "local" and a "global" message? W
Bill Hesse 2014/11/18 09:16:47 I just made this up. I tried to think of somethin
}
main() {
- Foo f = const Foo();
+ window.postMessage('first_local', '*');
+ aGlobalFunction();
}
« no previous file with comments | « tests/html/two_scripts_htmltest.html ('k') | tests/html/two_scripts_test_second.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698