mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-30 02:40:08 +00:00 
			
		
		
		
	some tests....
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									249fa17cef
								
							
						
					
					
						commit
						acda574fad
					
				| @ -921,7 +921,9 @@ var ExampleUIActions = actions.Actions({ | |||||||
| 	exampleEditor2: ['Test/Universal Editor (2)...', | 	exampleEditor2: ['Test/Universal Editor (2)...', | ||||||
| 		widgets.makeUIDialog(function(spec, callback){ | 		widgets.makeUIDialog(function(spec, callback){ | ||||||
| 			var that = this | 			var that = this | ||||||
| 			var data = {} | 			var d0 = {} | ||||||
|  | 			var d1 = {} | ||||||
|  | 			var d2 = {} | ||||||
| 			return browse.makeLister(null, function(path, make){ | 			return browse.makeLister(null, function(path, make){ | ||||||
| 
 | 
 | ||||||
| 				make([ | 				make([ | ||||||
| @ -937,23 +939,25 @@ var ExampleUIActions = actions.Actions({ | |||||||
| 				make.field('A', 'B') | 				make.field('A', 'B') | ||||||
| 
 | 
 | ||||||
| 				//make.field.Toggle('Toggle: ', 'on')
 | 				//make.field.Toggle('Toggle: ', 'on')
 | ||||||
| 				make.field.Toggle('Toggle: ', data) | 				make.field.Toggle('Toggle: ', d0) | ||||||
| 
 | 
 | ||||||
| 				// XXX need more testing...
 | 				// XXX test callback...
 | ||||||
| 				make.batch([ | 				make.batch([ | ||||||
| 					'---', | 					'---', | ||||||
| 					[['X', 'Y']], | 					[['X', 'Y']], | ||||||
| 					// XXX this does not show the correct value...
 | 					// XXX this does not show the correct value...
 | ||||||
| 					{title: 'foo', value: 123}, | 					{title: 'foo', value: 123}, | ||||||
| 					{type: 'field.Toggle', title: 'Batch toggle: '}, | 					Object.assign(d1, | ||||||
|  | 						{type: 'field.Toggle', title: 'Batch toggle 1: '}), | ||||||
| 				]) | 				]) | ||||||
|  | 				// XXX test callback...
 | ||||||
| 				make.field.batch([ | 				make.field.batch([ | ||||||
| 					// XXX this does not do the right thing...
 |  | ||||||
| 					'---', | 					'---', | ||||||
| 					['X', 'Y'], | 					['X', 'Y'], | ||||||
| 					// XXX this does not show the correct value...
 | 					// XXX this does not show the correct value...
 | ||||||
| 					{title: 'foo', value: 123}, | 					{title: 'foo', value: 123}, | ||||||
| 					{type: 'Toggle', title: 'Batch toggle: '}, | 					Object.assign(d2, | ||||||
|  | 						{type: 'Toggle', title: 'Batch toggle 2: '}), | ||||||
| 				]) | 				]) | ||||||
| 
 | 
 | ||||||
| 			}, { | 			}, { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user