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

Unified Diff: test/codegen/lib/typed_data/native_interceptor_no_own_method_to_intercept_test.dart

Issue 1673863002: Infra for running lib tests (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Reformat Created 4 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
Index: test/codegen/lib/typed_data/native_interceptor_no_own_method_to_intercept_test.dart
diff --git a/test/codegen/language/call_function_apply_test.dart b/test/codegen/lib/typed_data/native_interceptor_no_own_method_to_intercept_test.dart
similarity index 50%
copy from test/codegen/language/call_function_apply_test.dart
copy to test/codegen/lib/typed_data/native_interceptor_no_own_method_to_intercept_test.dart
index 935cfaf832aff599478847534822d651a4ddcd51..4b5d31ceed6e83aa338bcf7ce481453939868569 100644
--- a/test/codegen/language/call_function_apply_test.dart
+++ b/test/codegen/lib/typed_data/native_interceptor_no_own_method_to_intercept_test.dart
@@ -3,13 +3,14 @@
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
+import 'dart:typed_data';
-class A {
- call({a: 42}) {
- return 499 + a;
- }
-}
+@NoInline()
+use(s) => s;
main() {
- Expect.equals(497, Function.apply(new A(), [], {#a: -2}));
+ // In dart2js ByteData should have an interceptor so that it doesn't end up
+ // as an unknown JS object.
+ // This test is just to make sure that dart2js doesn't crash.
+ use(new ByteData(1).toString());
}
« no previous file with comments | « test/codegen/lib/typed_data/int64_list_load_store_test.dart ('k') | test/codegen/lib/typed_data/setRange_1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698