2 * Unit Test: Nocontents
4 * Minkyu Kang <mk7.kang@samsung.com>
10 var unit_nocontents = function ( widget, type ) {
18 ok( widget.hasClass("ui-nocontents"), "Create" );
20 /* Check Background */
21 background = widget.children( ".ui-nocontents-icon-" + type );
22 ok( background, "Background" );
25 text = widget.children("p");
27 for ( i = 0; i < text.length; i++ ) {
28 ok( $( text[i] ).hasClass("ui-nocontents-text"), "Text" + i );
32 test( "text type", function () {
33 unit_nocontents( $("#nocontents_text"), "text" );
36 test( "picture type", function () {
37 unit_nocontents( $("#nocontents_pic"), "picture" );
40 test( "multimedia type", function () {
41 unit_nocontents( $("#nocontents_mul"), "multimedia" );
44 test( "unnamed type", function () {
45 unit_nocontents( $("#nocontents_un"), "unnamed" );