Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(838)

Unified Diff: tests/lib/convert/html_escape_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 = '&lt;A &lt;&#47;test&gt; of \xA0 &quot;double&quot; '
- '&amp; &#39;single&#39; values&gt;';
+ '&amp; &#39;single&#39; values&gt;';
const _OUTPUT_ATTRIBUTE =
"&lt;A &lt;/test&gt; of \xA0 &quot;double&quot; &amp; 'single' values&gt;";
@@ -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);
}

Powered by Google App Engine
This is Rietveld 408576698