Only do cleanup on match() in certain cases.
This commit is contained in:
parent
be67a3f58a
commit
c1d700c82e
2 changed files with 10 additions and 6 deletions
|
@ -43,8 +43,9 @@ class AACBasicRichtextTest < TestCase
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
match(
|
match(
|
||||||
:css => '#content .text-3',
|
:css => '#content .text-3',
|
||||||
:value => "some test for browser\nand some other for browser",
|
:value => "some test for browser\nand some other for browser",
|
||||||
|
:cleanup => true,
|
||||||
)
|
)
|
||||||
|
|
||||||
# richtext multi line
|
# richtext multi line
|
||||||
|
@ -59,8 +60,9 @@ class AACBasicRichtextTest < TestCase
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
match(
|
match(
|
||||||
:css => '#content .text-5',
|
:css => '#content .text-5',
|
||||||
:value => "some test for browser\nand some other for browser2",
|
:value => "some test for browser\nand some other for browser2",
|
||||||
|
:cleanup => true,
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
|
@ -467,8 +467,10 @@ class TestCase < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
# do cleanups (needed for richtext tests)
|
# do cleanups (needed for richtext tests)
|
||||||
text.gsub!(/\s+$/m, '')
|
if params[:cleanup]
|
||||||
params[:value].gsub!(/\s+$/m, '')
|
text.gsub!(/\s+$/m, '')
|
||||||
|
params[:value].gsub!(/\s+$/m, '')
|
||||||
|
end
|
||||||
|
|
||||||
match = false
|
match = false
|
||||||
if params[:no_quote]
|
if params[:no_quote]
|
||||||
|
|
Loading…
Reference in a new issue