Add window opacity support
This commit is contained in:
		
					parent
					
						
							
								0c9ada08a4
							
						
					
				
			
			
				commit
				
					
						7f2c4a9e06
					
				
			
		
					 11 changed files with 57 additions and 0 deletions
				
			
		|  | @ -795,6 +795,26 @@ describe('BrowserWindow module', function () { | |||
|     }) | ||||
|   }) | ||||
| 
 | ||||
|   describe('BrowserWindow.setOpacity(opacity)', function () { | ||||
|     it('make window with initial opacity', function () { | ||||
|       w.destroy() | ||||
|       w = new BrowserWindow({ | ||||
|         show: false, | ||||
|         width: 400, | ||||
|         height: 400, | ||||
|         opacity: 0.5 | ||||
|       }) | ||||
|     }) | ||||
| 
 | ||||
|     it('allows setting the opacity', function () { | ||||
|       assert.doesNotThrow(function () { | ||||
|         w.setOpacity(0.0) | ||||
|         w.setOpacity(0.5) | ||||
|         w.setOpacity(1.0) | ||||
|       }) | ||||
|     }) | ||||
|   }) | ||||
| 
 | ||||
|   describe('"useContentSize" option', function () { | ||||
|     it('make window created with content size when used', function () { | ||||
|       w.destroy() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ted Kim
				Ted Kim