gecko/widget/tests/Makefile.in
2012-05-21 12:12:37 +01:00

118 lines
3.2 KiB
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 = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
relativesrcdir = widget/tests
include $(DEPTH)/config/autoconf.mk
MODULE = test_widget
XPCSHELL_TESTS = unit
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
ifdef NS_ENABLE_TSF
#Test disabled because it uses the internal string APIs incorrectly (see bug 582863)
#CPP_UNIT_TESTS += TestWinTSF.cpp \
# $(NULL)
endif
# Test disabled because it requires the internal API. Re-enabling this test is
# bug 652123.
#CPP_UNIT_TESTS += TestChromeMargin.cpp \
# $(NULL)
endif
CPP_UNIT_TESTS += TestAppShellSteadyState.cpp
include $(topsrcdir)/config/rules.mk
_TEST_FILES =
_CHROME_FILES = test_bug343416.xul \
test_bug429954.xul \
window_bug429954.xul \
test_bug444800.xul \
test_bug462106.xul \
test_bug478536.xul \
window_bug478536.xul \
test_bug517396.xul \
test_bug538242.xul \
window_bug538242.xul \
test_bug593307.xul \
window_bug593307_offscreen.xul \
window_bug593307_centerscreen.xul \
test_keycodes.xul \
test_wheeltransaction.xul \
window_wheeltransaction.xul \
test_imestate.html \
window_imestate_iframes.html \
test_plugin_scroll_consistency.html \
test_composition_text_querycontent.xul \
window_composition_text_querycontent.xul \
test_input_events_on_deactive_window.xul \
test_position_on_resize.xul \
empty_window.xul \
test_sizemode_events.xul \
$(NULL)
# test_bug413277.html mac-only based on 604789, 605178
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
_CHROME_FILES += native_menus_window.xul \
test_native_menus.xul \
native_mouse_mac_window.xul \
test_native_mouse_mac.xul \
test_bug413277.html \
test_bug428405.xul \
test_bug466599.xul \
test_bug485118.xul \
test_bug522217.xul \
window_bug522217.xul \
test_platform_colors.xul \
test_standalone_native_menu.xul \
standalone_native_menu_window.xul \
test_bug586713.xul \
bug586713_window.xul \
test_key_event_counts.xul \
test_bug596600.xul \
test_bug673301.xul \
$(NULL)
endif
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
_CHROME_FILES += taskbar_previews.xul \
window_state_windows.xul \
taskbar_progress.xul \
test_chrome_context_menus_win.xul \
test_plugin_input_event.html \
chrome_context_menus_win.xul \
test_mouse_scroll.xul \
window_mouse_scroll_win.html \
$(NULL)
_TEST_FILES += test_bug565392.html \
test_picker_no_crash.html \
window_picker_no_crash_child.html \
$(NULL)
endif
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2)
_TEST_FILES += plugin_scroll_invalidation.html \
test_plugin_scroll_invalidation.html \
$(NULL)
endif
ifdef _TEST_FILES
libs:: $(_TEST_FILES)
$(INSTALL) $^ $(DEPTH)/_tests/testing/mochitest/tests/$(relativesrcdir)
endif
libs:: $(_CHROME_FILES)
$(INSTALL) $^ $(DEPTH)/_tests/testing/mochitest/chrome/$(relativesrcdir)