# 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           = ../../../..
topsrcdir       = @top_srcdir@
srcdir          = @srcdir@
VPATH           = @srcdir@
relativesrcdir  = browser/devtools/debugger/test

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

_BROWSER_TEST_FILES = \
	browser_dbg_createRemote.js \
	browser_dbg_createChrome.js \
	browser_dbg_debugger-tab-switch.js \
	browser_dbg_debugger-tab-switch-window.js \
	browser_dbg_debuggerstatement.js \
	browser_dbg_listtabs.js \
	browser_dbg_tabactor-01.js \
	browser_dbg_tabactor-02.js \
	browser_dbg_contextactor-01.js \
	browser_dbg_contextactor-02.js \
	testactors.js \
	browser_dbg_nav-01.js \
	browser_dbg_propertyview-01.js \
	browser_dbg_propertyview-02.js \
	browser_dbg_propertyview-03.js \
	browser_dbg_propertyview-04.js \
	browser_dbg_propertyview-05.js \
	browser_dbg_propertyview-06.js \
	browser_dbg_propertyview-07.js \
	browser_dbg_propertyview-08.js \
	browser_dbg_propertyview-09.js \
	browser_dbg_propertyview-10.js \
	browser_dbg_propertyview-edit.js \
	browser_dbg_panesize.js \
	browser_dbg_panesize-inner.js \
	browser_dbg_stack-01.js \
	browser_dbg_stack-02.js \
	browser_dbg_stack-03.js \
	browser_dbg_stack-04.js \
	browser_dbg_stack-05.js \
	browser_dbg_location-changes.js \
	browser_dbg_script-switching.js \
	browser_dbg_scripts-sorting.js \
	browser_dbg_scripts-searching-01.js \
	browser_dbg_scripts-searching-02.js \
	browser_dbg_pause-resume.js \
	browser_dbg_update-editor-mode.js \
	$(warning browser_dbg_select-line.js temporarily disabled due to oranges, see bug 726609) \
	browser_dbg_clean-exit.js \
	browser_dbg_bug723069_editor-breakpoints.js \
	browser_dbg_bug731394_editor-contextmenu.js \
	browser_dbg_displayName.js \
	browser_dbg_iframes.js \
	browser_dbg_pause-exceptions.js \
	browser_dbg_multiple-windows.js \
	browser_dbg_menustatus.js \
	browser_dbg_bfcache.js \
	head.js \
	$(NULL)

_BROWSER_TEST_PAGES = \
	browser_dbg_tab1.html \
	browser_dbg_tab2.html \
	browser_dbg_debuggerstatement.html \
	browser_dbg_stack.html \
	browser_dbg_script-switching.html \
	test-script-switching-01.js \
	test-script-switching-02.js \
	browser_dbg_frame-parameters.html \
	browser_dbg_update-editor-mode.html \
	test-editor-mode \
	browser_dbg_displayName.html \
	browser_dbg_iframes.html \
	browser_dbg_with-frame.html \
	browser_dbg_pause-exceptions.html \
	$(NULL)

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

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