2 * Unit Test: FastScroll
4 * Minkyu Kang <mk7.kang@samsung.com>
6 /*jslint browser: true*/
7 /*global $, jQuery, test, equal, ok*/
11 var unit_fastscroll = function ( list ) {
18 widget = list.parentsUntil(".ui-content").parent( ).find(".ui-fastscroll");
19 ok( widget , "Markup check: fast scroll");
20 fastpopup = list.parentsUntil(".ui-content").parent( ).find(".ui-fastscroll-popup");
21 ok( fastpopup , "Markup check: fastscroll popup");
24 ok( widget.hasClass("ui-fastscroll"), "Create");
25 shortcut = widget.find("li");
26 divider = list.find(".ui-li-divider");
29 for ( i = 0; i < divider.length; i++ ) {
30 equal( $( divider[i] ).text( ), $( shortcut[i] ).text( ), "Shortcut");
34 test("shortcut", function ( ) {
35 unit_fastscroll( $("#shortcut") );