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

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

Issue 24339002: Escape slash since it helps to end an HTML entity. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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
« no previous file with comments | « sdk/lib/convert/html_escape.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 691547b7c011b948a51617aa6849f860e1c763ca..674c781eac4d49096b5354e1b6c23794b4d26274 100644
--- a/tests/lib/convert/html_escape_test.dart
+++ b/tests/lib/convert/html_escape_test.dart
@@ -8,15 +8,15 @@ import 'dart:convert';
const _NOOP = 'Nothing_to_escape';
-const _TEST_INPUT = '<A <test> of \u00A0 "double" & \'single\' values>';
+const _TEST_INPUT = '<A </test> of \u00A0 "double" & \'single\' values>';
-const _OUTPUT_UNKNOWN = '&lt;A &lt;test&gt; of &nbsp; &quot;double&quot; &amp; '
- '&apos;single&apos; values&gt;';
+const _OUTPUT_UNKNOWN = '&lt;A &lt;&#x2F;test&gt; of &nbsp; &quot;double&quot; &amp; '
+ '&#x27;single&#x27; values&gt;';
-const _OUTPUT_ATTRIBUTE = "<A <test> of &nbsp; &quot;double&quot; &amp; "
+const _OUTPUT_ATTRIBUTE = "<A </test> of &nbsp; &quot;double&quot; &amp; "
"\'single\' values>";
-const _OUTPUT_ELEMENT = '&lt;A &lt;test&gt; of &nbsp; "double" &amp; '
+const _OUTPUT_ELEMENT = '&lt;A &lt;&#x2F;test&gt; of &nbsp; "double" &amp; '
'\'single\' values&gt;';
void _testMode(HtmlEscape escape, String input, String expected) {
« no previous file with comments | « sdk/lib/convert/html_escape.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698