diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-09-10 00:53:13 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-09-10 00:53:13 +0000 |
commit | 2807ccc69a54805e3914bcc21716f9bafbebef39 (patch) | |
tree | e8f6a1863b6f59f710c7a97b04edebbba005a656 /actionpack/test/template | |
parent | ddf385a55445f22221d64c9ead43470e2c56af2e (diff) | |
download | rails-2807ccc69a54805e3914bcc21716f9bafbebef39.tar.gz rails-2807ccc69a54805e3914bcc21716f9bafbebef39.tar.bz2 rails-2807ccc69a54805e3914bcc21716f9bafbebef39.zip |
Moved ActionController::Macros::InPlaceEditing into the in_place_editor plugin on the official Rails svn (closes #9513) [lifofifo]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7442 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/java_script_macros_helper_test.rb | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/actionpack/test/template/java_script_macros_helper_test.rb b/actionpack/test/template/java_script_macros_helper_test.rb index 961f12cf32..bba851e9a6 100644 --- a/actionpack/test/template/java_script_macros_helper_test.rb +++ b/actionpack/test/template/java_script_macros_helper_test.rb @@ -64,48 +64,4 @@ class JavaScriptMacrosHelperTest < Test::Unit::TestCase text_field_with_auto_complete(:message, :recipient, {}, :skip_style => true) end - def test_in_place_editor_external_control - assert_dom_equal %(<script type=\"text/javascript\">\n//<![CDATA[\nnew Ajax.InPlaceEditor('some_input', 'http://www.example.com/inplace_edit', {externalControl:'blah'})\n//]]>\n</script>), - in_place_editor('some_input', {:url => {:action => 'inplace_edit'}, :external_control => 'blah'}) - end - - def test_in_place_editor_size - assert_dom_equal %(<script type=\"text/javascript\">\n//<![CDATA[\nnew Ajax.InPlaceEditor('some_input', 'http://www.example.com/inplace_edit', {size:4})\n//]]>\n</script>), - in_place_editor('some_input', {:url => {:action => 'inplace_edit'}, :size => 4}) - end - - def test_in_place_editor_cols_no_rows - assert_dom_equal %(<script type=\"text/javascript\">\n//<![CDATA[\nnew Ajax.InPlaceEditor('some_input', 'http://www.example.com/inplace_edit', {cols:4})\n//]]>\n</script>), - in_place_editor('some_input', {:url => {:action => 'inplace_edit'}, :cols => 4}) - end - - def test_in_place_editor_cols_with_rows - assert_dom_equal %(<script type=\"text/javascript\">\n//<![CDATA[\nnew Ajax.InPlaceEditor('some_input', 'http://www.example.com/inplace_edit', {cols:40, rows:5})\n//]]>\n</script>), - in_place_editor('some_input', {:url => {:action => 'inplace_edit'}, :rows => 5, :cols => 40}) - end - - def test_inplace_editor_loading_text - assert_dom_equal %(<script type=\"text/javascript\">\n//<![CDATA[\nnew Ajax.InPlaceEditor('some_input', 'http://www.example.com/inplace_edit', {loadingText:'Why are we waiting?'})\n//]]>\n</script>), - in_place_editor('some_input', {:url => {:action => 'inplace_edit'}, :loading_text => 'Why are we waiting?'}) - end - - def test_in_place_editor_url - assert_match "Ajax.InPlaceEditor('id-goes-here', 'http://www.example.com/action_to_set_value')", - in_place_editor( 'id-goes-here', :url => { :action => "action_to_set_value" }) - end - - def test_in_place_editor_load_text_url - assert_match "Ajax.InPlaceEditor('id-goes-here', 'http://www.example.com/action_to_set_value', {loadTextURL:'http://www.example.com/action_to_get_value'})", - in_place_editor( 'id-goes-here', - :url => { :action => "action_to_set_value" }, - :load_text_url => { :action => "action_to_get_value" }) - end - - def test_in_place_editor_eval_scripts - assert_match "Ajax.InPlaceEditor('id-goes-here', 'http://www.example.com/action_to_set_value', {evalScripts:true})", - in_place_editor( 'id-goes-here', - :url => { :action => "action_to_set_value" }, - :script => true ) - end - end |