Index: test/codegen/lib/html/two_scripts_test_first.dart |
diff --git a/test/codegen/language/metadata_self_test.dart b/test/codegen/lib/html/two_scripts_test_first.dart |
similarity index 57% |
copy from test/codegen/language/metadata_self_test.dart |
copy to test/codegen/lib/html/two_scripts_test_first.dart |
index 434cc38a0a0c2cc3aa81953b34b4cbdb7cd8abee..1813aa5d91604c4d17887357930d66a2a291373b 100644 |
--- a/test/codegen/language/metadata_self_test.dart |
+++ b/test/codegen/lib/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', '*'); |
} |
main() { |
- Foo f = const Foo(); |
+ window.postMessage('first_local', '*'); |
+ aGlobalFunction(); |
} |