2008-08-16 18:25:01 -07:00
|
|
|
# ***** 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 worker threads.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Mozilla Corporation
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 2008
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
|
|
|
# Vladimir Vukicevic <vladimir@pobox.com> (Original Author)
|
|
|
|
# Ben Turner <bent.mozilla@gmail.com>
|
|
|
|
#
|
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either 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 *****
|
|
|
|
|
2011-07-17 12:09:13 -07:00
|
|
|
DEPTH = ../../..
|
2008-08-16 18:25:01 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
2011-07-17 12:09:13 -07:00
|
|
|
relativesrcdir = dom/workers/test
|
2008-08-16 18:25:01 -07:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
2011-01-06 22:21:26 -08:00
|
|
|
|
2011-10-14 08:58:37 -07:00
|
|
|
DIRS = \
|
|
|
|
extensions \
|
|
|
|
$(NULL)
|
|
|
|
|
2008-08-16 18:25:01 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
_TEST_FILES = \
|
2009-01-04 13:41:03 -08:00
|
|
|
test_404.html \
|
2010-11-15 17:39:28 -08:00
|
|
|
test_atob.html \
|
|
|
|
atob_worker.js \
|
2011-11-04 09:32:17 -07:00
|
|
|
test_blobWorkers.html \
|
2009-03-15 15:30:31 -07:00
|
|
|
test_close.html \
|
|
|
|
close_worker.js \
|
2011-11-04 10:57:42 -07:00
|
|
|
test_dataURLWorker.html \
|
2008-11-26 22:16:41 -08:00
|
|
|
test_errorPropagation.html \
|
2011-07-17 12:09:13 -07:00
|
|
|
errorPropagation_iframe.html \
|
|
|
|
errorPropagation_worker.js \
|
|
|
|
test_eventDispatch.html \
|
|
|
|
eventDispatch_worker.js \
|
2008-11-05 22:41:52 -08:00
|
|
|
test_importScripts.html \
|
2008-09-08 10:48:14 -07:00
|
|
|
importScripts_worker.js \
|
|
|
|
importScripts_worker_imported1.js \
|
|
|
|
importScripts_worker_imported2.js \
|
|
|
|
importScripts_worker_imported3.js \
|
|
|
|
importScripts_worker_imported4.js \
|
2008-12-07 16:15:49 -08:00
|
|
|
test_json.html \
|
|
|
|
json_worker.js \
|
2009-08-12 16:39:08 -07:00
|
|
|
test_location.html \
|
|
|
|
location_worker.js \
|
2008-11-04 18:58:24 -08:00
|
|
|
test_longThread.html \
|
2008-11-05 22:41:52 -08:00
|
|
|
longThread_worker.js \
|
2008-11-26 22:16:40 -08:00
|
|
|
test_navigator.html \
|
|
|
|
navigator_worker.js \
|
2008-11-04 18:58:24 -08:00
|
|
|
test_recursion.html \
|
2008-11-05 22:41:52 -08:00
|
|
|
recursion_worker.js \
|
2011-07-17 12:09:13 -07:00
|
|
|
test_recursiveOnerror.html \
|
|
|
|
recursiveOnerror_worker.js \
|
2008-11-26 22:16:41 -08:00
|
|
|
test_relativeLoad.html \
|
|
|
|
relativeLoad_worker.js \
|
|
|
|
relativeLoad_worker2.js \
|
|
|
|
relativeLoad_import.js \
|
2010-03-11 12:36:44 -08:00
|
|
|
test_suspend.html \
|
|
|
|
suspend_iframe.html \
|
|
|
|
suspend_worker.js \
|
2008-11-05 22:41:52 -08:00
|
|
|
test_simpleThread.html \
|
|
|
|
simpleThread_worker.js \
|
2008-11-26 22:16:41 -08:00
|
|
|
test_terminate.html \
|
|
|
|
terminate_worker.js \
|
2008-11-05 22:41:52 -08:00
|
|
|
test_threadErrors.html \
|
|
|
|
threadErrors_worker1.js \
|
|
|
|
threadErrors_worker2.js \
|
|
|
|
threadErrors_worker3.js \
|
|
|
|
threadErrors_worker4.js \
|
|
|
|
test_threadTimeouts.html \
|
|
|
|
threadTimeouts_worker.js \
|
2009-01-13 10:43:20 -08:00
|
|
|
test_throwingOnerror.html \
|
|
|
|
throwingOnerror_worker.js \
|
2008-09-30 16:56:57 -07:00
|
|
|
test_xhr.html \
|
2008-11-05 22:41:52 -08:00
|
|
|
xhr_worker.js \
|
2011-11-07 17:01:29 -08:00
|
|
|
test_xhr2.html \
|
|
|
|
xhr2_worker.js \
|
2008-11-26 22:16:37 -08:00
|
|
|
test_xhrAbort.html \
|
|
|
|
xhrAbort_worker.js \
|
2008-09-30 16:56:57 -07:00
|
|
|
testXHR.txt \
|
2008-11-05 22:41:52 -08:00
|
|
|
test_fibonacci.html \
|
|
|
|
fibonacci_worker.js \
|
2010-04-08 15:57:45 -07:00
|
|
|
test_newError.html \
|
|
|
|
newError_worker.js \
|
2010-04-20 09:44:56 -07:00
|
|
|
test_chromeWorker.html \
|
2011-01-06 22:21:26 -08:00
|
|
|
WorkerTest_badworker.js \
|
2011-07-17 12:09:13 -07:00
|
|
|
test_workersDisabled.html \
|
|
|
|
workersDisabled_worker.js \
|
2008-08-16 18:25:01 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2008-11-26 22:16:41 -08:00
|
|
|
_SUBDIR_TEST_FILES = \
|
|
|
|
relativeLoad_sub_worker.js \
|
|
|
|
relativeLoad_sub_worker2.js \
|
|
|
|
relativeLoad_sub_import.js \
|
|
|
|
$(NULL)
|
|
|
|
|
2010-04-20 09:44:56 -07:00
|
|
|
_CHROME_TEST_FILES = \
|
|
|
|
test_chromeWorker.xul \
|
2011-04-22 10:38:13 -07:00
|
|
|
test_chromeWorkerJSM.xul \
|
2011-10-14 08:58:37 -07:00
|
|
|
test_extension.xul \
|
|
|
|
test_extensionBootstrap.xul \
|
2011-08-15 20:40:38 -07:00
|
|
|
test_file.xul \
|
|
|
|
test_fileMozSlice.xul \
|
|
|
|
test_fileBlobPosting.xul \
|
|
|
|
test_filePosting.xul \
|
|
|
|
test_fileReaderSync.xul \
|
|
|
|
test_fileReaderSyncErrors.xul \
|
|
|
|
test_fileReadMozSlice.xul \
|
|
|
|
test_fileSubWorker.xul \
|
|
|
|
test_fileBlobSubWorker.xul \
|
|
|
|
file_worker.js \
|
|
|
|
fileBlob_worker.js \
|
|
|
|
fileMozSlice_worker.js \
|
|
|
|
filePosting_worker.js \
|
|
|
|
fileReaderSync_worker.js \
|
|
|
|
fileReaderSyncErrors_worker.js \
|
|
|
|
fileReadMozSlice_worker.js \
|
|
|
|
fileSubWorker_worker.js \
|
|
|
|
fileBlobSubWorker_worker.js \
|
2011-05-27 13:13:29 -07:00
|
|
|
WorkerTest.jsm \
|
|
|
|
WorkerTest_worker.js \
|
|
|
|
WorkerTest_subworker.js \
|
2010-04-20 09:44:56 -07:00
|
|
|
chromeWorker_worker.js \
|
|
|
|
chromeWorker_subworker.js \
|
2011-07-17 12:09:13 -07:00
|
|
|
test_workersDisabled.xul \
|
|
|
|
workersDisabled_worker.js \
|
2011-09-22 19:36:09 -07:00
|
|
|
dom_worker_helper.js \
|
2010-04-20 09:44:56 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2011-06-19 16:40:32 -07:00
|
|
|
ifneq ($(OS_ARCH),WINNT)
|
|
|
|
_TEST_FILES += \
|
|
|
|
test_closeOnGC.html \
|
|
|
|
closeOnGC_worker.js \
|
|
|
|
closeOnGC_server.sjs \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2008-08-16 18:25:01 -07:00
|
|
|
libs:: $(_TEST_FILES)
|
2011-11-05 11:35:59 -07:00
|
|
|
$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/tests/$(relativesrcdir)
|
2008-11-26 22:16:41 -08:00
|
|
|
|
|
|
|
libs:: $(_SUBDIR_TEST_FILES)
|
2011-11-05 11:35:59 -07:00
|
|
|
$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/tests/$(relativesrcdir)/subdir
|
2010-04-20 09:44:56 -07:00
|
|
|
|
|
|
|
libs:: $(_CHROME_TEST_FILES)
|
2011-11-05 11:35:59 -07:00
|
|
|
$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/chrome/$(relativesrcdir)
|