2007-11-15 12:50:51 -08:00
|
|
|
#
|
2012-05-21 04:12:37 -07:00
|
|
|
# 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/.
|
2007-11-15 12:50:51 -08:00
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2007-11-15 12:50:51 -08:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
2012-08-04 11:26:44 -07:00
|
|
|
relativesrcdir = @relativesrcdir@
|
2012-11-28 09:55:41 -08:00
|
|
|
FAIL_ON_WARNINGS = 1
|
2007-11-15 12:50:51 -08:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
2009-02-10 12:56:51 -08:00
|
|
|
|
2009-10-06 14:42:45 -07:00
|
|
|
MODULE = test_widget
|
|
|
|
XPCSHELL_TESTS = unit
|
|
|
|
|
2009-02-10 12:56:51 -08:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
2011-04-14 13:58:36 -07:00
|
|
|
|
2009-08-25 12:13:42 -07:00
|
|
|
ifdef NS_ENABLE_TSF
|
2010-08-10 08:13:37 -07:00
|
|
|
#Test disabled because it uses the internal string APIs incorrectly (see bug 582863)
|
|
|
|
#CPP_UNIT_TESTS += TestWinTSF.cpp \
|
|
|
|
# $(NULL)
|
2009-02-10 12:56:51 -08:00
|
|
|
endif
|
2011-04-14 13:58:36 -07:00
|
|
|
|
|
|
|
# Test disabled because it requires the internal API. Re-enabling this test is
|
|
|
|
# bug 652123.
|
|
|
|
#CPP_UNIT_TESTS += TestChromeMargin.cpp \
|
|
|
|
# $(NULL)
|
2009-02-10 12:56:51 -08:00
|
|
|
endif
|
|
|
|
|
2012-04-06 13:40:10 -07:00
|
|
|
CPP_UNIT_TESTS += TestAppShellSteadyState.cpp
|
|
|
|
|
2012-07-03 13:49:02 -07:00
|
|
|
MOCHITEST_CHROME_FILES = test_bug343416.xul \
|
2009-11-02 11:37:40 -08:00
|
|
|
test_bug429954.xul \
|
|
|
|
window_bug429954.xul \
|
2008-10-20 08:21:02 -07:00
|
|
|
test_bug444800.xul \
|
2012-11-20 16:13:04 -08:00
|
|
|
$(filter disabled-for-intermittent-timeouts--bug-561929, test_bug478536.xul) \
|
2013-01-29 10:12:13 -08:00
|
|
|
test_bug462106_perwindow.xul \
|
2009-02-17 07:55:53 -08:00
|
|
|
window_bug478536.xul \
|
2009-11-02 11:10:07 -08:00
|
|
|
test_bug517396.xul \
|
2010-12-21 03:42:47 -08:00
|
|
|
test_bug538242.xul \
|
|
|
|
window_bug538242.xul \
|
2010-10-08 11:51:50 -07:00
|
|
|
test_bug593307.xul \
|
|
|
|
window_bug593307_offscreen.xul \
|
|
|
|
window_bug593307_centerscreen.xul \
|
2008-05-05 16:01:07 -07:00
|
|
|
test_keycodes.xul \
|
2009-02-12 02:44:38 -08:00
|
|
|
test_wheeltransaction.xul \
|
|
|
|
window_wheeltransaction.xul \
|
2009-05-04 23:15:23 -07:00
|
|
|
test_imestate.html \
|
2010-04-21 06:13:08 -07:00
|
|
|
window_imestate_iframes.html \
|
2009-09-24 02:37:01 -07:00
|
|
|
test_plugin_scroll_consistency.html \
|
2010-03-18 22:02:53 -07:00
|
|
|
test_composition_text_querycontent.xul \
|
|
|
|
window_composition_text_querycontent.xul \
|
2010-06-14 22:05:37 -07:00
|
|
|
test_input_events_on_deactive_window.xul \
|
2010-12-20 21:16:30 -08:00
|
|
|
test_position_on_resize.xul \
|
2012-01-31 02:40:03 -08:00
|
|
|
empty_window.xul \
|
|
|
|
test_sizemode_events.xul \
|
2012-09-19 06:26:19 -07:00
|
|
|
test_bug760802.xul \
|
2007-11-15 12:50:51 -08:00
|
|
|
$(NULL)
|
2012-07-03 13:49:02 -07:00
|
|
|
|
2010-10-24 18:32:12 -07:00
|
|
|
# test_bug413277.html mac-only based on 604789, 605178
|
2007-11-15 12:50:51 -08:00
|
|
|
|
2008-06-28 00:55:30 -07:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
|
2012-07-03 13:49:02 -07:00
|
|
|
MOCHITEST_CHROME_FILES += native_menus_window.xul \
|
2008-08-26 10:08:34 -07:00
|
|
|
test_native_menus.xul \
|
2009-09-22 19:31:37 -07:00
|
|
|
native_mouse_mac_window.xul \
|
|
|
|
test_native_mouse_mac.xul \
|
2010-10-24 18:32:12 -07:00
|
|
|
test_bug413277.html \
|
2009-01-01 06:26:16 -08:00
|
|
|
test_bug428405.xul \
|
|
|
|
test_bug466599.xul \
|
2009-10-05 20:02:50 -07:00
|
|
|
test_bug485118.xul \
|
2009-11-02 11:07:57 -08:00
|
|
|
test_bug522217.xul \
|
|
|
|
window_bug522217.xul \
|
2009-09-23 23:19:40 -07:00
|
|
|
test_platform_colors.xul \
|
2010-02-07 19:38:14 -08:00
|
|
|
test_standalone_native_menu.xul \
|
|
|
|
standalone_native_menu_window.xul \
|
2010-08-12 23:33:09 -07:00
|
|
|
test_bug586713.xul \
|
|
|
|
bug586713_window.xul \
|
2010-08-16 20:26:17 -07:00
|
|
|
test_key_event_counts.xul \
|
2011-05-16 06:15:43 -07:00
|
|
|
test_bug596600.xul \
|
2011-08-18 06:22:52 -07:00
|
|
|
test_bug673301.xul \
|
2009-01-01 06:26:16 -08:00
|
|
|
$(NULL)
|
2008-06-28 00:55:30 -07:00
|
|
|
endif
|
|
|
|
|
2009-10-05 19:26:54 -07:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
2012-07-03 13:49:02 -07:00
|
|
|
MOCHITEST_CHROME_FILES += taskbar_previews.xul \
|
2009-11-10 08:24:10 -08:00
|
|
|
window_state_windows.xul \
|
2009-10-06 12:00:23 -07:00
|
|
|
taskbar_progress.xul \
|
2010-12-02 08:52:10 -08:00
|
|
|
test_chrome_context_menus_win.xul \
|
2011-04-20 16:54:43 -07:00
|
|
|
test_plugin_input_event.html \
|
2010-12-02 08:52:10 -08:00
|
|
|
chrome_context_menus_win.xul \
|
2012-03-21 17:59:12 -07:00
|
|
|
test_mouse_scroll.xul \
|
|
|
|
window_mouse_scroll_win.html \
|
2009-10-06 12:00:23 -07:00
|
|
|
$(NULL)
|
2010-06-09 12:08:09 -07:00
|
|
|
|
2012-07-24 18:35:32 -07:00
|
|
|
MOCHITEST_FILES += test_bug565392.html \
|
2011-12-14 13:22:53 -08:00
|
|
|
test_picker_no_crash.html \
|
|
|
|
window_picker_no_crash_child.html \
|
2010-06-09 12:08:09 -07:00
|
|
|
$(NULL)
|
2009-10-05 19:26:54 -07:00
|
|
|
endif
|
|
|
|
|
2009-12-13 18:32:46 -08:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2)
|
2012-07-24 18:35:32 -07:00
|
|
|
MOCHITEST_FILES += plugin_scroll_invalidation.html \
|
2009-12-13 18:32:46 -08:00
|
|
|
test_plugin_scroll_invalidation.html \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2012-07-03 13:49:02 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|