BUGFIX: A MDTest was conflicting with BBCode support for upper case

This commit is contained in:
Robin Ward 2014-03-03 13:14:11 -05:00
parent 158487dfc2
commit 02ea67eece
3 changed files with 3 additions and 5 deletions

View File

@ -1,4 +1,4 @@
Just a [URL](/url/).
Just a [LINK](/url/).
[URL and title](/url/ "title").

View File

@ -1,4 +1,4 @@
<p>Just a <a href="/url/">URL</a>.</p>
<p>Just a <a href="/url/">LINK</a>.</p>
<p><a href="/url/" title="title">URL and title</a>.</p>

View File

@ -5,7 +5,7 @@ module("MDTest", {
});
// This is cheating, but the trivial differences between sanitization
// do not affect formatting.
// do not affect formatting.
function normalize(str) {
return str.replace(/\n\s*/g, '').
replace(/ \/\>/g, '/>').
@ -33,7 +33,6 @@ test("first", function(){
});
<%
def mdtest_suite
result = ""
Dir.glob("#{Rails.root}/test/javascripts/mdtest/fixtures/*.text").each do |f|
@ -47,7 +46,6 @@ test("first", function(){
end
result
end
%>
<%= mdtest_suite %>