Mobile/e10s/Testing: Difference between revisions

From MozillaWiki
< Mobile‎ | e10s
Jump to navigation Jump to search
Line 8: Line 8:
=== Reftest - libpr0n ===
=== 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. You will want the patch in {{bug|648104}}.
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.
cjones was able to make these mostly pass back in Feb, but since have decayed.

Revision as of 20:29, 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

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