Change the 'gets viewport respecting "dontFlip" argument' unit-test to use a valid rotation angle

As can be seen in `PageViewport` only multiples of 90 degrees are really supported by the code, hence the unit-test doesn't really make sense.
(Possibly this should be enforced in the API, to avoid surprises, but given that this problem has always existed I'm passing on that for now.)
This commit is contained in:
Jonas Jenwald 2019-10-23 20:30:25 +02:00
parent d7f651aa98
commit 2046adcc49

View File

@ -1101,8 +1101,7 @@ describe('api', function() {
expect(viewport.height).toEqual(892.92);
});
it('gets viewport respecting "dontFlip" argument', function () {
const scale = 1;
const rotation = 135;
const scale = 1, rotation = 0;
let viewport = page.getViewport({ scale, rotation, });
let dontFlipViewport = page.getViewport({ scale, rotation,
dontFlip: true, });