blob: d3764ef457422cf07c27439d1e782df9135d275c [file] [log] [blame]
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// 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.
import 'package:analyzer/src/dart/error/syntactic_errors.dart';
import 'partial_code_support.dart';
main() {
new ImportDirectivesTest().buildAll();
}
class ImportDirectivesTest extends PartialCodeTest {
buildAll() {
buildTests(
'import_directive',
[
new TestDescriptor(
'keyword',
'import',
[/*ParserErrorCode.MISSING_URI,*/ ParserErrorCode.EXPECTED_TOKEN],
"import '';",
allFailing: true),
new TestDescriptor('emptyUri', "import ''",
[ParserErrorCode.EXPECTED_TOKEN], "import '';"),
new TestDescriptor('fullUri', "import 'a.dart'",
[ParserErrorCode.EXPECTED_TOKEN], "import 'a.dart';"),
],
PartialCodeTest.prePartSuffixes);
}
}