Index: test/codegen/lib/html/two_scripts_test_second.dart |
diff --git a/test/codegen/language/metadata_self_test.dart b/test/codegen/lib/html/two_scripts_test_second.dart |
similarity index 56% |
copy from test/codegen/language/metadata_self_test.dart |
copy to test/codegen/lib/html/two_scripts_test_second.dart |
index 434cc38a0a0c2cc3aa81953b34b4cbdb7cd8abee..eab4493e38e67365dbfede4f9df5de3e846f00d0 100644 |
--- a/test/codegen/language/metadata_self_test.dart |
+++ b/test/codegen/lib/html/two_scripts_test_second.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 TwoScriptsTestSecond; |
+import 'dart:html'; |
-@Foo() |
-class Foo { |
- const Foo(); |
+aGlobalFunction() { |
+ window.postMessage('second_global', '*'); |
} |
main() { |
- Foo f = const Foo(); |
+ window.postMessage('second_local', '*'); |
+ aGlobalFunction(); |
} |