DevTools/Hacking: Difference between revisions

Jump to navigation Jump to search
Line 93: Line 93:
* '''xpcshell''': More unit-test style of tests. No browser window, just a JavaScript shell. Mostly testing APIs directly.
* '''xpcshell''': More unit-test style of tests. No browser window, just a JavaScript shell. Mostly testing APIs directly.
* '''mochitest-chrome''': More unit-test style of tests, but with a browser window. Mostly testing APIs that interact with the DOM directly.
* '''mochitest-chrome''': More unit-test style of tests, but with a browser window. Mostly testing APIs that interact with the DOM directly.
* '''mochitest-browser''': More of an integration style of tests. Fires up a whole browser window with every test and you can test clicking on buttons, etc.
* '''mochitest-devtools''': More of an integration style of tests. Fires up a whole browser window with every test and you can test clicking on buttons, etc.


More information about the different types of tests can be found on the [https://developer.mozilla.org/en-US/docs/Mozilla/QA/Automated_testing MDN automated testing page]
More information about the different types of tests can be found on the [https://developer.mozilla.org/en-US/docs/Mozilla/QA/Automated_testing MDN automated testing page]
Confirmed users
66

edits

Navigation menu