mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
77f8f568f9
This adds support for assertion checking in all mochitest suites except for mochitest-browser-chrome. The checking works much like it does in reftest, except for the mechanism for annotating expected assertions, SimpleTest.expectAssertions() (see its in-code documentation). The support is initially disabled in that: (1) It doesn't cause the tests to report failure (and thus turn the tree orange). (2) It prints TEST-DETCEPXENU-FAIL/PASS instead of TEST-UNEXPECTED-FAIL/PASS (so that it doesn't show up in log highlighting). The assertion checking only works within the test runner (which runs multiple tests); it does not function when running only a single test.
32 lines
877 B
Makefile
32 lines
877 B
Makefile
#
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
DEPTH = @DEPTH@
|
|
topsrcdir = @top_srcdir@
|
|
srcdir = @srcdir@
|
|
VPATH = @srcdir@
|
|
relativesrcdir = @relativesrcdir@
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
_SIMPLETEST_FILES = LogController.js \
|
|
SimpleTest.js \
|
|
test.css \
|
|
TestRunner.js \
|
|
setup.js \
|
|
EventUtils.js \
|
|
ChromeUtils.js \
|
|
WindowSnapshot.js \
|
|
MockObjects.js \
|
|
NativeKeyCodes.js \
|
|
paint_listener.js \
|
|
iframe-between-tests.html \
|
|
$(DEPTH)/testing/specialpowers/content/MozillaLogger.js \
|
|
$(DEPTH)/docshell/test/chrome/docshell_helpers.js \
|
|
$(NULL)
|
|
|
|
libs:: $(_SIMPLETEST_FILES)
|
|
$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/$(relativesrcdir)
|
|
|