mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
19 lines
572 B
JavaScript
19 lines
572 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
// Initialize mozmill
|
|
Components.utils.import('resource://mozmill/driver/mozmill.js');
|
|
let c = getBrowserController();
|
|
|
|
c.open('http://mozilla.org');
|
|
c.waitForPageLoad();
|
|
|
|
// Only put things you want to test for responsiveness inside a perfom action call
|
|
pep.performAction('open_blank_tab', function() {
|
|
c.rootElement.keypress('t', {'ctrlKey': true});
|
|
});
|
|
|
|
pep.performAction('close_blank_tab', function() {
|
|
c.rootElement.keypress('w', {'ctrlKey': true});
|
|
});
|