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

Unified Diff: tests/compiler/dart2js_native/fake_thing_test.dart

Issue 540263002: Make dart2js_native/fake_thing_test fail again. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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_native/dart2js_native.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_native/fake_thing_test.dart
diff --git a/tests/compiler/dart2js_native/fake_thing_test.dart b/tests/compiler/dart2js_native/fake_thing_test.dart
index aa3bb0f7a5adb5ed5f2db1a6972b04410f51eedf..20a84a24e8b90812569666af8e950711171d7645 100644
--- a/tests/compiler/dart2js_native/fake_thing_test.dart
+++ b/tests/compiler/dart2js_native/fake_thing_test.dart
@@ -7,6 +7,9 @@ import "package:expect/expect.dart";
// Test that native objects cannot accidentally or maliciously be mistaken for
// Dart objects.
+// This test currently fails because we do not recognize the need for
+// interceptors without native *classes*.
+
class Thing {
}
@@ -20,10 +23,16 @@ make1 = function(){return new A;};
make2 = function(){return {$isThing: true}};
""";
-var inscrutable;
+inscrutable(x) {
+ if (new DateTime.now().millisecondsSinceEpoch == 0) {
+ return x;
+ } else {
+ return 42;
+ }
+}
+
main() {
setup();
- inscrutable = (x) => x;
var a = new Thing();
var b = make1();
« no previous file with comments | « tests/compiler/dart2js_native/dart2js_native.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698