diff options
| author | Thomas Grainger <tom.grainger@procensus.com> | 2016-01-08 19:58:03 +0000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-01-08 18:24:04 -0500 |
| commit | cbaa3ee3ee45d453ab6aa36d57847515dd130b9f (patch) | |
| tree | 5509f5035ac6207848ab99e8edea51e5c8452460 /js_tests/admin/RelatedObjectLookups.test.js | |
| parent | 780bddf75b93784470a2e352ed44ee35a751d667 (diff) | |
Refs #25165 -- Removed unnecessary HTML unescaping in admin add/edit popups.
Because we now load data into the page via JSON, we don't need to
unescape it anymore.
Diffstat (limited to 'js_tests/admin/RelatedObjectLookups.test.js')
| -rw-r--r-- | js_tests/admin/RelatedObjectLookups.test.js | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/js_tests/admin/RelatedObjectLookups.test.js b/js_tests/admin/RelatedObjectLookups.test.js index d2fd3194bb..83071edd43 100644 --- a/js_tests/admin/RelatedObjectLookups.test.js +++ b/js_tests/admin/RelatedObjectLookups.test.js @@ -1,21 +1,10 @@ -/* global module, test, html_unescape, id_to_windowname, +/* global module, test, id_to_windowname, windowname_to_id */ /* eslint global-strict: 0, strict: 0 */ 'use strict'; module('admin.RelatedObjectLookups'); -test('html_unescape', function(assert) { - function assert_unescape(then, expected, message) { - assert.equal(html_unescape(then), expected, message); - } - assert_unescape('<', '<', 'less thans are unescaped'); - assert_unescape('>', '>', 'greater thans are unescaped'); - assert_unescape('"', '"', 'double quotes are unescaped'); - assert_unescape(''', "'", 'single quotes are unescaped'); - assert_unescape('&', '&', 'ampersands are unescaped'); -}); - test('id_to_windowname', function(assert) { assert.equal(id_to_windowname('.test'), '__dot__test'); assert.equal(id_to_windowname('misc-test'), 'misc__dash__test'); |
