2012-03-28 11:36:03 -07: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/.
|
2012-03-28 11:36:03 -07:00
|
|
|
|
2012-06-07 07:49:48 -07:00
|
|
|
DEPTH = ../../..
|
2012-03-28 11:36:03 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
2012-06-07 07:49:48 -07:00
|
|
|
relativesrcdir = dom/browser-element/mochitest
|
2012-03-28 11:36:03 -07:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2012-06-09 09:05:31 -07:00
|
|
|
# Note: browserElementTestHelpers.js looks at the test's filename to determine
|
2012-06-09 09:05:31 -07:00
|
|
|
# whether the test should be OOP. "_oop_" signals OOP, "_inproc_" signals in
|
|
|
|
# process. Default is OOP.
|
|
|
|
|
2012-03-28 11:36:03 -07:00
|
|
|
_TEST_FILES = \
|
2012-06-20 09:15:39 -07:00
|
|
|
file_empty_script.js \
|
2012-03-28 11:36:03 -07:00
|
|
|
file_empty.html \
|
2012-05-23 07:15:31 -07:00
|
|
|
file_focus.html \
|
2012-06-09 09:05:31 -07:00
|
|
|
browserElementTestHelpers.js \
|
2012-06-09 09:05:31 -07:00
|
|
|
test_browserElement_NoAttr.html \
|
|
|
|
test_browserElement_NoPref.html \
|
|
|
|
test_browserElement_NoWhitelist.html \
|
2012-06-09 09:05:31 -07:00
|
|
|
browserElement_LoadEvents.js \
|
|
|
|
test_browserElement_inproc_LoadEvents.html \
|
|
|
|
browserElement_DataURI.js \
|
|
|
|
test_browserElement_inproc_DataURI.html \
|
|
|
|
browserElement_Titlechange.js \
|
|
|
|
test_browserElement_inproc_Titlechange.html \
|
|
|
|
browserElement_TopBarrier.js \
|
|
|
|
test_browserElement_inproc_TopBarrier.html \
|
|
|
|
browserElement_Iconchange.js \
|
|
|
|
test_browserElement_inproc_Iconchange.html \
|
|
|
|
browserElement_GetScreenshot.js \
|
|
|
|
test_browserElement_inproc_GetScreenshot.html \
|
|
|
|
browserElement_SetVisible.js \
|
|
|
|
test_browserElement_inproc_SetVisible.html \
|
|
|
|
browserElement_KeyEvents.js \
|
|
|
|
test_browserElement_inproc_KeyEvents.html \
|
|
|
|
browserElement_Alert.js \
|
|
|
|
test_browserElement_inproc_Alert.html \
|
|
|
|
browserElement_PromptCheck.js \
|
|
|
|
test_browserElement_inproc_PromptCheck.html \
|
|
|
|
browserElement_PromptConfirm.js \
|
|
|
|
test_browserElement_inproc_PromptConfirm.html \
|
|
|
|
browserElement_Close.js \
|
|
|
|
test_browserElement_inproc_Close.html \
|
2012-06-21 08:58:49 -07:00
|
|
|
browserElement_CloseFromOpener.js \
|
|
|
|
test_browserElement_inproc_CloseFromOpener.html \
|
|
|
|
file_browserElement_CloseFromOpener.html \
|
2012-06-12 15:01:25 -07:00
|
|
|
browserElement_OpenWindow.js \
|
|
|
|
test_browserElement_inproc_OpenWindow.html \
|
|
|
|
file_browserElement_Open1.html \
|
|
|
|
file_browserElement_Open2.html \
|
|
|
|
browserElement_OpenWindowRejected.js \
|
|
|
|
test_browserElement_inproc_OpenWindowRejected.html \
|
|
|
|
file_browserElement_OpenWindowRejected.html \
|
2012-06-20 09:15:39 -07:00
|
|
|
browserElement_SecurityChange.js \
|
|
|
|
test_browserElement_inproc_SecurityChange.html \
|
|
|
|
file_browserElement_SecurityChange.html \
|
2012-06-21 08:58:49 -07:00
|
|
|
browserElement_Principal.js \
|
|
|
|
test_browserElement_inproc_Principal.html \
|
2012-03-28 11:36:03 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2012-06-13 14:26:10 -07:00
|
|
|
# OOP tests don't work on Windows (bug 763081).
|
|
|
|
ifneq ($(OS_ARCH),WINNT)
|
|
|
|
_TEST_FILES += \
|
|
|
|
test_browserElement_oop_LoadEvents.html \
|
|
|
|
test_browserElement_oop_DataURI.html \
|
|
|
|
test_browserElement_oop_Titlechange.html \
|
|
|
|
test_browserElement_oop_TopBarrier.html \
|
|
|
|
test_browserElement_oop_Iconchange.html \
|
|
|
|
test_browserElement_oop_GetScreenshot.html \
|
|
|
|
test_browserElement_oop_SetVisible.html \
|
|
|
|
test_browserElement_oop_KeyEvents.html \
|
|
|
|
test_browserElement_oop_Alert.html \
|
|
|
|
test_browserElement_oop_PromptCheck.html \
|
|
|
|
test_browserElement_oop_PromptConfirm.html \
|
|
|
|
test_browserElement_oop_Close.html \
|
2012-06-21 08:58:49 -07:00
|
|
|
test_browserElement_oop_CloseFromOpener.html \
|
2012-06-13 14:26:10 -07:00
|
|
|
test_browserElement_oop_OpenWindow.html \
|
|
|
|
test_browserElement_oop_OpenWindowRejected.html \
|
2012-06-20 09:15:39 -07:00
|
|
|
test_browserElement_oop_SecurityChange.html \
|
2012-06-21 08:58:49 -07:00
|
|
|
test_browserElement_oop_Principal.html \
|
2012-06-13 14:26:10 -07:00
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2012-03-28 11:36:03 -07:00
|
|
|
libs:: $(_TEST_FILES)
|
|
|
|
$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/tests/$(relativesrcdir)
|