BUGFIX: A MDTest was conflicting with BBCode support for upper case
This commit is contained in:
parent
158487dfc2
commit
02ea67eece
|
@ -1,4 +1,4 @@
|
||||||
Just a [URL](/url/).
|
Just a [LINK](/url/).
|
||||||
|
|
||||||
[URL and title](/url/ "title").
|
[URL and title](/url/ "title").
|
||||||
|
|
||||||
|
|
|
@ -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>
|
<p><a href="/url/" title="title">URL and title</a>.</p>
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ module("MDTest", {
|
||||||
});
|
});
|
||||||
|
|
||||||
// This is cheating, but the trivial differences between sanitization
|
// This is cheating, but the trivial differences between sanitization
|
||||||
// do not affect formatting.
|
// do not affect formatting.
|
||||||
function normalize(str) {
|
function normalize(str) {
|
||||||
return str.replace(/\n\s*/g, '').
|
return str.replace(/\n\s*/g, '').
|
||||||
replace(/ \/\>/g, '/>').
|
replace(/ \/\>/g, '/>').
|
||||||
|
@ -33,7 +33,6 @@ test("first", function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
<%
|
<%
|
||||||
|
|
||||||
def mdtest_suite
|
def mdtest_suite
|
||||||
result = ""
|
result = ""
|
||||||
Dir.glob("#{Rails.root}/test/javascripts/mdtest/fixtures/*.text").each do |f|
|
Dir.glob("#{Rails.root}/test/javascripts/mdtest/fixtures/*.text").each do |f|
|
||||||
|
@ -47,7 +46,6 @@ test("first", function(){
|
||||||
end
|
end
|
||||||
result
|
result
|
||||||
end
|
end
|
||||||
|
|
||||||
%>
|
%>
|
||||||
|
|
||||||
<%= mdtest_suite %>
|
<%= mdtest_suite %>
|
||||||
|
|
Loading…
Reference in New Issue