undo and redo adding new cropper library as it had a .git config from the original project
This commit is contained in:
		
							
								
								
									
										21
									
								
								library/cropperjs/test/options/minContainerWidth.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								library/cropperjs/test/options/minContainerWidth.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| QUnit.test('options#minContainerWidth', function (assert) { | ||||
|   var done = assert.async(); | ||||
|   var util = window.Util; | ||||
|   var image = util.createImage(); | ||||
|   var minContainerWidth = 641; | ||||
|  | ||||
|   assert.expect(1); | ||||
|  | ||||
|   return new Cropper(image, { | ||||
|     minContainerWidth: minContainerWidth, | ||||
|  | ||||
|     ready: function () { | ||||
|       var cropper = this.cropper; | ||||
|       var containerData = cropper.getContainerData(); | ||||
|  | ||||
|       assert.strictEqual(Math.round(containerData.width), minContainerWidth); | ||||
|  | ||||
|       done(); | ||||
|     } | ||||
|   }); | ||||
| }); | ||||
		Reference in New Issue
	
	Block a user