Initial infrastructure of media controls testing
https://bugs.webkit.org/show_bug.cgi?id=148426
<rdar://problem/22417286>
Reviewed by Eric Carlson.
Source/WebCore:
Expose a JS API from Internals that allows a layout test
to ask the controls instance what it thinks it is
doing.
Test: media/controls/basic.html
* Modules/mediacontrols/mediaControlsApple.js:
(Controller.prototype.getCurrentControlsStatus): New method. Currently
returns a simple JSON string.
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::getCurrentMediaControlsStatus): Call into
the controls instance.
* html/HTMLMediaElement.h:
* testing/Internals.cpp:
(WebCore::Internals::getCurrentMediaControlsStatusForElement): Link
between the Internals API and the HTMLMediaElement.
* testing/Internals.h:
* testing/Internals.idl:
LayoutTests:
Very simple test that calls into the status object
of the media controls instance.
* media/controls/basic-expected.txt: Added.
* media/controls/basic.html: Added.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@189023 268f45cc-cd09-0410-ab3c-d52691b4dbfc
10 files changed