# 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/.

DEPTH		= @DEPTH@
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@
relativesrcdir  = @relativesrcdir@

include $(DEPTH)/config/autoconf.mk

# browser_506482.js is disabled because of frequent failures (bug 538672)
# browser_526613.js is disabled because of frequent failures (bug 534489)
# browser_589246.js is disabled for leaking browser windows (bug 752467)
# browser_580512.js is disabled for leaking browser windows (bug 752467)

MOCHITEST_BROWSER_FILES = \
	head.js \
	browser_form_restore_events.js \
	browser_form_restore_events_sample.html \
	browser_formdata_format.js \
	browser_formdata_format_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_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_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_581593.js \
	browser_581937.js \
	browser_586147.js \
	browser_586068-apptabs.js \
	browser_586068-apptabs_ondemand.js \
	browser_586068-browser_state_interrupted.js \
	browser_586068-cascade.js \
	browser_586068-multi_window.js \
	browser_586068-reload.js \
	browser_586068-select.js \
	browser_586068-window_state.js \
	browser_586068-window_state_override.js \
	browser_588426.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_662743.js \
	browser_662743_sample.html \
	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_739531.js \
	browser_739531_sample.html \
	browser_739805.js \
	$(NULL)

$(warning browser_459906.js is disabled for intermittent failures. Bug 766044)
#	browser_459906_empty.html \
#	browser_459906_sample.html \

# Disabled on Windows for frequent intermittent failures
ifneq ($(OS_ARCH), WINNT)
MOCHITEST_FILES += \
	browser_464620_a.js \
	browser_464620_a.html \
	browser_464620_b.js \
	browser_464620_b.html \
	browser_464620_xd.html \
	$(NULL)
else
$(warning browser_464620_a.js is disabled on Windows for intermittent failures. Bug 552424)
$(warning browser_464620_b.js is disabled on Windows for intermittent failures. Bug 552424)
endif

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

include $(topsrcdir)/config/rules.mk
