Add initial TouchBarScrubber spec
This commit is contained in:
		
					parent
					
						
							
								268dd1a6c2
							
						
					
				
			
			
				commit
				
					
						0dcdd60010
					
				
			
		
					 1 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -3,7 +3,7 @@ const {BrowserWindow, TouchBar} = require('electron').remote
 | 
			
		|||
const {closeWindow} = require('./window-helpers')
 | 
			
		||||
 | 
			
		||||
const {TouchBarButton, TouchBarColorPicker, TouchBarGroup} = TouchBar
 | 
			
		||||
const {TouchBarLabel, TouchBarPopover, TouchBarSegmentedControl, TouchBarSlider, TouchBarSpacer} = TouchBar
 | 
			
		||||
const {TouchBarLabel, TouchBarPopover, TouchBarScrubber, TouchBarSegmentedControl, TouchBarSlider, TouchBarSpacer} = TouchBar
 | 
			
		||||
 | 
			
		||||
describe('TouchBar module', function () {
 | 
			
		||||
  it('throws an error when created without an items array', function () {
 | 
			
		||||
| 
						 | 
				
			
			@ -47,7 +47,10 @@ describe('TouchBar module', function () {
 | 
			
		|||
          segments: [{label: 'baz', enabled: false}],
 | 
			
		||||
          selectedIndex: 5
 | 
			
		||||
        }),
 | 
			
		||||
        new TouchBarSegmentedControl({segments: []})
 | 
			
		||||
        new TouchBarSegmentedControl({segments: []}),
 | 
			
		||||
        new TouchBarScrubber({
 | 
			
		||||
          items: [{label: 'foo'}, {label: 'bar'}, {label: 'baz'}]
 | 
			
		||||
        })
 | 
			
		||||
      ])
 | 
			
		||||
      window.setTouchBar(touchBar)
 | 
			
		||||
      label.label = 'baz'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue