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

Unified Diff: test/codegen/lib/html/two_scripts_test_second.dart

Issue 1930043002: Add all dart:html tests from the sdk to test/codegen. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: ptal Created 4 years, 8 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
« no previous file with comments | « test/codegen/lib/html/two_scripts_test_first.dart ('k') | test/codegen/lib/html/typed_arrays_1_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « test/codegen/lib/html/two_scripts_test_first.dart ('k') | test/codegen/lib/html/typed_arrays_1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698