From b3c65bc8490b072a0d314aa3858c680fc6d67e35 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Fri, 18 Nov 2005 18:03:45 +0000 Subject: Use Element.update('id', 'html') instead of uid=501(sam) gid=501(sam) groups=501(sam), 81(appserveradm), 79(appserverusr), 80(admin).innerHTML = 'html' in JavaScriptGenerator#replace_html so that script tags are evaluated git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3086 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/template/prototype_helper_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/test/template/prototype_helper_test.rb') diff --git a/actionpack/test/template/prototype_helper_test.rb b/actionpack/test/template/prototype_helper_test.rb index c97aca5e79..c15280dcb3 100644 --- a/actionpack/test/template/prototype_helper_test.rb +++ b/actionpack/test/template/prototype_helper_test.rb @@ -167,7 +167,7 @@ class JavaScriptGeneratorTest < Test::Unit::TestCase end def test_replace_html_with_string - assert_equal '$("element").innerHTML = "

This is a test

";', + assert_equal 'Element.update("element", "

This is a test

");', @generator.replace_html('element', '

This is a test

') end @@ -202,7 +202,7 @@ class JavaScriptGeneratorTest < Test::Unit::TestCase new Insertion.Top("element", "

This is a test

"); new Insertion.Bottom("element", "

This is a test

"); ["foo", "bar"].each(Element.remove); -$("baz").innerHTML = "

This is a test

"; +Element.update("baz", "

This is a test

"); EOS end end -- cgit v1.2.3