Index: pkg/analyzer/test/src/task/html_test.dart |
diff --git a/pkg/analyzer/test/src/task/html_test.dart b/pkg/analyzer/test/src/task/html_test.dart |
index e3413b7a49c9b19f3cec6f6c50c9a146c3e7d929..89e49927f96a664e7fb817cc6bd61405d09318c2 100644 |
--- a/pkg/analyzer/test/src/task/html_test.dart |
+++ b/pkg/analyzer/test/src/task/html_test.dart |
@@ -11,10 +11,11 @@ import 'package:analyzer/task/model.dart'; |
import 'package:unittest/unittest.dart'; |
import '../../reflective_tests.dart'; |
+import '../../utils.dart'; |
import '../context/abstract_context.dart'; |
main() { |
- groupSep = ' | '; |
+ initializeTestEnvironment(); |
runReflectiveTests(DartScriptsTaskTest); |
runReflectiveTests(HtmlErrorsTaskTest); |
runReflectiveTests(ParseHtmlTaskTest); |
@@ -60,7 +61,9 @@ class DartScriptsTaskTest extends AbstractContextTest { |
String content = r''' |
void buttonPressed() {} |
'''; |
- AnalysisTarget target = newSource('/test.html', ''' |
+ AnalysisTarget target = newSource( |
+ '/test.html', |
+ ''' |
<!DOCTYPE html> |
<html> |
<head> |
@@ -80,7 +83,9 @@ class DartScriptsTaskTest extends AbstractContextTest { |
} |
void test_perform_empty_source_reference() { |
- AnalysisTarget target = newSource('/test.html', r''' |
+ AnalysisTarget target = newSource( |
+ '/test.html', |
+ r''' |
<!DOCTYPE html> |
<html> |
<head> |
@@ -96,7 +101,9 @@ class DartScriptsTaskTest extends AbstractContextTest { |
} |
void test_perform_invalid_source_reference() { |
- AnalysisTarget target = newSource('/test.html', r''' |
+ AnalysisTarget target = newSource( |
+ '/test.html', |
+ r''' |
<!DOCTYPE html> |
<html> |
<head> |
@@ -112,7 +119,9 @@ class DartScriptsTaskTest extends AbstractContextTest { |
} |
void test_perform_non_existing_source_reference() { |
- AnalysisTarget target = newSource('/test.html', r''' |
+ AnalysisTarget target = newSource( |
+ '/test.html', |
+ r''' |
<!DOCTYPE html> |
<html> |
<head> |
@@ -128,7 +137,9 @@ class DartScriptsTaskTest extends AbstractContextTest { |
} |
test_perform_none() { |
- AnalysisTarget target = newSource('/test.html', r''' |
+ AnalysisTarget target = newSource( |
+ '/test.html', |
+ r''' |
<!DOCTYPE html> |
<html> |
<head> |
@@ -146,7 +157,9 @@ class DartScriptsTaskTest extends AbstractContextTest { |
} |
void test_perform_referenced_source() { |
- AnalysisTarget target = newSource('/test.html', r''' |
+ AnalysisTarget target = newSource( |
+ '/test.html', |
+ r''' |
<!DOCTYPE html> |
<html> |
<head> |
@@ -168,10 +181,12 @@ class HtmlErrorsTaskTest extends AbstractContextTest { |
Source source = newSource('/test.html'); |
Map<String, TaskInput> inputs = HtmlErrorsTask.buildInputs(source); |
expect(inputs, isNotNull); |
- expect(inputs.keys, unorderedEquals([ |
- HtmlErrorsTask.DART_ERRORS_INPUT, |
- HtmlErrorsTask.DOCUMENT_ERRORS_INPUT |
- ])); |
+ expect( |
+ inputs.keys, |
+ unorderedEquals([ |
+ HtmlErrorsTask.DART_ERRORS_INPUT, |
+ HtmlErrorsTask.DOCUMENT_ERRORS_INPUT |
+ ])); |
} |
test_constructor() { |
@@ -202,7 +217,9 @@ class HtmlErrorsTaskTest extends AbstractContextTest { |
} |
test_perform_dartErrors() { |
- AnalysisTarget target = newSource('/test.html', r''' |
+ AnalysisTarget target = newSource( |
+ '/test.html', |
+ r''' |
<!DOCTYPE html> |
<html> |
<head> |
@@ -220,7 +237,9 @@ class HtmlErrorsTaskTest extends AbstractContextTest { |
} |
test_perform_htmlErrors() { |
- AnalysisTarget target = newSource('/test.html', r''' |
+ AnalysisTarget target = newSource( |
+ '/test.html', |
+ r''' |
<html> |
<head> |
<title>test page</title> |
@@ -236,7 +255,9 @@ class HtmlErrorsTaskTest extends AbstractContextTest { |
} |
test_perform_noErrors() { |
- AnalysisTarget target = newSource('/test.html', r''' |
+ AnalysisTarget target = newSource( |
+ '/test.html', |
+ r''' |
<!DOCTYPE html> |
<html> |
<head> |
@@ -290,7 +311,9 @@ class ParseHtmlTaskTest extends AbstractContextTest { |
} |
test_perform() { |
- AnalysisTarget target = newSource('/test.html', r''' |
+ AnalysisTarget target = newSource( |
+ '/test.html', |
+ r''' |
<!DOCTYPE html> |
<html> |
<head> |