Skip to content

Instantly share code, notes, and snippets.

@brynary
Created December 4, 2008 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brynary/32110 to your computer and use it in GitHub Desktop.
Save brynary/32110 to your computer and use it in GitHub Desktop.
1) Failure:
test_should_allow_area_tag(SanitizeTest)
[./test/test_sanitizer.rb:12:in `check_sanitization'
./test/test_sanitizer.rb:48:in `test_should_allow_area_tag']:
<area title='1'>foo <bad>bar</bad> baz</area>.
<"<area title='1'/>foo &lt;bad&gt;bar&lt;/bad&gt; baz"> expected but was
<"<area title='1'/><p>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>">.
2) Failure:
test_should_allow_br_tag(SanitizeTest)
[./test/test_sanitizer.rb:12:in `check_sanitization'
./test/test_sanitizer.rb:48:in `test_should_allow_br_tag']:
<br title='1'>foo <bad>bar</bad> baz</br>.
<"<br title='1'/>foo &lt;bad&gt;bar&lt;/bad&gt; baz"> expected but was
<"<br title='1'/><p>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>">.
3) Failure:
test_should_allow_col_tag(SanitizeTest)
[./test/test_sanitizer.rb:12:in `check_sanitization'
./test/test_sanitizer.rb:48:in `test_should_allow_col_tag']:
<col title='1'>foo <bad>bar</bad> baz</col>.
<"<col title='1'/>foo &lt;bad&gt;bar&lt;/bad&gt; baz"> expected but was
<"<col title='1'/><p>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>">.
4) Failure:
test_should_allow_hr_tag(SanitizeTest)
[./test/test_sanitizer.rb:12:in `check_sanitization'
./test/test_sanitizer.rb:48:in `test_should_allow_hr_tag']:
<hr title='1'>foo <bad>bar</bad> baz</hr>.
<"<hr title='1'/>foo &lt;bad&gt;bar&lt;/bad&gt; baz"> expected but was
<"<hr title='1'/><p>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>">.
5) Failure:
test_should_allow_img_tag(SanitizeTest)
[./test/test_sanitizer.rb:12:in `check_sanitization'
./test/test_sanitizer.rb:48:in `test_should_allow_img_tag']:
<img title='1'>foo <bad>bar</bad> baz</img>.
<"<img title='1'/>foo &lt;bad&gt;bar&lt;/bad&gt; baz"> expected but was
<"<img title='1'/><p>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>">.
6) Failure:
test_should_allow_input_tag(SanitizeTest)
[./test/test_sanitizer.rb:12:in `check_sanitization'
./test/test_sanitizer.rb:48:in `test_should_allow_input_tag']:
<input title='1'>foo <bad>bar</bad> baz</input>.
<"<input title='1'/>foo &lt;bad&gt;bar&lt;/bad&gt; baz"> expected but was
<"<input title='1'/><p>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>">.
7) Failure:
test_should_allow_xlink:actuate_attribute(SanitizeTest)
[./test/test_sanitizer.rb:12:in `check_sanitization'
./test/test_sanitizer.rb:69:in `test_should_allow_xlink:actuate_attribute']:
<p xlink:actuate='foo'>foo <bad>bar</bad> baz</p>.
<"<p xlink:actuate='foo'>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>"> expected but was
<"<p>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>">.
8) Failure:
test_should_allow_xlink:arcrole_attribute(SanitizeTest)
[./test/test_sanitizer.rb:12:in `check_sanitization'
./test/test_sanitizer.rb:69:in `test_should_allow_xlink:arcrole_attribute']:
<p xlink:arcrole='foo'>foo <bad>bar</bad> baz</p>.
<"<p xlink:arcrole='foo'>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>"> expected but was
<"<p>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>">.
9) Failure:
test_should_allow_xlink:href_attribute(SanitizeTest)
[./test/test_sanitizer.rb:12:in `check_sanitization'
./test/test_sanitizer.rb:69:in `test_should_allow_xlink:href_attribute']:
<p xlink:href='foo'>foo <bad>bar</bad> baz</p>.
<"<p xlink:href='foo'>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>"> expected but was
<"<p href='foo'>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>">.
10) Failure:
test_should_allow_xlink:role_attribute(SanitizeTest)
[./test/test_sanitizer.rb:12:in `check_sanitization'
./test/test_sanitizer.rb:69:in `test_should_allow_xlink:role_attribute']:
<p xlink:role='foo'>foo <bad>bar</bad> baz</p>.
<"<p xlink:role='foo'>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>"> expected but was
<"<p>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>">.
11) Failure:
test_should_allow_xlink:show_attribute(SanitizeTest)
[./test/test_sanitizer.rb:12:in `check_sanitization'
./test/test_sanitizer.rb:69:in `test_should_allow_xlink:show_attribute']:
<p xlink:show='foo'>foo <bad>bar</bad> baz</p>.
<"<p xlink:show='foo'>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>"> expected but was
<"<p>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>">.
12) Failure:
test_should_allow_xlink:title_attribute(SanitizeTest)
[./test/test_sanitizer.rb:12:in `check_sanitization'
./test/test_sanitizer.rb:69:in `test_should_allow_xlink:title_attribute']:
<p xlink:title='foo'>foo <bad>bar</bad> baz</p>.
<"<p xlink:title='foo'>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>"> expected but was
<"<p title='foo'>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>">.
13) Failure:
test_should_allow_xlink:type_attribute(SanitizeTest)
[./test/test_sanitizer.rb:12:in `check_sanitization'
./test/test_sanitizer.rb:69:in `test_should_allow_xlink:type_attribute']:
<p xlink:type='foo'>foo <bad>bar</bad> baz</p>.
<"<p xlink:type='foo'>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>"> expected but was
<"<p type='foo'>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>">.
14) Failure:
test_should_allow_xml:base_attribute(SanitizeTest)
[./test/test_sanitizer.rb:12:in `check_sanitization'
./test/test_sanitizer.rb:69:in `test_should_allow_xml:base_attribute']:
<p xml:base='foo'>foo <bad>bar</bad> baz</p>.
<"<p xml:base='foo'>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>"> expected but was
<"<p>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>">.
15) Failure:
test_should_allow_xml:space_attribute(SanitizeTest)
[./test/test_sanitizer.rb:12:in `check_sanitization'
./test/test_sanitizer.rb:69:in `test_should_allow_xml:space_attribute']:
<p xml:space='foo'>foo <bad>bar</bad> baz</p>.
<"<p xml:space='foo'>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>"> expected but was
<"<p>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>">.
16) Failure:
test_should_allow_xmlns:xlink_attribute(SanitizeTest)
[./test/test_sanitizer.rb:12:in `check_sanitization'
./test/test_sanitizer.rb:69:in `test_should_allow_xmlns:xlink_attribute']:
<p xmlns:xlink='foo'>foo <bad>bar</bad> baz</p>.
<"<p xmlns:xlink='foo'>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>"> expected but was
<"<p>foo &lt;bad&gt;bar&lt;/bad&gt; baz</p>">.
17) Failure:
test_should_handle_astral_plane_characters(SanitizeTest)
[./test/test_sanitizer.rb:12:in `check_sanitization'
./test/test_sanitizer.rb:103:in `test_should_handle_astral_plane_characters']:
<p>&#x1d4b5; &#x1d538;</p>.
<"<p>\360\235\222\265 \360\235\224\270</p>"> expected but was
<"<p>&#x1D4B5; &#x1D538;</p>">.
410 tests, 414 assertions, 17 failures, 0 errors
rake aborted!
Command failed with status (1): [/System/Library/Frameworks/Ruby.framework/...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment