2016-12-19 17:43:47 +00:00
|
|
|
/* global QUnit, id_to_windowname,
|
2015-08-26 04:24:55 +00:00
|
|
|
windowname_to_id */
|
2020-03-16 05:20:22 +00:00
|
|
|
/* eslint strict: 0 */
|
2015-08-26 04:24:55 +00:00
|
|
|
'use strict';
|
|
|
|
|
2016-12-19 17:43:47 +00:00
|
|
|
QUnit.module('admin.RelatedObjectLookups');
|
2015-04-14 14:55:57 +00:00
|
|
|
|
2016-12-19 17:43:47 +00:00
|
|
|
QUnit.test('id_to_windowname', function(assert) {
|
2015-04-14 14:55:57 +00:00
|
|
|
assert.equal(id_to_windowname('.test'), '__dot__test');
|
|
|
|
assert.equal(id_to_windowname('misc-test'), 'misc__dash__test');
|
|
|
|
});
|
|
|
|
|
2016-12-19 17:43:47 +00:00
|
|
|
QUnit.test('windowname_to_id', function(assert) {
|
2015-04-14 14:55:57 +00:00
|
|
|
assert.equal(windowname_to_id('__dot__test'), '.test');
|
|
|
|
assert.equal(windowname_to_id('misc__dash__test'), 'misc-test');
|
|
|
|
});
|