1 # ***** BEGIN LICENSE BLOCK *****
2 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 # The contents of this file are subject to the Mozilla Public License Version
5 # 1.1 (the "License"); you may not use this file except in compliance with
6 # the License. You may obtain a copy of the License at
7 # http://www.mozilla.org/MPL/
9 # Software distributed under the License is distributed on an "AS IS" basis,
10 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 # for the specific language governing rights and limitations under the
14 # The Original Code is Mozilla code.
16 # The Initial Developer of the Original Code is the Mozilla Corporation.
17 # Portions created by the Initial Developer are Copyright (C) 2007
18 # the Initial Developer. All Rights Reserved.
21 # Chris Double <chris.double@double.co.nz>
23 # Alternatively, the contents of this file may be used under the terms of
24 # either the GNU General Public License Version 2 or later (the "GPL"), or
25 # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
26 # in which case the provisions of the GPL or the LGPL are applicable instead
27 # of those above. If you wish to allow use of your version of this file only
28 # under the terms of either the GPL or the LGPL, and not to allow others to
29 # use your version of this file under the terms of the MPL, indicate your
30 # decision by deleting the provisions above and replace them with the notice
31 # and other provisions required by the GPL or the LGPL. If you do not delete
32 # the provisions above, a recipient may use your version of this file under
33 # the terms of any one of the MPL, the GPL or the LGPL.
35 # ***** END LICENSE BLOCK *****
38 topsrcdir
= @top_srcdir@
41 relativesrcdir
= content
/media
/test
43 include $(DEPTH
)/config
/autoconf.mk
44 include $(topsrcdir
)/config
/rules.mk
46 # Media tests should be backend independent, i.e., not conditioned on
47 # MOZ_OGG, MOZ_WAVE etc. (The only exception is the can_play_type tests,
48 # which necessarily depend on the backend(s) configured.) As far as possible,
49 # each test should work with any resource type. This makes it
50 # easy to add new backends and reduces the amount of test duplication.
52 # For each supported backend, resources that can be played by that backend
53 # should be added to the lists in manifest.js. Media tests that aren't
54 # testing for a bug in handling a specific resource type should pick one of
55 # the lists in manifest.js and run the test for each resource in the list
56 # that is supported in the current build (the canPlayType API is useful
59 # To test whether a valid resource can simply be played through correctly,
60 # and optionally that its metadata is read correctly, just
61 # add it to gPlayTests in manifest.js. To test whether an invalid
62 # resource correctly throws an error (and does not cause a crash or hang),
63 # just add it to gErrorTests in manifest.js.
65 # To test for a specific bug in handling a specific resource type,
66 # make the test first check canPlayType for the type, and if it's not
67 # supported, just do ok(true, "Type not supported") and stop the test.
71 can_play_type_ogg.js \
72 can_play_type_wave.js \
73 can_play_type_webm.js \
74 cancellable_request.sjs \
75 dynamic_redirect.sjs \
76 file_access_controls.html \
80 reactivate_helper.html \
97 test_access_control.html \
101 test_autoplay_contentEditable.html \
103 test_bug448534.html \
104 test_bug463162.xhtml \
105 test_bug465498.html \
106 test_bug493187.html \
107 test_bug495145.html \
108 test_bug495300.html \
109 test_bug686942.html \
110 test_can_play_type.html \
111 test_closing_connections.html \
112 test_constants.html \
114 test_currentTime.html \
115 test_decode_error.html \
116 test_decoder_disable.html \
117 test_delay_load.html \
118 test_error_on_404.html \
119 test_error_in_video_document.html \
120 test_info_leak.html \
122 test_load_candidates.html \
123 test_load_source.html \
124 test_media_selection.html \
125 test_mozLoadFrom.html \
126 test_networkState.html \
127 test_new_audio.html \
129 test_paused_after_ended.html \
130 test_play_events.html \
131 test_play_events_2.html \
133 test_playback_errors.html \
134 test_seekable1.html \
135 test_preload_actions.html \
136 test_preload_attribute.html \
138 test_reactivate.html \
139 test_readyState.html \
140 test_replay_metadata.html \
144 test_seek_out_of_range.html \
146 test_source_write.html \
147 test_standalone.html \
148 test_timeupdate_small_files.html \
150 test_video_to_canvas.html \
152 test_audiowrite.html \
157 _TEST_FILES
+= test_play_twice.html
159 $(warning test_play_twice.html is disabled pending investigation. Bug
598252)
162 # These tests are disabled until we figure out random failures.
163 # When these tests are fixed, we should also make them backend-independent.
166 # test_videoDocumentTitle.html
168 # test_preload_suspend.html
169 # Bug 567954 and Bug 574586:
170 # test_mixed_principals.html
171 # Disabled since we don't play Wave files standalone, for now
172 # test_audioDocumentTitle.html
180 beta-phrasebook.ogg \
186 bug482461-theora.ogv \
193 bug500311.ogv^headers^ \
200 bug516323.indexed.ogv \
204 bug520908.ogv^headers^ \
222 spacestorm-1000Hz-100ms.ogg \
231 r11025_msadpcm_c1.wav \
233 r11025_s16_c1_trailing.wav \
235 r11025_u8_c1_trunc.wav \
236 r16000_u8_c1_list.wav \
247 # These tests contain backend-specific tests. Try to write backend
248 # independent tests rather than adding to this list.
251 test_can_play_type_ogg.html \
252 test_contentDuration1.html \
253 test_contentDuration2.html \
254 test_contentDuration3.html \
255 test_contentDuration4.html \
256 test_contentDuration5.html \
257 test_contentDuration6.html \
258 test_contentDuration7.html \
259 contentDuration1.sjs \
260 contentDuration2.sjs \
261 contentDuration3.sjs \
262 contentDuration4.sjs \
263 contentDuration5.sjs \
264 contentDuration6.sjs \
265 contentDuration7.sjs \
266 noContentLength.sjs \
267 test_seekable2.html \
268 test_seekable3.html \
270 file_audio_event_adopt_iframe.html \
271 test_audio_event_adopt.html \
272 test_framebuffer.html \
277 test_can_play_type_no_ogg.html \
283 test_can_play_type_webm.html \
287 test_can_play_type_no_webm.html \
293 test_can_play_type_wave.html \
294 test_fragment_play.html \
295 test_fragment_noplay.html \
296 test_wave_data_u8.html \
297 test_wave_data_s16.html \
301 test_can_play_type_no_wave.html \
305 libs
:: $(_TEST_FILES
)
306 $(INSTALL
) $(foreach f
,$^
,"$f") $(DEPTH
)/$(mochitestdir
)/tests
/$(relativesrcdir
)