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:
6
engine/src/flutter/tests/raw/bogus_import-expected.txt
Normal file
6
engine/src/flutter/tests/raw/bogus_import-expected.txt
Normal 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
|
||||
10
engine/src/flutter/tests/raw/bogus_import.dart
Normal file
10
engine/src/flutter/tests/raw/bogus_import.dart
Normal 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)", () { });
|
||||
}
|
||||
Reference in New Issue
Block a user