diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2019-06-20 16:46:10 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2019-06-20 16:46:10 +0000 |
commit | 1cc269967ab96746f506e05abf95d63407b63bc4 (patch) | |
tree | 216a9bb7495a84b6cbbd268ff4c38c2e7fc3c0c7 /test/helpers | |
parent | a59e33acefa18b513233c0305afff9394c3169d9 (diff) | |
download | redmine-1cc269967ab96746f506e05abf95d63407b63bc4.tar.gz redmine-1cc269967ab96746f506e05abf95d63407b63bc4.zip |
Add a randomized name attribute to all form fields (#26604).
This is a workaround for a Bug in Firefox described at
https://bugzilla.mozilla.org/show_bug.cgi?id=1279253
Patch by Holger Just.
git-svn-id: http://svn.redmine.org/redmine/trunk@18306 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/helpers')
-rw-r--r-- | test/helpers/application_helper_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index f46720120..9abf47fa7 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -1807,6 +1807,15 @@ RAW assert_equal '<span class="hours hours-int">0</span><span class="hours hours-dec">.75</span>', html_hours('0.75') end + def test_form_for_includes_name_attribute + assert_match(/name="new_issue-[a-z0-9]{8}"/, form_for(Issue.new){}) + end + + def test_labelled_form_for_includes_name_attribute + assert_match(/name="new_issue-[a-z0-9]{8}"/, labelled_form_for(Issue.new){}) + end + + private def wiki_links_with_special_characters |