gecko/widget/tests/Makefile.in

137 lines
4.2 KiB
Makefile

#
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is
# Mozilla Foundation.
# Portions created by the Initial Developer are Copyright (C) 2007
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the terms of
# either of the GNU General Public License Version 2 or later (the "GPL"),
# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
# in which case the provisions of the GPL or the LGPL are applicable instead
# of those above. If you wish to allow use of your version of this file only
# under the terms of either the GPL or the LGPL, and not to allow others to
# use your version of this file under the terms of the MPL, indicate your
# decision by deleting the provisions above and replace them with the notice
# and other provisions required by the GPL or the LGPL. If you do not delete
# the provisions above, a recipient may use your version of this file under
# the terms of any one of the MPL, the GPL or the LGPL.
#
# ***** END LICENSE BLOCK *****
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
CPP_UNIT_TESTS += TestChromeMargin.cpp \
$(NULL)
endif
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 \
$(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 \
$(NULL)
endif
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
ifneq ($(OS_ARCH), WINCE)
_CHROME_FILES += taskbar_previews.xul \
window_state_windows.xul \
taskbar_progress.xul \
test_chrome_context_menus_win.xul \
chrome_context_menus_win.xul \
$(NULL)
_TEST_FILES += test_bug565392.html \
$(NULL)
endif
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)