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 674c781eac4d49096b5354e1b6c23794b4d26274..787ae345269aff1473afa17a7849ebebe5a8b83e 100644 |
--- a/tests/lib/convert/html_escape_test.dart |
+++ b/tests/lib/convert/html_escape_test.dart |
@@ -8,16 +8,19 @@ import 'dart:convert'; |
const _NOOP = 'Nothing_to_escape'; |
-const _TEST_INPUT = '<A </test> of \u00A0 "double" & \'single\' values>'; |
+const _TEST_INPUT = """<A </test> of \xA0 "double" & 'single' values>"""; |
-const _OUTPUT_UNKNOWN = '<A </test> of "double" & ' |
- ''single' values>'; |
+const _OUTPUT_UNKNOWN = '<A </test> of \xA0 "double" & ' |
+ ''single' values>'; |
-const _OUTPUT_ATTRIBUTE = "<A </test> of "double" & " |
- "\'single\' values>"; |
+const _OUTPUT_ATTRIBUTE = |
+ "<A </test> of \xA0 "double" & 'single' values>"; |
-const _OUTPUT_ELEMENT = '<A </test> of "double" & ' |
- '\'single\' values>'; |
+const _OUTPUT_SQ_ATTRIBUTE = |
+ '<A </test> of \xA0 "double" & 'single' values>'; |
+ |
+const _OUTPUT_ELEMENT = |
+ """<A </test> of \xA0 "double" & 'single' values>"""; |
void _testMode(HtmlEscape escape, String input, String expected) { |
_testConvert(escape, input, expected); |
@@ -80,6 +83,7 @@ void main() { |
_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(HTML_ESCAPE, _NOOP, _NOOP); |
} |