diff options
author | Thomas Fuchs <thomas@fesch.at> | 2005-10-01 05:43:53 +0000 |
---|---|---|
committer | Thomas Fuchs <thomas@fesch.at> | 2005-10-01 05:43:53 +0000 |
commit | e7afaf62bd9f6d3e7e7bf8b37d54d157ac6a3d6d (patch) | |
tree | 7e5d1717e1126dce29357cf8b351bbb24d1bca06 /actionpack/test/template | |
parent | 1e08d11579f0080f086a6bfea1693826a0c09c95 (diff) | |
download | rails-e7afaf62bd9f6d3e7e7bf8b37d54d157ac6a3d6d.tar.gz rails-e7afaf62bd9f6d3e7e7bf8b37d54d157ac6a3d6d.tar.bz2 rails-e7afaf62bd9f6d3e7e7bf8b37d54d157ac6a3d6d.zip |
Added new scriptaculous options for auto_complete_field #2343 [m.stienstra@fngtps.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2431 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/java_script_macros_helper_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/test/template/java_script_macros_helper_test.rb b/actionpack/test/template/java_script_macros_helper_test.rb index 9f1b6181c5..5f96d06861 100644 --- a/actionpack/test/template/java_script_macros_helper_test.rb +++ b/actionpack/test/template/java_script_macros_helper_test.rb @@ -29,6 +29,10 @@ class JavaScriptMacrosHelperTest < Test::Unit::TestCase auto_complete_field("some_input", :url => { :action => "autocomplete" }, :tokens => ','); assert_dom_equal %(<script type=\"text/javascript\">new Ajax.Autocompleter('some_input', 'some_input_auto_complete', 'http://www.example.com/autocomplete', {tokens:[',']})</script>), auto_complete_field("some_input", :url => { :action => "autocomplete" }, :tokens => [',']); + assert_dom_equal %(<script type=\"text/javascript\">new Ajax.Autocompleter('some_input', 'some_input_auto_complete', 'http://www.example.com/autocomplete', {min_chars:3})</script>), + auto_complete_field("some_input", :url => { :action => "autocomplete" }, :min_chars => 3); + assert_dom_equal %(<script type=\"text/javascript\">new Ajax.Autocompleter('some_input', 'some_input_auto_complete', 'http://www.example.com/autocomplete', {onHide:function(element, update){Alert('me');}})</script>), + auto_complete_field("some_input", :url => { :action => "autocomplete" }, :on_hide => "function(element, update){Alert('me');}"); end def test_auto_complete_result |