2008-07-30 08:55:27 +04: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 Mozilla code.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is the Mozilla Corporation.
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 2007
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
|
|
|
# Chris Double <chris.double@double.co.nz>
|
|
|
|
#
|
|
|
|
# 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 *****
|
|
|
|
|
2009-06-26 08:23:15 +04:00
|
|
|
DEPTH = ../../..
|
2008-07-30 08:55:27 +04:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
2009-06-26 08:23:15 +04:00
|
|
|
relativesrcdir = content/media/test
|
2008-07-30 08:55:27 +04:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2009-07-10 06:03:01 +04:00
|
|
|
# Media tests should be backend independent, i.e., not conditioned on
|
|
|
|
# MOZ_OGG, MOZ_WAVE etc. (The only exception is the can_play_type tests,
|
|
|
|
# which necessarily depend on the backend(s) configured.) As far as possible,
|
|
|
|
# each test should work with any resource type. This makes it
|
|
|
|
# easy to add new backends and reduces the amount of test duplication.
|
|
|
|
|
|
|
|
# For each supported backend, resources that can be played by that backend
|
|
|
|
# should be added to the lists in manifest.js. Media tests that aren't
|
|
|
|
# testing for a bug in handling a specific resource type should pick one of
|
|
|
|
# the lists in manifest.js and run the test for each resource in the list
|
|
|
|
# that is supported in the current build (the canPlayType API is useful
|
|
|
|
# for this).
|
|
|
|
|
|
|
|
# To test whether a valid resource can simply be played through correctly,
|
|
|
|
# and optionally that its metadata is read correctly, just
|
|
|
|
# add it to gPlayTests in manifest.js. To test whether an invalid
|
|
|
|
# resource correctly throws an error (and does not cause a crash or hang),
|
|
|
|
# just add it to gErrorTests in manifest.js.
|
|
|
|
|
|
|
|
# To test for a specific bug in handling a specific resource type,
|
|
|
|
# make the test first check canPlayType for the type, and if it's not
|
|
|
|
# supported, just do ok(true, "Type not supported") and stop the test.
|
|
|
|
|
2008-12-16 02:31:51 +03:00
|
|
|
_TEST_FILES = \
|
2008-12-17 05:11:07 +03:00
|
|
|
can_play_type_ogg.js \
|
|
|
|
can_play_type_wave.js \
|
2009-07-10 06:03:01 +04:00
|
|
|
manifest.js \
|
2009-07-10 06:03:02 +04:00
|
|
|
seek1.js \
|
|
|
|
seek2.js \
|
|
|
|
seek3.js \
|
|
|
|
seek4.js \
|
|
|
|
seek5.js \
|
|
|
|
seek6.js \
|
|
|
|
seek7.js \
|
|
|
|
seek8.js \
|
|
|
|
seek9.js \
|
2009-07-10 06:03:02 +04:00
|
|
|
test_audio1.html \
|
|
|
|
test_audio2.html \
|
2009-05-18 06:00:44 +04:00
|
|
|
test_autobuffer.html \
|
2008-12-16 02:31:51 +03:00
|
|
|
test_autoplay.html \
|
2008-12-17 05:11:07 +03:00
|
|
|
test_can_play_type.html \
|
2008-12-16 02:31:51 +03:00
|
|
|
test_constants.html \
|
|
|
|
test_controls.html \
|
|
|
|
test_currentTime.html \
|
2009-07-10 06:03:01 +04:00
|
|
|
test_decoder_disable.html \
|
|
|
|
test_load.html \
|
|
|
|
test_media_selection.html \
|
2008-12-16 02:31:51 +03:00
|
|
|
test_networkState.html \
|
|
|
|
test_paused.html \
|
2009-07-10 06:03:01 +04:00
|
|
|
test_playback.html \
|
|
|
|
test_playback_errors.html \
|
2008-12-16 02:31:51 +03:00
|
|
|
test_readyState.html \
|
|
|
|
test_seek2.html \
|
|
|
|
test_volume.html \
|
2009-04-01 04:52:56 +04:00
|
|
|
use_large_cache.js \
|
2008-12-16 02:31:51 +03:00
|
|
|
$(NULL)
|
|
|
|
|
2009-07-13 02:45:36 +04:00
|
|
|
ifneq ($(OS_ARCH),WINNT)
|
|
|
|
# These tests are disabled on windows until we
|
|
|
|
# figure out the random failures. See bug 475369.
|
|
|
|
_TEST_FILES += \
|
|
|
|
test_seek.html \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2009-07-10 06:03:01 +04:00
|
|
|
# Ogg sample files
|
|
|
|
_TEST_FILES += \
|
|
|
|
320x240.ogv \
|
|
|
|
320x240.allow-origin.ogv \
|
|
|
|
320x240.allow-origin.ogv^headers^ \
|
2009-08-04 06:44:45 +04:00
|
|
|
448636.ogv \
|
2009-07-10 06:03:01 +04:00
|
|
|
bug461281.ogg \
|
|
|
|
bug482461.ogv \
|
|
|
|
seek.ogv \
|
|
|
|
small-shot.ogg \
|
|
|
|
sound.ogg \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
# Wave sample files
|
|
|
|
_TEST_FILES += \
|
|
|
|
big.wav \
|
|
|
|
r11025_s16_c1.wav \
|
|
|
|
r11025_s16_c1_trailing.wav \
|
|
|
|
r11025_u8_c1.wav \
|
|
|
|
r11025_u8_c1_trunc.wav \
|
|
|
|
r16000_u8_c1_list.wav \
|
|
|
|
$(NULL)
|
|
|
|
|
2009-07-10 06:03:01 +04:00
|
|
|
# These tests need to be converted to be backend-independent. This list
|
|
|
|
# is deprecated, do not add to it.
|
2008-12-16 02:31:51 +03:00
|
|
|
ifdef MOZ_OGG
|
|
|
|
_TEST_FILES += \
|
2009-05-14 01:52:50 +04:00
|
|
|
dynamic_redirect.sjs \
|
2009-01-24 14:00:17 +03:00
|
|
|
test_access_control.html \
|
|
|
|
file_access_controls.html \
|
2008-12-16 02:31:51 +03:00
|
|
|
test_bug448534.html \
|
2009-02-19 20:23:13 +03:00
|
|
|
test_bug468190.html \
|
2009-05-19 02:47:08 +04:00
|
|
|
test_bug493187.html \
|
2009-05-28 07:49:22 +04:00
|
|
|
test_bug495145.html \
|
2009-05-31 14:02:17 +04:00
|
|
|
test_bug495300.html \
|
2009-06-02 01:54:16 +04:00
|
|
|
test_bug495319.html \
|
2009-05-18 06:02:20 +04:00
|
|
|
test_closing_connections.html \
|
2009-02-07 13:10:34 +03:00
|
|
|
test_contentDuration1.html \
|
|
|
|
test_contentDuration2.html \
|
|
|
|
test_contentDuration3.html \
|
|
|
|
test_contentDuration4.html \
|
|
|
|
test_contentDuration5.html \
|
|
|
|
test_contentDuration6.html \
|
2009-03-09 00:01:03 +03:00
|
|
|
test_delay_load.html \
|
2008-12-16 02:31:51 +03:00
|
|
|
test_duration1.html \
|
|
|
|
test_ended1.html \
|
|
|
|
test_ended2.html \
|
2009-02-15 19:26:32 +03:00
|
|
|
test_error_on_404.html \
|
2009-03-09 00:02:14 +03:00
|
|
|
test_info_leak.html \
|
2008-12-16 02:31:51 +03:00
|
|
|
test_onloadedmetadata.html \
|
2009-02-20 05:49:00 +03:00
|
|
|
test_load_candidates.html \
|
2009-05-14 01:52:50 +04:00
|
|
|
test_mixed_principals.html \
|
2009-03-08 23:59:08 +03:00
|
|
|
test_play.html \
|
2009-02-05 11:02:21 +03:00
|
|
|
test_progress1.html \
|
2009-01-15 23:26:51 +03:00
|
|
|
test_progress3.html \
|
2009-02-16 04:05:28 +03:00
|
|
|
test_source.html \
|
|
|
|
test_source_write.html \
|
2008-12-16 02:31:51 +03:00
|
|
|
test_standalone.html \
|
|
|
|
test_timeupdate1.html \
|
|
|
|
test_timeupdate2.html \
|
2009-01-24 14:00:17 +03:00
|
|
|
redirect.sjs \
|
2009-02-07 13:10:34 +03:00
|
|
|
contentDuration1.sjs \
|
|
|
|
contentDuration2.sjs \
|
|
|
|
contentDuration3.sjs \
|
|
|
|
contentDuration4.sjs \
|
|
|
|
contentDuration5.sjs \
|
|
|
|
contentDuration6.sjs \
|
2008-12-16 02:31:51 +03:00
|
|
|
$(NULL)
|
2009-05-19 09:44:23 +04:00
|
|
|
# These tests disabled until we figure out random failures.
|
|
|
|
# Bug 492821:
|
2009-05-16 07:20:39 +04:00
|
|
|
# test_videoDocumentTitle.html
|
2009-05-19 09:44:23 +04:00
|
|
|
# Bug 493692:
|
|
|
|
# test_autobuffer2.html
|
2009-01-27 05:33:03 +03:00
|
|
|
ifneq ($(OS_ARCH),WINNT)
|
|
|
|
# These tests are disabled on windows until we
|
|
|
|
# figure out the random failures. See bug 475369.
|
|
|
|
_TEST_FILES += \
|
|
|
|
test_timeupdate3.html \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
2009-07-10 06:03:01 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_OGG
|
|
|
|
_TEST_FILES += \
|
|
|
|
test_can_play_type_ogg.html \
|
|
|
|
$(NULL)
|
2008-12-17 05:11:07 +03:00
|
|
|
else
|
|
|
|
_TEST_FILES += \
|
|
|
|
test_can_play_type_no_ogg.html \
|
|
|
|
$(NULL)
|
2008-12-16 02:31:51 +03:00
|
|
|
endif
|
|
|
|
|
2009-07-10 06:03:01 +04:00
|
|
|
# These tests need to be converted to be backend-independent. This list
|
|
|
|
# is deprecated, do not add to it.
|
2008-12-16 02:31:51 +03:00
|
|
|
ifdef MOZ_WAVE
|
|
|
|
_TEST_FILES += \
|
2008-12-16 06:32:03 +03:00
|
|
|
test_bug463162.xhtml \
|
2009-02-19 20:23:13 +03:00
|
|
|
test_bug465498.html \
|
|
|
|
test_bug468190_wav.html \
|
2009-05-28 07:49:22 +04:00
|
|
|
test_bug495145_wav.html \
|
2009-02-26 14:55:30 +03:00
|
|
|
test_paused_after_ended.html \
|
2009-06-09 18:07:22 +04:00
|
|
|
test_progress2.html \
|
|
|
|
test_progress4.html \
|
2008-12-16 02:31:51 +03:00
|
|
|
test_wav_ended1.html \
|
2009-02-19 20:23:13 +03:00
|
|
|
test_wav_ended2.html \
|
|
|
|
test_wav_onloadedmetadata.html \
|
|
|
|
test_wav_timeupdate1.html \
|
|
|
|
test_wav_timeupdate2.html \
|
2008-12-16 02:31:51 +03:00
|
|
|
test_wav_trunc_seek.html \
|
|
|
|
$(NULL)
|
2009-05-25 04:42:19 +04:00
|
|
|
# Disabled since we don't play Wave files standalone, for now
|
|
|
|
# test_wav_standalone.html
|
|
|
|
# test_audioDocumentTitle.html
|
2009-07-10 06:03:01 +04:00
|
|
|
endif
|
2009-05-25 04:42:19 +04:00
|
|
|
|
2008-12-16 02:31:51 +03:00
|
|
|
ifdef MOZ_WAVE
|
|
|
|
_TEST_FILES += \
|
2009-07-10 06:03:01 +04:00
|
|
|
test_can_play_type_wave.html \
|
|
|
|
$(NULL)
|
|
|
|
else
|
|
|
|
_TEST_FILES += \
|
|
|
|
test_can_play_type_no_wave.html \
|
2008-12-16 02:31:51 +03:00
|
|
|
$(NULL)
|
|
|
|
endif
|
2008-07-30 08:55:27 +04:00
|
|
|
|
|
|
|
libs:: $(_TEST_FILES)
|
|
|
|
$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/tests/$(relativesrcdir)
|