mirror of
				https://github.com/django/django.git
				synced 2025-11-04 13:39:16 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			526 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			526 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
/* global QUnit, id_to_windowname,
 | 
						|
   windowname_to_id */
 | 
						|
/* eslint global-strict: 0, 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');
 | 
						|
});
 |