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").
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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 %>
|
||||
|
|
Loading…
Reference in New Issue