From ecd02bd47b76d3eec841165ce7e988e99a78632e Mon Sep 17 00:00:00 2001 From: Paul ADENOT Date: Sun, 3 Jul 2011 11:53:39 +0200 Subject: [PATCH] Bug 462959 - Tests for HTMLMediaElement.played; r=cpearce+kinetik --- content/media/test/Makefile.in | 1 + content/media/test/manifest.js | 8 + content/media/test/test_played.html | 231 ++++++++++++++++++++++++++++ 3 files changed, 240 insertions(+) create mode 100644 content/media/test/test_played.html diff --git a/content/media/test/Makefile.in b/content/media/test/Makefile.in index a538b7550a0..b26441e1387 100644 --- a/content/media/test/Makefile.in +++ b/content/media/test/Makefile.in @@ -126,6 +126,7 @@ _TEST_FILES = \ test_paused_after_ended.html \ test_play_events.html \ test_play_events_2.html \ + test_played.html \ test_playback.html \ test_playback_errors.html \ test_preload_actions.html \ diff --git a/content/media/test/manifest.js b/content/media/test/manifest.js index b3238af5eb9..4870dfe1262 100644 --- a/content/media/test/manifest.js +++ b/content/media/test/manifest.js @@ -23,6 +23,14 @@ var gProgressTests = [ { name:"bogus.duh", type:"bogus/duh" } ]; +// Used by test_played +var gPlayedTests = [ + { name:"big.wav", type:"audio/x-wav", duration:9.0, size:102444 }, + { name:"sound.ogg", type:"audio/ogg", duration:4.0, size:2603 }, + { name:"seek.ogv", type:"video/ogg", duration:3.966, size:285310 }, + { name:"seek.webm", type:"video/webm", duration:3.966 } +]; + // Used by test_mozLoadFrom. Need one test file per decoder backend, plus // anything for testing clone-specific bugs. var gCloneTests = gSmallTests.concat([ diff --git a/content/media/test/test_played.html b/content/media/test/test_played.html new file mode 100644 index 00000000000..edad877719b --- /dev/null +++ b/content/media/test/test_played.html @@ -0,0 +1,231 @@ + + + +Test played member for media elements + + + + + + +
+
+
+ +