Index: tests/lib/convert/html_escape_test.dart |
diff --git a/tests/lib/convert/html_escape_test.dart b/tests/lib/convert/html_escape_test.dart |
index a9d0b6717311672522a67558c21e47bb9004a2d3..190dc67f8b813a94667e1c4ec869aed353b2ce9d 100644 |
--- a/tests/lib/convert/html_escape_test.dart |
+++ b/tests/lib/convert/html_escape_test.dart |
@@ -11,7 +11,7 @@ const _NOOP = 'Nothing_to_escape'; |
const _TEST_INPUT = """<A </test> of \xA0 "double" & 'single' values>"""; |
const _OUTPUT_UNKNOWN = '<A </test> of \xA0 "double" ' |
- '& 'single' values>'; |
+ '& 'single' values>'; |
const _OUTPUT_ATTRIBUTE = |
"<A </test> of \xA0 "double" & 'single' values>"; |
@@ -62,12 +62,9 @@ void _testTransform(HtmlEscape escape, String input, String expected) { |
done = true; |
} |
- stream.listen( |
- stringData, |
- onDone: streamClosed); |
+ stream.listen(stringData, onDone: streamClosed); |
- |
- for(var i = 0; i < _COUNT; i++) { |
+ for (var i = 0; i < _COUNT; i++) { |
controller.add(input); |
} |
controller.close(); |
@@ -80,9 +77,13 @@ const _COUNT = 3; |
void main() { |
_testMode(HTML_ESCAPE, _TEST_INPUT, _OUTPUT_UNKNOWN); |
_testMode(const HtmlEscape(), _TEST_INPUT, _OUTPUT_UNKNOWN); |
- _testMode(const HtmlEscape(HtmlEscapeMode.UNKNOWN), _TEST_INPUT, _OUTPUT_UNKNOWN); |
- _testMode(const HtmlEscape(HtmlEscapeMode.ATTRIBUTE), _TEST_INPUT, _OUTPUT_ATTRIBUTE); |
- _testMode(const HtmlEscape(HtmlEscapeMode.SQ_ATTRIBUTE), _TEST_INPUT, _OUTPUT_SQ_ATTRIBUTE); |
- _testMode(const HtmlEscape(HtmlEscapeMode.ELEMENT), _TEST_INPUT, _OUTPUT_ELEMENT); |
+ _testMode( |
+ const HtmlEscape(HtmlEscapeMode.UNKNOWN), _TEST_INPUT, _OUTPUT_UNKNOWN); |
+ _testMode(const HtmlEscape(HtmlEscapeMode.ATTRIBUTE), _TEST_INPUT, |
+ _OUTPUT_ATTRIBUTE); |
+ _testMode(const HtmlEscape(HtmlEscapeMode.SQ_ATTRIBUTE), _TEST_INPUT, |
+ _OUTPUT_SQ_ATTRIBUTE); |
+ _testMode( |
+ const HtmlEscape(HtmlEscapeMode.ELEMENT), _TEST_INPUT, _OUTPUT_ELEMENT); |
_testMode(HTML_ESCAPE, _NOOP, _NOOP); |
} |