From 38b05e6a4ec019f62c92d0e0862eb8648d3bc265 Mon Sep 17 00:00:00 2001 From: Kaku Kuo Date: Mon, 25 Jan 2016 17:57:57 +0800 Subject: [PATCH] Bug 1242338 - test cases; r=jwwang --HG-- extra : transplant_source : d%1F%1D0%14%EFr.o%D2pUyr%E8%CA%B8%AB%FD%01 --- dom/media/test/manifest.js | 5 ++- dom/media/test/mochitest.ini | 1 + dom/media/test/test_bug1242338.html | 66 +++++++++++++++++++++++++++++ 3 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 dom/media/test/test_bug1242338.html diff --git a/dom/media/test/manifest.js b/dom/media/test/manifest.js index 88da24fa7948..6c74c46b652c 100644 --- a/dom/media/test/manifest.js +++ b/dom/media/test/manifest.js @@ -480,7 +480,10 @@ var gSeekTests = [ { name:"detodos.opus", type:"audio/ogg; codecs=opus", duration:2.9135 }, { name:"gizmo.mp4", type:"video/mp4", duration:5.56 }, { name:"owl.mp3", type:"audio/mpeg", duration:3.343 }, - { name:"bogus.duh", type:"bogus/duh", duration:123 } + { name:"bogus.duh", type:"bogus/duh", duration:123 }, + + // Bug 1242338: hit a numerical problem while seeking to the duration. + { name:"bug482461-theora.ogv", type:"video/ogg", duration:4.138 }, ]; var gFastSeekTests = [ diff --git a/dom/media/test/mochitest.ini b/dom/media/test/mochitest.ini index 84ac2aeed392..4540ee6087a8 100644 --- a/dom/media/test/mochitest.ini +++ b/dom/media/test/mochitest.ini @@ -601,6 +601,7 @@ skip-if = os == 'win' && !debug # bug 1140675 [test_bug1018933.html] [test_bug1113600.html] tags=capturestream +[test_bug1242338.html] [test_can_play_type.html] [test_can_play_type_mpeg.html] skip-if = buildapp == 'b2g' || (toolkit == 'android' && processor == 'x86') # bug 1021675 #x86 only bug 914439 diff --git a/dom/media/test/test_bug1242338.html b/dom/media/test/test_bug1242338.html new file mode 100644 index 000000000000..c404d7b1dbf3 --- /dev/null +++ b/dom/media/test/test_bug1242338.html @@ -0,0 +1,66 @@ + + + + Test Bug 1242338 + + + + + +
+
+
+ + \ No newline at end of file