🔧 Enable mode indication for setProgressBar
This commit enables setting a mode for the setProgressBar method. Old behavior is kept intact, usage is entirely optional.
This commit is contained in:
		
					parent
					
						
							
								5eeadb0ad4
							
						
					
				
			
			
				commit
				
					
						73c91dae9e
					
				
			
		
					 11 changed files with 72 additions and 20 deletions
				
			
		| 
						 | 
				
			
			@ -391,6 +391,24 @@ describe('browser-window module', function () {
 | 
			
		|||
        w.setProgressBar(-1)
 | 
			
		||||
      })
 | 
			
		||||
    })
 | 
			
		||||
 | 
			
		||||
    it('sets the progress using "paused" mode', function () {
 | 
			
		||||
      assert.doesNotThrow(function () {
 | 
			
		||||
        w.setProgressBar(0.5, {mode: 'paused'})
 | 
			
		||||
      })
 | 
			
		||||
    })
 | 
			
		||||
 | 
			
		||||
    it('sets the progress using "error" mode', function () {
 | 
			
		||||
      assert.doesNotThrow(function () {
 | 
			
		||||
        w.setProgressBar(0.5, {mode: 'error'})
 | 
			
		||||
      })
 | 
			
		||||
    })
 | 
			
		||||
 | 
			
		||||
    it('sets the progress using "normal" mode', function () {
 | 
			
		||||
      assert.doesNotThrow(function () {
 | 
			
		||||
        w.setProgressBar(0.5, {mode: 'normal'})
 | 
			
		||||
      })
 | 
			
		||||
    })
 | 
			
		||||
  })
 | 
			
		||||
 | 
			
		||||
  describe('BrowserWindow.fromId(id)', function () {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue