2 * Unit Test: MultiMediaView
4 * Wonseop Kim <wonseop.kim@samsung.com>
8 module("MultiMediaView");
10 var unit_multimediaview = function ( widget, type ) {
21 widget.multimediaview();
22 ok( widget.hasClass( "ui-multimediaview" ) , "Create" );
24 if ( type === "video" ) {
27 widget.multimediaview( "width", width );
28 equal( width, widget.width(), "API: width" );
32 widget.multimediaview( "height", height );
33 equal( height, widget.height(), "API: height" );
36 fullscreenButton = widget.parent().find( ".ui-fullscreenbutton" );
38 widget.multimediaview( "fullScreen", true );
39 ok( fullscreenButton.hasClass( "ui-fullscreen-off" ), "API: fullScreen (on)" );
41 widget.multimediaview( "fullScreen", false );
42 ok( fullscreenButton.hasClass( "ui-fullscreen-on" ), "API: fullScreen (off)" );
46 test( "video", function () {
47 unit_multimediaview( $( "#video" ), "video" );
50 test( "audio", function () {
51 unit_multimediaview( $( "#audio" ), "audio" );