Closed Bug 1324622 Opened 6 years ago Closed 6 years ago
[jsplugins] merge unit test into m-c
When we merge unit test into m-c, we at least need to do 2 things (1) Put XPCSHELL_TESTS_MANIFESTS into moz.build XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini'] (2) Change the path of the "ppapi.js" in addon to the exact file path.
This patch is our first version of unit test. (1) run xpcshell ./mach xpcshell-test browser/extensions/mortar/your-path-to-the-test-file (2) how to write a test file 1. easily create testcases from PPB_* logs 2. mock test input for testcases 3. pass testcases into |Call_PpbFunc| will call the PPB_* API implementation in ppapi-runtime.jsm
Attachment #8835814 - Flags: review?(ehung)
Comment on attachment 8835814 [details] [diff] [review] Bug 1324622 - merge unit test LGTM. Thanks.
Attachment #8835814 - Flags: review?(ehung) → review+
thank you Evelyn for reviewing. Result of the try server: https://treeherder.mozilla.org/#/jobs?repo=try&revision=1b167415b07d8a1f8b1ed6f767fff4582cb0840d
Attachment #8835814 - Attachment is obsolete: true
Pushed by email@example.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/65df996e64fa merge unit test into mortar. r=ehung
You need to log in before you can comment on or make changes to this bug.