aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/ujs
diff options
context:
space:
mode:
authorrazh <razh@users.noreply.github.com>2019-03-17 14:38:23 -0400
committerrazh <razh@users.noreply.github.com>2019-03-17 14:50:39 -0400
commit2674fe38eb61b152e953a1a122040e119fd9f802 (patch)
tree05b1d95d829a22a0653c1fce8116767880fc1715 /actionview/test/ujs
parent98e380f02452ee2597d122c76fd6b3a802f73333 (diff)
downloadrails-2674fe38eb61b152e953a1a122040e119fd9f802.tar.gz
rails-2674fe38eb61b152e953a1a122040e119fd9f802.tar.bz2
rails-2674fe38eb61b152e953a1a122040e119fd9f802.zip
Revert "Pass HTML responses as plain-text in rails-ujs"
This reverts commit 48e44edfd0a8a7a29aa8fad39638ac0ee5243f42. See discussion in #32287 For HTML content in `ajax:success` handlers, `event.detail[0]` should be an `HTMLDocument` instance.
Diffstat (limited to 'actionview/test/ujs')
-rw-r--r--actionview/test/ujs/public/test/call-remote.js11
1 files changed, 0 insertions, 11 deletions
diff --git a/actionview/test/ujs/public/test/call-remote.js b/actionview/test/ujs/public/test/call-remote.js
index 778dc1b09a..c8813bb82a 100644
--- a/actionview/test/ujs/public/test/call-remote.js
+++ b/actionview/test/ujs/public/test/call-remote.js
@@ -128,17 +128,6 @@ asyncTest('execution of JS code does not modify current DOM', 1, function() {
})
})
-asyncTest('HTML content should be plain-text', 1, function() {
- buildForm({ method: 'post', 'data-type': 'html' })
-
- $('form').append('<input type="text" name="content_type" value="text/html">')
- $('form').append('<input type="text" name="content" value="<p>hello</p>">')
-
- submit(function(e, data, status, xhr) {
- ok(data === '<p>hello</p>', 'returned data should be a plain-text string')
- })
-})
-
asyncTest('XML document should be parsed', 1, function() {
buildForm({ method: 'post', 'data-type': 'html' })