acvetkov / sinon-chrome

Testing chrome extensions with Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Proposal: module for WebExtensions schemas

asamuzaK opened this issue · comments

Hi,
I created a module that fetched and saved the WebExtensions schema directly from hg.mozilla.org.
asamuzaK/webext-schema: WebExtensions schemas fetched from hg.mozilla.org

It is still under development, but I think that with this module, sinon-chrome will no longer has to worry about WebExtensions schemas.
And this module should fix #63 and #87.

At this time, I can't verify that it actually works with sinon-chrome for the #88 issue, but as far as I've tried, it seems to work fine.
Test code webext-schema/schema.test.js at master · asamuzaK/webext-schema

Please send me your feedback on whether or not to implement this module to sinon-chrome.
If you think it's acceptable, I'll send a PR later.

Thanks.

commented

Any news about this? I can’t use sinon-chrome because it doesn’t support browser.menus, for example.

My webextensions-schema might also be of interest, it automatically fetches the latest stable schema. I've built it as basis for webextensions-api-mock.

I'll close this issue.
webext-schema now creates the stubbed browser API