Skip to content
Permalink
Browse files

Fix off-by-one error in https://code.google.com/p/dart/source/detail?…

  • Loading branch information...
dgrove committed Apr 15, 2015
1 parent 6467b43 commit 3c39ad2ec40604026696cebc2677da39193ed5e7
@@ -39,7 +39,7 @@ main() {
expect(response.statusCode, equals(404));

// Should mention the asset that can't be found.
expect(response.body, contains('".packages"'));
expect(response.body, contains('"/packages"'));
});

endPubServe();
@@ -182,7 +182,7 @@ class HtmlEscape extends Converter<String, String> {
case "'": if (mode.escapeApos) replacement = '&#39;'; break;
case '<': if (mode.escapeLtGt) replacement = '&lt;'; break;
case '>': if (mode.escapeLtGt) replacement = '&gt;'; break;
case '/': if (mode.escapeSlash) replacement = '&#46;'; break;
case '/': if (mode.escapeSlash) replacement = '&#47;'; break;
}
if (replacement != null) {
if (result == null) result = new StringBuffer();
@@ -10,7 +10,7 @@ const _NOOP = 'Nothing_to_escape';

const _TEST_INPUT = """<A </test> of \xA0 "double" & 'single' values>""";

const _OUTPUT_UNKNOWN = '&lt;A &lt;&#46;test&gt; of \xA0 &quot;double&quot; '
const _OUTPUT_UNKNOWN = '&lt;A &lt;&#47;test&gt; of \xA0 &quot;double&quot; '
'&amp; &#39;single&#39; values&gt;';

const _OUTPUT_ATTRIBUTE =

0 comments on commit 3c39ad2

Please sign in to comment.
You can’t perform that action at this time.