old_contents: describe('checkCrossOrigin (option)', () => {
    const crossOriginImageURL = `//${['127.0.0.1', window.location.port].join(':')}/base/docs/images/picture.jpg`;
  
    it('should check cross origin by default', (done) => {
      const image = window.createImage({
        src: crossOriginImageURL,
      });
      const cropper = new Cropper(image, {
        ready() {
          expect(cropper.image.crossOrigin).to.equal('anonymous');
          expect(cropper.image.src).to.include('timestamp');
          done();
        },
      });
  
      expect(cropper.options.checkCrossOrigin).to.be.true;
    });
  
    it('should not check cross origin', (done) => {
      const image = window.createImage({
        src: crossOriginImageURL,
      });
      const cropper = new Cropper(image, {
        checkCrossOrigin: false,
  
        ready() {
          expect(cropper.image.crossOrigin).to.be.null;
          expect(cropper.image.src).to.not.include('timestamp');
          done();
        },
      });
  
      expect(cropper.options.checkCrossOrigin).to.be.false;
    });
  
    it('should not add timestamp when the image has `crossOrigin` attribute', (done) => {
      const image = window.createImage({
        src: crossOriginImageURL,
        crossOrigin: 'anonymous',
      });
      const cropper = new Cropper(image, {
        ready() {
          expect(cropper.image.crossOrigin).to.equal('anonymous');
          expect(cropper.image.src).to.not.include('timestamp');
          done();
        },
      });
    });
  });
  
new_contents: describe('checkCrossOrigin (option)', () => {
    const crossOriginImageURL = 'https://fengyuanchen.github.io/cropperjs/images/picture.jpg';
  
    it('should check cross origin by default', (done) => {
      const image = window.createImage({
        src: crossOriginImageURL,
      });
      const cropper = new Cropper(image, {
        ready() {
          expect(cropper.image.crossOrigin).to.equal('anonymous');
          expect(cropper.image.src).to.include('timestamp');
          done();
        },
      });
  
      expect(cropper.options.checkCrossOrigin).to.be.true;
    });
  
    it('should not check cross origin', (done) => {
      const image = window.createImage({
        src: crossOriginImageURL,
      });
      const cropper = new Cropper(image, {
        checkCrossOrigin: false,
  
        ready() {
          expect(cropper.image.crossOrigin).to.be.null;
          expect(cropper.image.src).to.not.include('timestamp');
          done();
        },
      });
  
      expect(cropper.options.checkCrossOrigin).to.be.false;
    });
  
    it('should not add timestamp when the image has `crossOrigin` attribute', (done) => {
      const image = window.createImage({
        src: crossOriginImageURL,
        crossOrigin: 'anonymous',
      });
      const cropper = new Cropper(image, {
        ready() {
          expect(cropper.image.crossOrigin).to.equal('anonymous');
          expect(cropper.image.src).to.not.include('timestamp');
          done();
        },
      });
    });
  });
  
subject: change the cross origin image url