Demonstrate that we don't crash on a bogus import

Fixes #167

R=ianh@google.com

Review URL: https://codereview.chromium.org/1193713002.
This commit is contained in:
Adam Barth
2015-06-18 12:13:31 -07:00
parent 64a2530c44
commit 694c57b76c
2 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
CONSOLE: unittest-suite-wait-for-done
CONSOLE: PASS: shouldn't crash on a bogus import (see line 1)
CONSOLE:
CONSOLE: All 1 tests passed.
CONSOLE: unittest-suite-success
DONE

View File

@@ -0,0 +1,10 @@
import 'dart:bogus';
import '../resources/third_party/unittest/unittest.dart';
import '../resources/unit.dart';
void main() {
initUnit();
test("shouldn't crash on a bogus import (see line 1)", () { });
}