Defect #40193 » wiki_formatting_test.diff
test/unit/lib/redmine/wiki_formatting_test.rb | ||
---|---|---|
89 | 89 |
def test_cache_key_for_saved_object_should_no_be_nil |
90 | 90 |
assert_not_nil Redmine::WikiFormatting.cache_key_for('textile', 'Text', Issue.find(1), :description) |
91 | 91 |
end |
92 | ||
93 | ||
94 |
COMPLEX_INPUT = <<~DIFF |
|
95 |
/qEFUYVKNwHJWxx7by3QVjuTAngwvyMoksy6LT0nH0WTyaK+cO46r5IxiQk0nP3HH0ysumV954euVl0zs/i975E+Tf3Gx6546nT94E+uRl0Td/In3zs+lXMIkBBVlcnJ/BZcvHcnnhBK4omsRXiqby9aLpfLd4Dg8UzeMXa3J5bXMhq2pPU+5axPBlHGxTltj8L+6fQdrDP7G7/oesBld4svkBZscV2I6H7UhGvu7I9N2o7tComtSkNCpjCicbYxyri3LwTAN7y2vYUVbJjmPl7DlxmmPVdVTFEzTp+jlgejrNQlZpSukWKcNBMV00W2C4Mqh4LgfiP2/C7wNZztPG8wKmvQwiKIZ+DmCeAsqbFLYcqWTVtgMU7T/M6gMHKT50kLXHjrLp1Am2VlWyu76WA82NHGlu4HhLM5XxOPVJhVhSR1VMbM3FMwWO5cqSqrZzDkMjaOezGs5vn3cUFxeH+njBcS7YEBraAWrjl5bygvxxB7sVXV7YDlrCV8MGGlNxaf6HyoyObLaM8KpBrV0hHRDHEsRiiXOMI8OVhoEAHMvGcRQckph+RBJhIlQF23QQnlTzv+7aJxk2oVjmJ/qRY1dANGXKFBAhSLimNG4ccJNGyOQHD01PkHRS8uaekmBELJ5MTwgB2aMncUn/yzlTn5RUdUWgK3Y4GXQkihYYXMKV6Tf5C/fTo9P1VJ6U1ylzwRVSuhE6/gnFRdOk8+4KGSkOoqsO0JJwQ9HA1pQbxZDXFDNSPtIoqxEEeT1eYF350aXaumYZyXfSi8d0ZLrC26/s5rvXD5XpCy40NaWDPy74jIw4FrW4xGW+rwBQsR1ZzSSVNFqlUDgoWgrXg2hUAhFNjTHf04ep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omwAv3iiw3ccuNLaE6w6uCRs10jL/oCk0cu4Fyr6MCyD1YwdPhsklPB3CUuK4dDdJoNwNvvF/LoQxFYnGAyd4DSzLH0TCaMfpptUS5MCrRZBNPD7IQWiwOLCtfOepPq8yK1JCvjJH+6/1MUq0gXKCyqYNIfnqPaKEQ2Gxs1Ftz+No4WQIXs7EMMHvQwGXlgUMUsflenuKZOZZsZM/Q2duTW0IQuEumCCZP+g9X+R7AAXQosXLSGm2/5HLsmUho6z8OEQQtIKmikAyg6ZmTM0NsoyG7CYgCXsxs9PXvOyLgRzxAeVolFBpsKM2a8ydq1J2k2QJcDvvliN9de+QbNTWBshh/fTWLUgLs43FxLBy7ogu/fDGHWXV/RqJ/a9qYSsFqoPlRLr |
|
96 |
DIFF |
|
97 | ||
98 |
def test_should_not_take_more_than_1_second_to_format_a_long_text_without_email_address_at_the_end |
|
99 |
start_time = Time.now |
|
100 |
formatted_text = Redmine::WikiFormatting::NullFormatter::Formatter.new(COMPLEX_INPUT).to_html |
|
101 |
elapsed_time = Time.now - start_time |
|
102 | ||
103 |
assert !formatted_text.blank? |
|
104 |
assert_operator elapsed_time, :<, 1, "WikiFormatting took more than 1 second (#{elapsed_time} seconds)" |
|
105 |
end |
|
106 | ||
107 |
def test_should_not_take_more_than_1_second_to_format_a_long_text_with_email_address_at_the_end |
|
108 |
input = COMPLEX_INPUT + "test@example.com" |
|
109 | ||
110 |
start_time = Time.now |
|
111 |
formatted_text = Redmine::WikiFormatting::NullFormatter::Formatter.new(input).to_html |
|
112 |
elapsed_time = Time.now - start_time |
|
113 | ||
114 |
assert !formatted_text.blank? |
|
115 |
assert_operator elapsed_time, :<, 1, "WikiFormatting took more than 1 second (#{elapsed_time} seconds)" |
|
116 |
end |
|
117 | ||
92 | 118 |
end |