2008-07-29 21:55:27 -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 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 *****
|
|
|
|
|
|
|
|
DEPTH = ../../../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
relativesrcdir = content/media/video/test
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2008-12-15 15:31:51 -08:00
|
|
|
_TEST_FILES = \
|
2008-12-16 18:11:07 -08:00
|
|
|
can_play_type_ogg.js \
|
|
|
|
can_play_type_wave.js \
|
2008-12-15 15:31:51 -08:00
|
|
|
test_autoplay.html \
|
2008-12-16 18:11:07 -08:00
|
|
|
test_can_play_type.html \
|
2008-12-15 15:31:51 -08:00
|
|
|
test_constants.html \
|
|
|
|
test_controls.html \
|
|
|
|
test_currentTime.html \
|
|
|
|
test_networkState.html \
|
|
|
|
test_paused.html \
|
|
|
|
test_readyState.html \
|
|
|
|
test_seek2.html \
|
|
|
|
test_volume.html \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifdef MOZ_OGG
|
|
|
|
_TEST_FILES += \
|
2009-01-24 03:00:17 -08:00
|
|
|
test_access_control.html \
|
|
|
|
file_access_controls.html \
|
2008-12-15 15:31:51 -08:00
|
|
|
test_bug448534.html \
|
|
|
|
test_bug461281.html \
|
2008-12-16 18:11:07 -08:00
|
|
|
test_can_play_type_ogg.html \
|
2009-02-07 02:10:34 -08:00
|
|
|
test_contentDuration1.html \
|
|
|
|
test_contentDuration2.html \
|
|
|
|
test_contentDuration3.html \
|
|
|
|
test_contentDuration4.html \
|
|
|
|
test_contentDuration5.html \
|
|
|
|
test_contentDuration6.html \
|
2008-12-15 15:31:51 -08:00
|
|
|
test_duration1.html \
|
|
|
|
test_ended1.html \
|
|
|
|
test_ended2.html \
|
|
|
|
test_onloadedmetadata.html \
|
2009-02-10 17:23:19 -08:00
|
|
|
test_play.html \
|
2009-02-05 00:02:21 -08:00
|
|
|
test_progress1.html \
|
2009-01-15 12:26:51 -08:00
|
|
|
test_progress3.html \
|
2008-12-15 15:31:51 -08:00
|
|
|
test_standalone.html \
|
|
|
|
test_timeupdate1.html \
|
|
|
|
test_timeupdate2.html \
|
2009-01-16 01:07:26 -08:00
|
|
|
320x240.ogv \
|
|
|
|
test_videoDocumentTitle.html \
|
2009-01-24 03:00:17 -08:00
|
|
|
320x240.allow-origin.ogv \
|
|
|
|
320x240.allow-origin.ogv^headers^ \
|
|
|
|
bug461281.ogg \
|
|
|
|
redirect.sjs \
|
2009-02-07 02:10:34 -08:00
|
|
|
contentDuration1.sjs \
|
|
|
|
contentDuration2.sjs \
|
|
|
|
contentDuration3.sjs \
|
|
|
|
contentDuration4.sjs \
|
|
|
|
contentDuration5.sjs \
|
|
|
|
contentDuration6.sjs \
|
2009-01-16 01:07:26 -08:00
|
|
|
seek.ogv \
|
2008-12-15 15:31:51 -08:00
|
|
|
$(NULL)
|
2009-01-26 18:33:03 -08:00
|
|
|
|
|
|
|
ifneq ($(OS_ARCH),WINNT)
|
|
|
|
# These tests are disabled on windows until we
|
|
|
|
# figure out the random failures. See bug 475369.
|
|
|
|
_TEST_FILES += \
|
|
|
|
test_seek1.html \
|
|
|
|
test_seek3.html \
|
|
|
|
test_seek4.html \
|
|
|
|
test_seek5.html \
|
|
|
|
test_seek6.html \
|
|
|
|
test_seek7.html \
|
|
|
|
test_seek8.html \
|
|
|
|
test_timeupdate3.html \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
2008-12-16 18:11:07 -08:00
|
|
|
else
|
|
|
|
_TEST_FILES += \
|
|
|
|
test_can_play_type_no_ogg.html \
|
|
|
|
$(NULL)
|
2008-12-15 15:31:51 -08:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_WAVE
|
|
|
|
_TEST_FILES += \
|
2009-01-16 01:07:26 -08:00
|
|
|
test_audioDocumentTitle.html \
|
2009-01-15 12:26:51 -08:00
|
|
|
big.wav \
|
2008-12-15 19:32:03 -08:00
|
|
|
test_bug463162.xhtml \
|
2008-12-16 18:11:07 -08:00
|
|
|
test_can_play_type_wave.html \
|
2008-12-15 15:31:51 -08:00
|
|
|
test_wav_8bit.html \
|
|
|
|
test_wav_ended1.html \
|
2009-01-15 12:26:51 -08:00
|
|
|
test_progress2.html \
|
|
|
|
test_progress4.html \
|
2008-12-15 15:31:51 -08:00
|
|
|
test_wav_seek3.html \
|
|
|
|
test_wav_seek4.html \
|
|
|
|
test_wav_seek5.html \
|
|
|
|
test_wav_seek6.html \
|
|
|
|
test_wav_seek7.html \
|
|
|
|
test_wav_seek8.html \
|
|
|
|
test_wav_seek_past_end.html \
|
|
|
|
test_wav_seek_then_play.html \
|
|
|
|
test_wav_trailing.html \
|
|
|
|
test_wav_trunc_seek.html \
|
|
|
|
r11025_s16_c1.wav \
|
|
|
|
r11025_s16_c1_trailing.wav \
|
|
|
|
r11025_u8_c1.wav \
|
2008-12-15 20:58:33 -08:00
|
|
|
r11025_u8_c1_trunc.wav \
|
2008-12-15 15:31:51 -08:00
|
|
|
$(NULL)
|
2009-01-22 07:08:36 -08:00
|
|
|
#XXX: disabled for now, see bug 474754
|
|
|
|
# test_wav_trunc.html \
|
2008-12-16 18:11:07 -08:00
|
|
|
else
|
|
|
|
_TEST_FILES += \
|
|
|
|
test_can_play_type_no_wave.html \
|
|
|
|
$(NULL)
|
2008-12-15 15:31:51 -08:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_OGG
|
|
|
|
ifdef MOZ_WAVE
|
|
|
|
_TEST_FILES += \
|
|
|
|
test_decoder_disable.html \
|
2008-12-15 19:32:03 -08:00
|
|
|
test_media_selection.html \
|
2008-12-15 15:31:51 -08:00
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
endif
|
2008-07-29 21:55:27 -07:00
|
|
|
|
|
|
|
libs:: $(_TEST_FILES)
|
|
|
|
$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/tests/$(relativesrcdir)
|