Abstract:
A computer-implemented method is presented for simulating an orientation change on a computing device in a test environment. The method includes: retrieving an orientation action from a test script, the test script defined in accordance with a scripting language and the orientation action specifying an angle of rotation to simulate; setting a value of a window orientation variable in a web browser, the value of the window orientation variable correlating to the angle of rotation specified by the orientation action; issuing a resize command to a window resize function supported by the web browser; and issuing a change orientation event to a rendering engine associated with the web browser.
Abstract:
A computer-implemented method is presented for simulating an orientation change on a computing device in a test environment. The method includes: retrieving an orientation action from a test script, the test script defined in accordance with a scripting language and the orientation action specifying an angle of rotation to simulate; setting a value of a window orientation variable in a web browser, the value of the window orientation variable correlating to the angle of rotation specified by the orientation action; issuing a resize command to a window resize function supported by the web browser; and issuing a change orientation event to a rendering engine associated with the web browser.