Ticket #37882: 37882.2.diff
File 37882.2.diff, 906 bytes (added by , 8 years ago) |
---|
-
tests/qunit/wp-admin/js/customize-header.js
63 63 equal(this.model.shouldBeCropped(), false); 64 64 }); 65 65 66 test('should be cropped when the image has the same dimensions ofthe theme image', function() {66 test('should be cropped when the image width is greater than the theme image', function() { 67 67 this.model.set({ 68 68 themeFlexWidth: false, 69 69 themeFlexHeight: false, 70 70 imageWidth: 2000, 71 imageHeight: 40071 imageHeight: 200 72 72 }); 73 73 74 74 equal(this.model.shouldBeCropped(), true); … … 112 112 themeFlexWidth: false, 113 113 themeFlexHeight: false, 114 114 imageWidth: 1000, 115 imageHeight: 100 115 imageHeight: 10000 116 116 }); 117 117 118 118 equal(this.model.shouldBeCropped(), false);