# ***** 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 sessionstore test code.
#
# The Initial Developer of the Original Code is
# Mozilla Foundation.
# Portions created by the Initial Developer are Copyright (C) 2008
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
#   Simon Bünzli <zeniko@gmail.com>
#   Michael Kraft <morac99-firefox2@yahoo.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/sessionstore/test

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

# browser_506482.js is disabled because of frequent failures (bug 538672)
# browser_526613.js is disabled because of frequent failures (bug 534489)

_BROWSER_TEST_FILES = \
	head.js \
	browser_form_restore_events.js \
	browser_form_restore_events_sample.html \
	browser_248970_a.js \
	browser_248970_b.js \
	browser_248970_b_sample.html \
	browser_339445.js \
	browser_339445_sample.html \
	browser_345898.js \
	browser_346337.js \
	browser_346337_sample.html \
	browser_350525.js \
	browser_354894.js \
	browser_367052.js \
	browser_393716.js \
	browser_394759_basic.js \
	browser_394759_behavior.js \
	browser_394759_purge.js \
	browser_394759_privatebrowsing.js \
	browser_408470.js \
	browser_408470_sample.html \
	browser_423132.js \
	browser_423132_sample.html \
	browser_447951.js \
	browser_447951_sample.html \
	browser_448741.js \
	browser_454908.js \
	browser_454908_sample.html \
	browser_456342.js \
	browser_456342_sample.xhtml \
	browser_459906.js \
	browser_459906_empty.html \
	browser_459906_sample.html \
	browser_461634.js \
	browser_461743.js \
	browser_461743_sample.html \
	browser_463205.js \
	browser_463205_helper.html \
	browser_463205_sample.html \
	browser_463206.js \
	browser_463206_sample.html \
	browser_464199.js \
	browser_464620_a.js \
	browser_464620_a.html \
	browser_464620_b.js \
	browser_464620_b.html \
	browser_464620_xd.html \
	browser_465215.js \
	browser_465223.js \
	browser_466937.js \
	browser_466937_sample.html \
	browser_467409-backslashplosion.js \
	browser_477657.js \
	browser_480148.js \
	browser_480893.js \
	browser_483330.js \
	browser_485482.js \
	browser_485482_sample.html \
	browser_485563.js \
	browser_490040.js \
	browser_491168.js \
	browser_491577.js \
	browser_493467.js \
	browser_495495.js \
	browser_500328.js \
	browser_514751.js \
	browser_522375.js \
	browser_522545.js \
	browser_524745.js \
	browser_528776.js \
	browser_579868.js \
	browser_579879.js \
	browser_580512.js \
	browser_581593.js \
	browser_581937.js \
	browser_586147.js \
	browser_586068-cascaded_restore.js \
	browser_588426.js \
	browser_589246.js \
	browser_590268.js \
	browser_590563.js \
	browser_595601-restore_hidden.js \
	browser_597315.js \
	browser_597315_index.html \
	browser_597315_a.html \
	browser_597315_b.html \
	browser_597315_c.html \
	browser_597315_c1.html \
	browser_597315_c2.html \
	browser_599909.js \
	browser_600545.js \
	browser_601955.js \
	browser_607016.js \
	browser_615394-SSWindowState_events.js \
	browser_618151.js \
	browser_623779.js \
	browser_624727.js \
	browser_625257.js \
	browser_628270.js \
	browser_635418.js \
	browser_636279.js \
	browser_644409-scratchpads.js \
	browser_645428.js \
	browser_659591.js \
	browser_662812.js \
	browser_665702-state_session.js \
	browser_682507.js \
	browser_687710.js \
	browser_687710_2.js \
	browser_694378.js \
	browser_701377.js \
	browser_705597.js \
	browser_707862.js \
	browser_739805.js \
	$(NULL)

ifneq ($(OS_ARCH),Darwin)
_BROWSER_TEST_FILES += \
	browser_597071.js \
	browser_625016.js \
	$(NULL)
endif

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