summaryrefslogtreecommitdiff
path: root/js_tests
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2020-03-22 22:19:10 -0700
committerGitHub <noreply@github.com>2020-03-23 06:19:10 +0100
commitf982f0bdb8317e75af416595c616943d5025da1e (patch)
treeae7d712a84c17866ac9b186d0ebdeb91e7f22ebe /js_tests
parente21788121b6222cab84644648b3f1a68f69002a0 (diff)
downloaddjango-f982f0bdb8317e75af416595c616943d5025da1e.tar.gz
Refs #31032 -- Removed unsupported browsers workarounds and comments in admin's JavaScript.
Since 8b30360322d4de6687e17ab267a856db4e3c78a6, the admin documentation is explicit that only modern evergreen browsers are supported. This allows removing several long standing workarounds for IE and Opera older versions. Since 2013, Opera is based on the Chromium blink engine.
Diffstat (limited to 'js_tests')
-rw-r--r--js_tests/admin/RelatedObjectLookups.test.js16
-rw-r--r--js_tests/tests.html1
2 files changed, 0 insertions, 17 deletions
diff --git a/js_tests/admin/RelatedObjectLookups.test.js b/js_tests/admin/RelatedObjectLookups.test.js
deleted file mode 100644
index 8585e9ada3..0000000000
--- a/js_tests/admin/RelatedObjectLookups.test.js
+++ /dev/null
@@ -1,16 +0,0 @@
-/* global QUnit, id_to_windowname,
- windowname_to_id */
-/* eslint strict: 0 */
-'use strict';
-
-QUnit.module('admin.RelatedObjectLookups');
-
-QUnit.test('id_to_windowname', function(assert) {
- assert.equal(id_to_windowname('.test'), '__dot__test');
- assert.equal(id_to_windowname('misc-test'), 'misc__dash__test');
-});
-
-QUnit.test('windowname_to_id', function(assert) {
- assert.equal(windowname_to_id('__dot__test'), '.test');
- assert.equal(windowname_to_id('misc__dash__test'), 'misc-test');
-});
diff --git a/js_tests/tests.html b/js_tests/tests.html
index 0bce71ab29..c247abc755 100644
--- a/js_tests/tests.html
+++ b/js_tests/tests.html
@@ -90,7 +90,6 @@
<script src='./admin/core.test.js'></script>
<script src='../django/contrib/admin/static/admin/js/admin/RelatedObjectLookups.js' data-cover></script>
- <script src='./admin/RelatedObjectLookups.test.js'></script>
<script src='./admin/DateTimeShortcuts.test.js'></script>
<script src='../django/contrib/admin/static/admin/js/calendar.js' data-cover></script>