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

Unified Diff: tests/kernel/unsorted/this_test.dart

Issue 2451623006: Reland "Merge more Kernel infrastructure from kernel_sdk SDK fork." (Closed)
Patch Set: Fix Created 4 years, 2 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/kernel/unsorted/this_capture_test.dart ('k') | tests/kernel/unsorted/throw_try_catch_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/kernel/unsorted/this_test.dart
diff --git a/tests/html/js_dispatch_property_test_lib.dart b/tests/kernel/unsorted/this_test.dart
similarity index 60%
copy from tests/html/js_dispatch_property_test_lib.dart
copy to tests/kernel/unsorted/this_test.dart
index 77e371cf389debdb006e2568d6676d2a68fad97b..06a0ce61f172555ebfa49182e217e029e0c47ee3 100644
--- a/tests/html/js_dispatch_property_test_lib.dart
+++ b/tests/kernel/unsorted/this_test.dart
@@ -2,15 +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.
-@JS()
-library js_dispatch_property_test_lib;
+import 'expect.dart';
-import 'package:js/js.dart';
-
-@JS()
-external A create();
-
-@JS() @anonymous
class A {
- external String foo(String x);
+ getThis() => this;
+}
+
+main() {
+ var a = new A();
+ Expect.isTrue(a == a.getThis());
+ Expect.isTrue(identical(a, a.getThis()));
}
« no previous file with comments | « tests/kernel/unsorted/this_capture_test.dart ('k') | tests/kernel/unsorted/throw_try_catch_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698