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" );
38 widget.multimediaview( "size", width, height );
39 equal( "width : " + widget.width() + ", height : " + widget.height(),
40 "width : " + width + ", height : " + height, "API: size" );
43 fullscreenButton = widget.parent().find( ".ui-fullscreenbutton" );
45 widget.multimediaview( "fullscreen", true );
46 ok( fullscreenButton.hasClass( "ui-fullscreen-off" ), "API: fullscreen (on)" );
48 widget.multimediaview("fullscreen", false );
49 ok( fullscreenButton.hasClass( "ui-fullscreen-on" ), "API: fullscreen (off)" );
53 test( "video", function () {
54 unit_multimediaview( $("#video"), "video" );
57 test( "audio", function () {
58 unit_multimediaview( $("#audio"), "audio" );