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

Unified Diff: tests/standalone/src/CrashTest.dart

Issue 8440066: Add test_runner.dart to Dart version of test scripts. Include TestRunnerTest unit test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Skip TimeoutTest on dartium Created 9 years, 1 month 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 | « no previous file | tests/standalone/src/FailTest.dart » ('j') | tests/standalone/src/TestRunnerTest.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/CrashTest.dart
diff --git a/tests/standalone/src/CrashTest.dart b/tests/standalone/src/CrashTest.dart
new file mode 100644
index 0000000000000000000000000000000000000000..ac89618dd1d04ab15db09a8fe73a5ef22f0e6c72
--- /dev/null
+++ b/tests/standalone/src/CrashTest.dart
@@ -0,0 +1,23 @@
+// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
Mads Ager (google) 2011/11/04 09:06:13 I would prefer to find some other way of testing t
+// 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.
+
+
+// A test that crashes (for now).
Søren Gjesse 2011/11/04 09:05:34 Does this crash due to a VM bug? We have a binary
+interface Link<T> factory LinkFactory {
+ Link.fromInt(int x);
+}
+
+class MyLink<T> implements Link<T> {
+}
+
+class LinkFactory {
+ factory Link.fromInt(int x) {
+ return new MyLink();
+ }
+}
+
+main() {
+ print("This goes to stdout.");
+ var a = new Link<int>.fromInt(2);
+}
« no previous file with comments | « no previous file | tests/standalone/src/FailTest.dart » ('j') | tests/standalone/src/TestRunnerTest.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698