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())); |
} |