mirror of
				https://github.com/twbs/bootstrap.git
				synced 2025-11-04 00:03:15 -05:00 
			
		
		
		
	Remove broken/vestigial unit test
Overall logic for this test appears broken, possibly relating to an older version of Bootstrap that did not require explicit `data-toggle="button"` on single toggle buttons?
This commit is contained in:
		
							parent
							
								
									f9cd88e09f
								
							
						
					
					
						commit
						0c1daaf2ce
					
				@ -130,19 +130,6 @@ $(function () {
 | 
			
		||||
    assert.strictEqual($btn.attr('aria-pressed'), 'true', 'btn aria-pressed state is true')
 | 
			
		||||
  })
 | 
			
		||||
 | 
			
		||||
  QUnit.test('should toggle active when btn children are clicked within btn-group', function (assert) {
 | 
			
		||||
    assert.expect(2)
 | 
			
		||||
    var $btngroup = $('<div class="btn-group" data-toggle="buttons"/>')
 | 
			
		||||
    var $btn = $('<button class="btn">fat</button>')
 | 
			
		||||
    var $inner = $('<i/>')
 | 
			
		||||
    $btngroup
 | 
			
		||||
      .append($btn.append($inner))
 | 
			
		||||
      .appendTo('#qunit-fixture')
 | 
			
		||||
    assert.ok(!$btn.hasClass('active'), 'btn does not have active class')
 | 
			
		||||
    $inner.trigger('click')
 | 
			
		||||
    assert.ok($btn.hasClass('active'), 'btn has class active')
 | 
			
		||||
  })
 | 
			
		||||
 | 
			
		||||
  QUnit.test('should check for closest matching toggle', function (assert) {
 | 
			
		||||
    assert.expect(12)
 | 
			
		||||
    var groupHTML = '<div class="btn-group" data-toggle="buttons">'
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user