aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/prototype_helper_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/template/prototype_helper_test.rb')
-rw-r--r--actionpack/test/template/prototype_helper_test.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/actionpack/test/template/prototype_helper_test.rb b/actionpack/test/template/prototype_helper_test.rb
index a94802fdfb..033e75de78 100644
--- a/actionpack/test/template/prototype_helper_test.rb
+++ b/actionpack/test/template/prototype_helper_test.rb
@@ -232,23 +232,23 @@ class JavaScriptGeneratorTest < Test::Unit::TestCase
end
def test_insert_html_with_string
- assert_equal 'new Insertion.Top("element", "<p>This is a test</p>");',
+ assert_equal 'new Insertion.Top("element", "\\074p\\076This is a test\\074/p\\076");',
@generator.insert_html(:top, 'element', '<p>This is a test</p>')
- assert_equal 'new Insertion.Bottom("element", "<p>This is a test</p>");',
+ assert_equal 'new Insertion.Bottom("element", "\\074p\076This is a test\\074/p\076");',
@generator.insert_html(:bottom, 'element', '<p>This is a test</p>')
- assert_equal 'new Insertion.Before("element", "<p>This is a test</p>");',
+ assert_equal 'new Insertion.Before("element", "\\074p\076This is a test\\074/p\076");',
@generator.insert_html(:before, 'element', '<p>This is a test</p>')
- assert_equal 'new Insertion.After("element", "<p>This is a test</p>");',
+ assert_equal 'new Insertion.After("element", "\\074p\076This is a test\\074/p\076");',
@generator.insert_html(:after, 'element', '<p>This is a test</p>')
end
def test_replace_html_with_string
- assert_equal 'Element.update("element", "<p>This is a test</p>");',
+ assert_equal 'Element.update("element", "\\074p\\076This is a test\\074/p\\076");',
@generator.replace_html('element', '<p>This is a test</p>')
end
def test_replace_element_with_string
- assert_equal 'Element.replace("element", "<div id=\"element\"><p>This is a test</p></div>");',
+ assert_equal 'Element.replace("element", "\\074div id=\"element\"\\076\\074p\\076This is a test\\074/p\\076\\074/div\\076");',
@generator.replace('element', '<div id="element"><p>This is a test</p></div>')
end
@@ -304,10 +304,10 @@ class JavaScriptGeneratorTest < Test::Unit::TestCase
@generator.replace_html('baz', '<p>This is a test</p>')
assert_equal <<-EOS.chomp, @generator.to_s
-new Insertion.Top("element", "<p>This is a test</p>");
-new Insertion.Bottom("element", "<p>This is a test</p>");
+new Insertion.Top("element", "\\074p\\076This is a test\\074/p\\076");
+new Insertion.Bottom("element", "\\074p\\076This is a test\\074/p\\076");
["foo", "bar"].each(Element.remove);
-Element.update("baz", "<p>This is a test</p>");
+Element.update("baz", "\\074p\\076This is a test\\074/p\\076");
EOS
end