diff options
Diffstat (limited to 'mobile/android/components/extensions/test/mochitest/head.js')
-rw-r--r-- | mobile/android/components/extensions/test/mochitest/head.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mobile/android/components/extensions/test/mochitest/head.js b/mobile/android/components/extensions/test/mochitest/head.js new file mode 100644 index 000000000..be9683682 --- /dev/null +++ b/mobile/android/components/extensions/test/mochitest/head.js @@ -0,0 +1,15 @@ +"use strict"; + +/* exported isPageActionShown clickPageAction */ + +const {classes: Cc, interfaces: Ci, utils: Cu} = Components; + +Cu.import("resource://gre/modules/PageActions.jsm"); + +function isPageActionShown(uuid) { + return PageActions.isShown(uuid); +} + +function clickPageAction(uuid) { + PageActions.synthesizeClick(uuid); +} |