# ***** 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 Private Browsing.
#
# The Initial Developer of the Original Code is
# Ehsan Akhgari.
# Portions created by the Initial Developer are Copyright (C) 2008
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
#   Ehsan Akhgari <ehsan.akhgari@gmail.com>
#
# 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  = browser/components/privatebrowsing/test/browser

include $(DEPTH)/config/autoconf.mk
include $(topsrcdir)/config/rules.mk

_BROWSER_TEST_FILES =  \
		head.js \
		browser_console_clear.js \
		browser_privatebrowsing_certexceptionsui.js \
		browser_privatebrowsing_commandline_toggle.js \
		browser_privatebrowsing_crh.js \
		browser_privatebrowsing_fastswitch.js \
		browser_privatebrowsing_findbar.js \
		browser_privatebrowsing_forgetthissite.js \
		browser_privatebrowsing_geoprompt.js \
		browser_privatebrowsing_geoprompt_page.html \
		browser_privatebrowsing_import.js \
		browser_privatebrowsing_lastpbcontextexited.js \
		browser_privatebrowsing_localStorage.js \
		browser_privatebrowsing_localStorage_page1.html \
		browser_privatebrowsing_localStorage_page2.html \
		browser_privatebrowsing_newwindow_stopcmd.js \
		browser_privatebrowsing_opendir.js \
		browser_privatebrowsing_openlocation.js \
		browser_privatebrowsing_pageinfo.js \
		browser_privatebrowsing_placestitle.js \
		browser_privatebrowsing_popupblocker.js \
		browser_privatebrowsing_popupmode.js \
		browser_privatebrowsing_protocolhandler.js \
		browser_privatebrowsing_protocolhandler_page.html \
		browser_privatebrowsing_searchbar.js \
		browser_privatebrowsing_sslsite_transition.js \
		browser_privatebrowsing_theming.js \
		browser_privatebrowsing_transition.js \
		browser_privatebrowsing_ui.js \
		browser_privatebrowsing_urlbarfocus.js \
		browser_privatebrowsing_urlbarundo.js \
		browser_privatebrowsing_viewsource.js \
		browser_privatebrowsing_windowtitle.js \
		browser_privatebrowsing_windowtitle_page.html \
		browser_privatebrowsing_zoom.js \
		browser_privatebrowsing_zoomrestore.js \
		browser_privatebrowsing_clearplugindata.js \
		browser_privatebrowsing_clearplugindata.html \
		ctxmenu.html \
		ctxmenu-image.png \
		popup.html \
		staller.sjs \
		title.sjs \
		$(NULL)

# Disabled until bug 564934 is fixed:
#		browser_privatebrowsing_downloadmonitor.js \

# Turn off private browsing tests that perma-timeout on Linux.
ifneq (Linux,$(OS_ARCH))
_BROWSER_TEST_FILES += \
		browser_privatebrowsing_beforeunload.js \
		browser_privatebrowsing_cookieacceptdialog.js \
		$(NULL)
endif

libs:: $(_BROWSER_TEST_FILES)
	$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/browser/$(relativesrcdir)
