From 8dc4f4623354b65a639ac3c8981e1c362801d722 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 12 Feb 2006 20:10:59 +0000 Subject: Also support replace and replace_html and some refactoring in JavaScriptElementProxy [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3588 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/template/prototype_helper_test.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'actionpack/test') diff --git a/actionpack/test/template/prototype_helper_test.rb b/actionpack/test/template/prototype_helper_test.rb index 8657b1f107..6ce8380a69 100644 --- a/actionpack/test/template/prototype_helper_test.rb +++ b/actionpack/test/template/prototype_helper_test.rb @@ -237,6 +237,11 @@ Element.update("baz", "

This is a test

"); assert_equal %($('hello').hide();), @generator.to_s end + def test_element_proxy_assignment + @generator['hello'].assign :width, 400 + assert_equal %($('hello').width = 400;), @generator.to_s + end + def test_element_proxy_two_deep @generator['hello'].hide("first").display assert_equal %($('hello').hide("first").display();), @generator.to_s -- cgit v1.2.3