haikuwebkit/LayoutTests/media/audio-concurrent-supported-...

17 lines
545 B
Plaintext
Raw Permalink Normal View History

Source/WebCore: [BlackBerry] Tab awareness for HTML5 concurrent audio https://bugs.webkit.org/show_bug.cgi?id=82930 Support for concurrent HTML5 audio improvements being made in the platform library, which need to be aware of tabs and tab visibility. PR96004. Patch by Max Feil <mfeil@rim.com> on 2012-04-18 Reviewed by George Staikos. Test: media/audio-concurrent-supported.html * platform/blackberry/PageClientBlackBerry.h: * platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp: (WebCore::MediaPlayerPrivate::MediaPlayerPrivate): (WebCore::MediaPlayerPrivate::showErrorDialog): (WebCore::MediaPlayerPrivate::isTabVisible): (WebCore): * platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.h: (MediaPlayerPrivate): Source/WebKit/blackberry: [BlackBerry] Tab awareness for HTML5 concurrent audio https://bugs.webkit.org/show_bug.cgi?id=82930 Support for concurrent HTML5 audio improvements being made in the platform library, which need to be aware of tabs and tab visibility. PR96004. Patch by Max Feil <mfeil@rim.com> on 2012-04-18 Reviewed by George Staikos. * Api/WebPageClient.h: * Api/WebPage_p.h: (BlackBerry::WebKit::WebPagePrivate::isVisible): LayoutTests: [BlackBerry] Tab awareness for HTML5 concurrent audio https://bugs.webkit.org/show_bug.cgi?id=82930 Layout test for concurrent HTML5 audio. This is a simple test to confirm that multiple audio elements can play at the same time. Patch by Max Feil <mfeil@rim.com> on 2012-04-18 Reviewed by George Staikos. * media/audio-concurrent-supported-expected.txt: Added. * media/audio-concurrent-supported.html: Added. Canonical link: https://commits.webkit.org/101741@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@114493 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-04-18 08:40:40 +00:00
Test that multiple audio elements can play concurrently.
Starting a total of 2 concurrent audio elements.
EVENT(0, canplaythrough)
EXPECTED (0, testElement.currentTime == '0') OK
EVENT(0, playing)
EXPECTED (0, testElement.currentTime > '0') OK
EVENT(1, canplaythrough)
EXPECTED (1, testElement.currentTime == '0') OK
EVENT(1, playing)
EXPECTED (1, testElement.currentTime > '0') OK
Making sure all 2 audio elements are in playing state:
EXPECTED (0, testElement.paused == 'false') OK
EXPECTED (1, testElement.paused == 'false') OK
END OF TEST