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