diff --git a/engine/src/flutter/tests/raw/bogus_import-expected.txt b/engine/src/flutter/tests/raw/bogus_import-expected.txt new file mode 100644 index 0000000000..5b455fee02 --- /dev/null +++ b/engine/src/flutter/tests/raw/bogus_import-expected.txt @@ -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 diff --git a/engine/src/flutter/tests/raw/bogus_import.dart b/engine/src/flutter/tests/raw/bogus_import.dart new file mode 100644 index 0000000000..607598f03c --- /dev/null +++ b/engine/src/flutter/tests/raw/bogus_import.dart @@ -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)", () { }); +}