Mobile/e10s/Testing: Difference between revisions
No edit summary |
|||
Line 24: | Line 24: | ||
</pre> | </pre> | ||
in the OBJDIR. This assumes you have --enable-tests in your mozconfig. | in the OBJDIR. This assumes you have --enable-tests in your mozconfig. | ||
=== reftest - layout === | |||
<pre> | |||
TEST_PATH=layout/reftests/font-face/reftest.list make reftest | |||
</pre> | |||
(as mentioned above, this assumes you have --enable-tests in your mozconfig) | |||
=== mochitest - layout/base === | === mochitest - layout/base === |
Revision as of 21:00, 13 April 2011
Fennec Mochitest and Reftest
Build Fennec with enable-tests.
- required patches:
- bug 648104, 649776.
Reftest - libpr0n
Most of these tests fail due to fennec disabling color correction (due to performance concerns). And some other will fail if using a 16bbp display. For example, see bug 648148. Also note that reftests that require drawWindow support will fail in Fennec. (For that you will want the patch in bug 648104, as mentioned before.)
cjones was able to make these mostly pass back in Feb, but since have decayed.
To run, you can:
make package-tests cd dist/test-package-stage/reftest python runreftest.py --app=../../bin/fennec tests/modules/libpr0n/test/reftest/pngsuite-chunkorder/reftest.list
Alternatively, they can be run using the more desktop-y syntax
TEST_PATH=modules/libpr0n/test/reftest/reftest.list make reftest
in the OBJDIR. This assumes you have --enable-tests in your mozconfig.
reftest - layout
TEST_PATH=layout/reftests/font-face/reftest.list make reftest
(as mentioned above, this assumes you have --enable-tests in your mozconfig)
mochitest - layout/base
Most of these failures are related to using the old netscape universal permissions api. Instead, we should be using SpecialPowers -- the new elevated permission api.
Many of the mochitests use some sort of elevated permission. For example, sending an keypress or composition event requires elevated permissions. I converted some of the EventUtils over to SpecialPowers in bug 649360.
To run, you can:
make package-tests cd dist/test-package-stage/mochitest python runreftest.py --app=../../bin/fennec --autorun --close-when-done --test-path=layout/base
layout/style is another test suite of interest. Currently this has over 90,000 tests and we fail <30 on fennec. Most of those are simple fixes for using SpecialPowers for preferences.
python runreftest.py --app=../../bin/fennec --autorun --close-when-done --test-path=layout/style