title: Jasmine spy document.execCommand is not called
body: <p>I write a test like this</p>
  
  <pre><code>describe('execCommand', function () {
      it('should call document.execCommand', function () {
          spyOn(document, 'execCommand').and.callThrough();
          expect(document.execCommand).toHaveBeenCalledWith('foreColor', false, 'red');
          document.execCommand('foreColor', false, 'red');
      });
  });
  </code></pre>
  
  <p>But it fail <code>Expected spy execCommand to have been called with [ 'foreColor', false, 'red' ] but it was never called.</code> and I don't know why?</p>
  
  <p>Please help.</p>
  
  <p>Note: I run it using <code>grunt-contrib-jasmine</code> <code>0.9.2</code></p>