aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
diff options
context:
space:
mode:
authorTeng Siong Ong <siong1987@gmail.com>2011-08-21 15:14:45 -0500
committerTeng Siong Ong <siong1987@gmail.com>2011-08-21 15:14:45 -0500
commitf6ceb944eaea525362db38aa990cac3e6f76ac5a (patch)
treecd91f2cdaa963b47c6bb817a9872e41f22ea87b2 /actionpack/test/template
parentf25d65d2fbe2a0e65affdb87c2a27f47dbe80a09 (diff)
downloadrails-f6ceb944eaea525362db38aa990cac3e6f76ac5a.tar.gz
rails-f6ceb944eaea525362db38aa990cac3e6f76ac5a.tar.bz2
rails-f6ceb944eaea525362db38aa990cac3e6f76ac5a.zip
fix escape_javascript for unicode character \u2028.
Diffstat (limited to 'actionpack/test/template')
-rw-r--r--actionpack/test/template/javascript_helper_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/test/template/javascript_helper_test.rb b/actionpack/test/template/javascript_helper_test.rb
index dd8b7b7cd5..bab9d42472 100644
--- a/actionpack/test/template/javascript_helper_test.rb
+++ b/actionpack/test/template/javascript_helper_test.rb
@@ -27,6 +27,7 @@ class JavaScriptHelperTest < ActionView::TestCase
assert_equal %(This \\"thing\\" is really\\n netos\\'), escape_javascript(%(This "thing" is really\n netos'))
assert_equal %(backslash\\\\test), escape_javascript( %(backslash\\test) )
assert_equal %(dont <\\/close> tags), escape_javascript(%(dont </close> tags))
+ assert_equal %(unicode &#x2028; newline), escape_javascript(%(unicode \342\200\250 newline))
assert_equal %(dont <\\/close> tags), j(%(dont </close> tags))
end