diff options
author | Sam Stephenson <sam@37signals.com> | 2005-11-18 18:03:45 +0000 |
---|---|---|
committer | Sam Stephenson <sam@37signals.com> | 2005-11-18 18:03:45 +0000 |
commit | b3c65bc8490b072a0d314aa3858c680fc6d67e35 (patch) | |
tree | 36b59c189aa643b3863a4d5dc6a3ee880b1a53a9 /actionpack/test/template | |
parent | 62fe5bbfb1493bd069a1ebcb5ee45531e49a6582 (diff) | |
download | rails-b3c65bc8490b072a0d314aa3858c680fc6d67e35.tar.gz rails-b3c65bc8490b072a0d314aa3858c680fc6d67e35.tar.bz2 rails-b3c65bc8490b072a0d314aa3858c680fc6d67e35.zip |
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
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/prototype_helper_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 = "<p>This is a test</p>";', + assert_equal 'Element.update("element", "<p>This is a test</p>");', @generator.replace_html('element', '<p>This is a test</p>') end @@ -202,7 +202,7 @@ class JavaScriptGeneratorTest < Test::Unit::TestCase new Insertion.Top("element", "<p>This is a test</p>"); new Insertion.Bottom("element", "<p>This is a test</p>"); ["foo", "bar"].each(Element.remove); -$("baz").innerHTML = "<p>This is a test</p>"; +Element.update("baz", "<p>This is a test</p>"); EOS end end |