Make WordPress Core

Ticket #37882: 37882.2.diff

File 37882.2.diff, 906 bytes (added by tymvie, 8 years ago)
  • tests/qunit/wp-admin/js/customize-header.js

     
    6363                equal(this.model.shouldBeCropped(), false);
    6464        });
    6565
    66         test('should be cropped when the image has the same dimensions of the theme image', function() {
     66        test('should be cropped when the image width is greater than the theme image', function() {
    6767                this.model.set({
    6868                        themeFlexWidth: false,
    6969                        themeFlexHeight: false,
    7070                        imageWidth: 2000,
    71                         imageHeight: 400
     71                        imageHeight: 200
    7272                });
    7373
    7474                equal(this.model.shouldBeCropped(), true);
     
    112112                        themeFlexWidth: false,
    113113                        themeFlexHeight: false,
    114114                        imageWidth: 1000,
    115                         imageHeight: 100
     115                        imageHeight: 10000
    116116                });
    117117
    118118                equal(this.model.shouldBeCropped(), false);