DescriptionSupport screen.lockOrientation() / screen.unlockOrientation() when running layout tests
Support screen.lockOrientation() / screen.unlockOrientation() when running
layout tests so that we can increase test coverage via layout tests.
The following functionality is implemented when running layout tests:
- The lock value is now stored when calling screen.lockOrientation() from the
layout tests. If the current orientation is not allowed when the new lock,
a new suitable orientation is chosen and an 'orientationchange' event is
fired.
- The lock value is reset to WebScreenOrientationLockDefault when
screen.unlockOrientation() is called. If the current screen orientation
was not allowed by the previous lock, an 'orientationchange' event is fired.
- testRunner.setMockScreenOrientation() causes an 'orientationchange' event to
be fired only if the orientation change is allowed by the current lock.
R=jochen@chromium.org
BUG=162827
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270552
Patch Set 1 #
Total comments: 3
Patch Set 2 : Fix coding style #
Total comments: 7
Patch Set 3 : Take feedback into consideration #
Total comments: 4
Patch Set 4 : Take feedback into consideration #
Total comments: 4
Patch Set 5 : Take jochen's feedback into consideration #Messages
Total messages: 49 (0 generated)
|