SoftwareTesting: Difference between revisions

no edit summary
No edit summary
Line 74: Line 74:
** can we use chrome urls (with appropriate manifest files) to access the jsunit core js files in a path-independent manner?  this means we just have to worry about the test runner page and the test suite/case pages.
** can we use chrome urls (with appropriate manifest files) to access the jsunit core js files in a path-independent manner?  this means we just have to worry about the test runner page and the test suite/case pages.
** this is only a problem for packaging jsunit-based tests in our tree so that they point to the same core jsunit files
** this is only a problem for packaging jsunit-based tests in our tree so that they point to the same core jsunit files
* example xul/run-js-as-chrome test ([http://people.mozilla.com/~davel/scripts/ davel's example])
* [[SoftwareTesting:Tools:SimpleXulTestHarness]]
** in the example, extract_search.sh demonstrates how to create a profile
*** 2 steps - CreateProfile makes the directory and prefs.js file, and the first run populates the profile directory with all the other stuff
** the sleep 5 is necessary because firefox (on mac at least) restarts itself during the first-run process.  probably extension manager checking for stuff
** installing an extension is not covered by this example
** need to add result reporting (pass/fail) to this example
* example extension test using foxunit
* example extension test using foxunit
** davel thinks xul/js-run-as-chrome is probably better
** davel thinks xul/js-run-as-chrome is probably better
201

edits