Add BrowserWindow.getOpacity for consistency
This commit is contained in:
		
					parent
					
						
							
								7df5182901
							
						
					
				
			
			
				commit
				
					
						7570ec9d39
					
				
			
		
					 9 changed files with 29 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -804,13 +804,17 @@ describe('BrowserWindow module', function () {
 | 
			
		|||
        height: 400,
 | 
			
		||||
        opacity: 0.5
 | 
			
		||||
      })
 | 
			
		||||
      assert.equal(w.getOpacity(), 0.5)
 | 
			
		||||
    })
 | 
			
		||||
 | 
			
		||||
    it('allows setting the opacity', function () {
 | 
			
		||||
      assert.doesNotThrow(function () {
 | 
			
		||||
        w.setOpacity(0.0)
 | 
			
		||||
        assert.equal(w.getOpacity(), 0.0)
 | 
			
		||||
        w.setOpacity(0.5)
 | 
			
		||||
        assert.equal(w.getOpacity(), 0.5)
 | 
			
		||||
        w.setOpacity(1.0)
 | 
			
		||||
        assert.equal(w.getOpacity(), 1.0)
 | 
			
		||||
      })
 | 
			
		||||
    })
 | 
			
		||||
  })
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue