User talk:Dclarke: Difference between revisions

no edit summary
(Created page with "=Integration Testing for Apps= International Characters in manifest / upload process Verify end to end app purchase w/ browserID w/ paypal w/o paypal HTML5 / Extension /...")
 
No edit summary
Line 1: Line 1:
= Mochi Tests =
* Mochi Tests are run inside the browser, with a specialized profile. They are generally pure javascript / html.
* You need to grab a special privileges mode
* Ability to send events to the browser, as well as interact with the chrome
* Special Powers is the new facility to gain permissions to the chrome
* Tests can be run by downnloading the *test.zip file <unzipdir>/mochitest/tests
** ftp://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central/
** Then runtest.py, allows you to run the tests against a nightly build of firefox, no need to build from scratch
* Tinderbox push log https://tbpl.mozilla.org/ M(1 2 3 4 5) Mochi tests, orange tests indicate intermittent failure, * indicates noted .
* https://developer.mozilla.org/en/Mochitest
* http://mxr.mozilla.org/mozilla-central/source/testing/mochitest/ <-- all mochitests
* Example Tests which may help for webapps:
  http://mxr.mozilla.org/mozilla-central/source/toolkit/components/passwordmgr/test/
  http://mxr.mozilla.org/mozilla-central/source/toolkit/components/passwordmgr/test/pwmgr_common.js#133
  http://mxr.mozilla.org/mozilla-central/source/dom/tests/mochitest/geolocation/
  http://mxr.mozilla.org/mozilla-central/source/dom/tests/mochitest/geolocation/test_allowCurrent.html?force=1
* Test Log output
INFO | automation.py | Application pid: 2137
0 INFO Running tests in tests/Harness_sanity, tests/MochiKit-1.4.2/tests, tests/browser/base/content/test, tests/browser/components/feeds /test, tests/caps/tests/mochitest, tests/content/base/test, tests/content/base/test/websocket_hybi, tests/content/canvas/test/crossorigin, tests/content/canvas/test, tests/content/canvas/test/webgl, tests/content/events/test, tests/content/html/content/test, tests/content/html/document/test, tests/content/me
1 INFO SimpleTest START
2 INFO TEST-START | /tests/Harness_sanity/test_SpecialPowersExtension.html
SPECIALPTEST:::Test script loaded 1327349640866
SPECIALPTEST:::Test script running after load 1327349640868
3 INFO TEST-PASS | /tests/Harnesshttps://developer.mozilla.org/en/Mochitest
=Integration Testing for Apps=
=Integration Testing for Apps=


409

edits