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

Unified Diff: tests/compiler/dart2js/kernel/impact_test.dart

Issue 2685673004: Handle Creates and Returns annotations in KernelBehaviorBuilder (Closed)
Patch Set: Updated cf. comment Created 3 years, 10 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 | « tests/compiler/dart2js/js_spec_string_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/kernel/impact_test.dart
diff --git a/tests/compiler/dart2js/kernel/impact_test.dart b/tests/compiler/dart2js/kernel/impact_test.dart
index b44c706ccb19fb2c36082e28666f0e113077b2c4..6c2e97f4f866ed7b1a9d9851944ae783b309c07b 100644
--- a/tests/compiler/dart2js/kernel/impact_test.dart
+++ b/tests/compiler/dart2js/kernel/impact_test.dart
@@ -33,6 +33,7 @@ const Map<String, String> SOURCE = const <String, String>{
'sdk/tests/compiler/dart2js_native/main.dart': r'''
import 'dart:_foreign_helper';
import 'dart:_js_helper';
+import 'dart:_interceptors';
import 'helper.dart';
import 'dart:html';
@@ -180,6 +181,8 @@ main() {
testDynamicPrivateMethodInvoke();
testJSCall();
testNativeMethod();
+ testNativeMethodCreates();
+ testNativeMethodReturns();
}
testEmpty() {}
@@ -609,6 +612,10 @@ testDynamicPrivateMethodInvoke([o]) => o._privateMethod();
testJSCall() => JS('int|bool', '#', null);
@JSName('foo')
testNativeMethod() native;
+@Creates('int|Null|JSArray')
+testNativeMethodCreates() native;
+@Returns('String|Null|JSArray')
+testNativeMethodReturns() native;
''',
'sdk/tests/compiler/dart2js_native/helper.dart': '''
class Class {
« no previous file with comments | « tests/compiler/dart2js/js_spec_string_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698