diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-11 05:17:22 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-11 05:17:22 +0000 |
commit | 16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb (patch) | |
tree | 1e2b6e66d19e261efeceeb6937c605785527ee57 /actionpack/test/template | |
parent | 1911f8eee928915f1020753a4a3ba34c81131a66 (diff) | |
download | rails-16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb.tar.gz rails-16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb.tar.bz2 rails-16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb.zip |
Script.aculo.us: latest rev, new autocompleter features, memory leaks fixed #1695 [Thomas Fuchs]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1810 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/javascript_helper_test.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/actionpack/test/template/javascript_helper_test.rb b/actionpack/test/template/javascript_helper_test.rb index b98115b652..6cd690e268 100644 --- a/actionpack/test/template/javascript_helper_test.rb +++ b/actionpack/test/template/javascript_helper_test.rb @@ -74,7 +74,11 @@ class JavaScriptHelperTest < Test::Unit::TestCase def test_auto_complete_field assert_equal %(<script type=\"text/javascript\">new Ajax.Autocompleter('some_input', 'some_input_auto_complete', 'http://www.example.com/autocomplete', {})</script>), - auto_complete_field("some_input", :url => { :action => "autocomplete" }); + auto_complete_field("some_input", :url => { :action => "autocomplete" }); + assert_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_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 => [',']); end def test_auto_complete_result |