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-09-07 07:25:22 +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 = \
|
2010-05-31 02:02:06 +04:00
|
|
|
allowed.sjs \
|
2008-12-17 05:11:07 +03:00
|
|
|
can_play_type_ogg.js \
|
|
|
|
can_play_type_wave.js \
|
2010-06-09 03:31:27 +04:00
|
|
|
can_play_type_webm.js \
|
2009-10-15 06:20:49 +04:00
|
|
|
cancellable_request.sjs \
|
2010-05-31 02:02:06 +04:00
|
|
|
dynamic_redirect.sjs \
|
2011-11-25 06:06:22 +04:00
|
|
|
dynamic_resource.sjs \
|
2010-05-31 02:02:06 +04:00
|
|
|
file_access_controls.html \
|
2011-08-25 03:42:27 +04:00
|
|
|
fragment_play.js \
|
|
|
|
fragment_noplay.js \
|
2009-07-10 06:03:01 +04:00
|
|
|
manifest.js \
|
2009-10-01 18:10:13 +04:00
|
|
|
reactivate_helper.html \
|
2010-05-31 02:02:06 +04:00
|
|
|
redirect.sjs \
|
2010-09-16 21:36:23 +04:00
|
|
|
referer.sjs \
|
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-10-21 07:24:21 +04:00
|
|
|
seek10.js \
|
2010-05-31 02:02:06 +04:00
|
|
|
seek11.js \
|
2011-02-01 05:57:13 +03:00
|
|
|
seek12.js \
|
|
|
|
seek13.js \
|
2011-02-21 06:38:29 +03:00
|
|
|
seekLies.sjs \
|
2010-05-31 02:02:06 +04:00
|
|
|
test_access_control.html \
|
2009-07-10 06:03:02 +04:00
|
|
|
test_audio1.html \
|
|
|
|
test_audio2.html \
|
2008-12-16 02:31:51 +03:00
|
|
|
test_autoplay.html \
|
2010-10-15 04:13:29 +04:00
|
|
|
test_autoplay_contentEditable.html \
|
2010-08-05 11:40:35 +04:00
|
|
|
test_buffered.html \
|
2010-05-31 02:02:06 +04:00
|
|
|
test_bug448534.html \
|
|
|
|
test_bug463162.xhtml \
|
|
|
|
test_bug465498.html \
|
|
|
|
test_bug493187.html \
|
|
|
|
test_bug495145.html \
|
2009-10-20 06:48:03 +04:00
|
|
|
test_bug495300.html \
|
2011-09-30 08:13:15 +04:00
|
|
|
test_bug686942.html \
|
2008-12-17 05:11:07 +03:00
|
|
|
test_can_play_type.html \
|
2010-05-31 02:02:06 +04:00
|
|
|
test_closing_connections.html \
|
2008-12-16 02:31:51 +03:00
|
|
|
test_constants.html \
|
|
|
|
test_controls.html \
|
|
|
|
test_currentTime.html \
|
2009-09-22 04:08:13 +04:00
|
|
|
test_decode_error.html \
|
2009-07-10 06:03:01 +04:00
|
|
|
test_decoder_disable.html \
|
2011-12-15 23:36:46 +04:00
|
|
|
test_defaultMuted.html \
|
2010-05-31 02:02:06 +04:00
|
|
|
test_delay_load.html \
|
|
|
|
test_error_on_404.html \
|
2010-10-16 23:58:20 +04:00
|
|
|
test_error_in_video_document.html \
|
2010-05-31 02:02:06 +04:00
|
|
|
test_info_leak.html \
|
2009-07-10 06:03:01 +04:00
|
|
|
test_load.html \
|
2010-05-31 02:02:06 +04:00
|
|
|
test_load_candidates.html \
|
2011-11-25 06:06:22 +04:00
|
|
|
test_load_same_resource.html \
|
2010-07-26 02:45:18 +04:00
|
|
|
test_load_source.html \
|
2011-11-21 02:59:01 +04:00
|
|
|
test_loop.html \
|
2009-07-10 06:03:01 +04:00
|
|
|
test_media_selection.html \
|
2009-09-15 06:30:44 +04:00
|
|
|
test_mozLoadFrom.html \
|
2012-01-30 11:04:44 +04:00
|
|
|
test_no_load_event.html \
|
2008-12-16 02:31:51 +03:00
|
|
|
test_networkState.html \
|
2010-03-18 06:00:18 +03:00
|
|
|
test_new_audio.html \
|
2008-12-16 02:31:51 +03:00
|
|
|
test_paused.html \
|
2010-05-31 02:02:06 +04:00
|
|
|
test_paused_after_ended.html \
|
|
|
|
test_play_events.html \
|
2010-08-02 09:53:45 +04:00
|
|
|
test_play_events_2.html \
|
2009-07-10 06:03:01 +04:00
|
|
|
test_playback.html \
|
|
|
|
test_playback_errors.html \
|
2011-08-09 14:10:48 +04:00
|
|
|
test_seekable1.html \
|
2010-08-27 06:11:46 +04:00
|
|
|
test_preload_actions.html \
|
|
|
|
test_preload_attribute.html \
|
2010-05-31 02:02:06 +04:00
|
|
|
test_progress.html \
|
2009-10-01 18:10:13 +04:00
|
|
|
test_reactivate.html \
|
2008-12-16 02:31:51 +03:00
|
|
|
test_readyState.html \
|
2010-05-31 02:02:06 +04:00
|
|
|
test_replay_metadata.html \
|
2010-04-02 07:03:07 +04:00
|
|
|
test_seek.html \
|
2008-12-16 02:31:51 +03:00
|
|
|
test_seek2.html \
|
2011-02-21 06:38:29 +03:00
|
|
|
test_seekLies.html \
|
2010-05-31 02:02:06 +04:00
|
|
|
test_seek_out_of_range.html \
|
|
|
|
test_source.html \
|
|
|
|
test_source_write.html \
|
|
|
|
test_standalone.html \
|
|
|
|
test_timeupdate_small_files.html \
|
2012-01-19 22:30:29 +04:00
|
|
|
test_too_many_elements.html \
|
2008-12-16 02:31:51 +03:00
|
|
|
test_volume.html \
|
2010-05-31 02:02:06 +04:00
|
|
|
test_video_to_canvas.html \
|
2009-04-01 04:52:56 +04:00
|
|
|
use_large_cache.js \
|
2010-08-25 17:10:00 +04:00
|
|
|
test_audiowrite.html \
|
2008-12-16 02:31:51 +03:00
|
|
|
$(NULL)
|
|
|
|
|
2011-01-30 07:36:19 +03:00
|
|
|
# Don't run in suite
|
|
|
|
ifndef MOZ_SUITE
|
|
|
|
_TEST_FILES += test_play_twice.html
|
|
|
|
else
|
|
|
|
$(warning test_play_twice.html is disabled pending investigation. Bug 598252)
|
|
|
|
endif
|
|
|
|
|
2010-05-31 02:02:06 +04:00
|
|
|
# These tests are disabled until we figure out random failures.
|
|
|
|
# When these tests are fixed, we should also make them backend-independent.
|
2009-10-15 08:53:00 +04:00
|
|
|
# test_resume.html \
|
2010-05-31 02:02:06 +04:00
|
|
|
# Bug 492821:
|
|
|
|
# test_videoDocumentTitle.html
|
|
|
|
# Bug 493692:
|
2010-08-20 02:50:37 +04:00
|
|
|
# test_preload_suspend.html
|
2010-08-21 05:46:19 +04:00
|
|
|
# Bug 567954 and Bug 574586:
|
|
|
|
# test_mixed_principals.html
|
2010-05-31 02:02:06 +04:00
|
|
|
# Disabled since we don't play Wave files standalone, for now
|
|
|
|
# test_audioDocumentTitle.html
|
|
|
|
|
2010-06-09 03:31:27 +04:00
|
|
|
# sample files
|
2009-07-10 06:03:01 +04:00
|
|
|
_TEST_FILES += \
|
|
|
|
320x240.ogv \
|
2009-08-04 06:44:45 +04:00
|
|
|
448636.ogv \
|
2010-04-02 07:03:07 +04:00
|
|
|
audio-overhang.ogg \
|
2010-08-13 06:28:15 +04:00
|
|
|
audio-gaps.ogg \
|
2009-10-05 02:54:13 +04:00
|
|
|
beta-phrasebook.ogg \
|
2009-09-22 04:08:13 +04:00
|
|
|
bogus.ogv \
|
2009-09-07 07:25:22 +04:00
|
|
|
bug495129.ogv \
|
2010-04-02 07:03:07 +04:00
|
|
|
bug495794.ogg \
|
2009-07-10 06:03:01 +04:00
|
|
|
bug461281.ogg \
|
|
|
|
bug482461.ogv \
|
2011-02-18 05:30:33 +03:00
|
|
|
bug482461-theora.ogv \
|
2009-10-12 04:07:51 +04:00
|
|
|
bug498380.ogv \
|
2009-08-04 10:13:40 +04:00
|
|
|
bug498855-1.ogv \
|
|
|
|
bug498855-2.ogv \
|
|
|
|
bug498855-3.ogv \
|
2009-08-04 10:13:33 +04:00
|
|
|
bug499519.ogv \
|
2009-08-04 10:13:40 +04:00
|
|
|
bug500311.ogv \
|
|
|
|
bug500311.ogv^headers^ \
|
2009-09-07 07:25:22 +04:00
|
|
|
bug501279.ogg \
|
2009-09-15 09:53:49 +04:00
|
|
|
bug504613.ogv \
|
2009-09-07 07:25:22 +04:00
|
|
|
bug504644.ogv \
|
2009-10-03 08:08:12 +04:00
|
|
|
bug504843.ogv \
|
2009-09-07 07:25:22 +04:00
|
|
|
bug506094.ogv \
|
2009-09-29 04:59:00 +04:00
|
|
|
bug516323.ogv \
|
2010-08-20 02:50:37 +04:00
|
|
|
bug516323.indexed.ogv \
|
2009-10-14 07:35:59 +04:00
|
|
|
bug520493.ogg \
|
2009-10-14 07:36:01 +04:00
|
|
|
bug520500.ogg \
|
2009-10-15 05:28:59 +04:00
|
|
|
bug520908.ogv \
|
|
|
|
bug520908.ogv^headers^ \
|
2009-10-23 02:17:35 +04:00
|
|
|
bug523816.ogv \
|
2010-01-08 07:55:39 +03:00
|
|
|
bug533822.ogg \
|
2010-04-08 12:16:02 +04:00
|
|
|
bug557094.ogv \
|
2011-03-24 04:16:30 +03:00
|
|
|
bug556821.ogv \
|
2010-08-05 07:49:27 +04:00
|
|
|
bug580982.webm \
|
2010-10-16 23:57:45 +04:00
|
|
|
bug603918.webm \
|
|
|
|
bug604067.webm \
|
2009-10-03 08:08:12 +04:00
|
|
|
chain.ogv \
|
2009-09-22 04:25:24 +04:00
|
|
|
dirac.ogg \
|
2011-08-05 00:44:24 +04:00
|
|
|
multiple-bos.ogg \
|
2010-10-07 02:58:36 +04:00
|
|
|
split.webm \
|
2009-07-10 06:03:01 +04:00
|
|
|
seek.ogv \
|
2010-06-09 03:31:27 +04:00
|
|
|
seek.webm \
|
2010-07-26 23:35:16 +04:00
|
|
|
seek.yuv \
|
2009-08-17 01:32:24 +04:00
|
|
|
short-video.ogv \
|
2009-07-10 06:03:01 +04:00
|
|
|
small-shot.ogg \
|
|
|
|
sound.ogg \
|
2010-12-19 22:05:40 +03:00
|
|
|
spacestorm-1000Hz-100ms.ogg \
|
2010-04-02 07:03:07 +04:00
|
|
|
video-overhang.ogg \
|
2010-08-25 17:10:00 +04:00
|
|
|
file_a4_tone.ogg \
|
2009-07-10 06:03:01 +04:00
|
|
|
$(NULL)
|
2009-11-07 03:27:37 +03:00
|
|
|
|
2009-07-10 06:03:01 +04:00
|
|
|
# Wave sample files
|
|
|
|
_TEST_FILES += \
|
|
|
|
big.wav \
|
2009-09-22 04:08:13 +04:00
|
|
|
bogus.wav \
|
|
|
|
r11025_msadpcm_c1.wav \
|
2009-07-10 06:03:01 +04:00
|
|
|
r11025_s16_c1.wav \
|
|
|
|
r11025_s16_c1_trailing.wav \
|
|
|
|
r11025_u8_c1.wav \
|
|
|
|
r11025_u8_c1_trunc.wav \
|
|
|
|
r16000_u8_c1_list.wav \
|
2011-03-30 09:37:42 +04:00
|
|
|
wavedata_u8.wav \
|
|
|
|
wavedata_s16.wav \
|
2011-04-14 02:12:23 +04:00
|
|
|
audio.wav \
|
2009-07-10 06:03:01 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2009-09-22 04:08:13 +04:00
|
|
|
# Other files
|
|
|
|
_TEST_FILES += \
|
|
|
|
bogus.duh \
|
|
|
|
$(NULL)
|
|
|
|
|
2010-05-31 02:02:06 +04:00
|
|
|
# These tests contain backend-specific tests. Try to write backend
|
|
|
|
# independent tests rather than adding to this list.
|
2008-12-16 02:31:51 +03:00
|
|
|
ifdef MOZ_OGG
|
|
|
|
_TEST_FILES += \
|
2010-05-31 02:02:06 +04:00
|
|
|
test_can_play_type_ogg.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 \
|
2010-01-27 15:29:26 +03:00
|
|
|
test_contentDuration7.html \
|
2009-02-07 13:10:34 +03:00
|
|
|
contentDuration1.sjs \
|
|
|
|
contentDuration2.sjs \
|
|
|
|
contentDuration3.sjs \
|
|
|
|
contentDuration4.sjs \
|
|
|
|
contentDuration5.sjs \
|
|
|
|
contentDuration6.sjs \
|
2010-01-27 15:29:26 +03:00
|
|
|
contentDuration7.sjs \
|
2011-08-09 14:10:48 +04:00
|
|
|
noContentLength.sjs \
|
|
|
|
test_seekable2.html \
|
|
|
|
test_seekable3.html \
|
2010-08-25 17:10:00 +04:00
|
|
|
test_a4_tone.html \
|
|
|
|
file_audio_event_adopt_iframe.html \
|
|
|
|
test_audio_event_adopt.html \
|
|
|
|
test_framebuffer.html \
|
2010-09-16 21:36:23 +04:00
|
|
|
test_referer.html \
|
2012-01-25 04:38:22 +04:00
|
|
|
test_bug686137.html \
|
2008-12-16 02:31:51 +03:00
|
|
|
$(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
|
|
|
|
|
2010-06-09 03:31:27 +04:00
|
|
|
ifdef MOZ_WEBM
|
|
|
|
_TEST_FILES += \
|
|
|
|
test_can_play_type_webm.html \
|
|
|
|
$(NULL)
|
|
|
|
else
|
|
|
|
_TEST_FILES += \
|
|
|
|
test_can_play_type_no_webm.html \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
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 \
|
2011-08-25 03:42:27 +04:00
|
|
|
test_fragment_play.html \
|
|
|
|
test_fragment_noplay.html \
|
2011-03-30 09:37:42 +04:00
|
|
|
test_wave_data_u8.html \
|
|
|
|
test_wave_data_s16.html \
|
2009-07-10 06:03:01 +04:00
|
|
|
$(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)
|
2011-11-05 22:35:59 +04:00
|
|
|
$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/tests/$(relativesrcdir)
|