From: Koeun Choi Date: Fri, 18 Jan 2013 02:28:58 +0000 (+0900) Subject: remove unused unit test cases : gallery3d X-Git-Tag: accepted/tizen_2.1/20130425.023924~7^2~199 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=57297afaa51440ca1ef2795f37b94740c9657518;p=platform%2Fframework%2Fweb%2Fweb-ui-fw.git remove unused unit test cases : gallery3d Change-Id: Ia6df5f80955d985700c12c46d9ee7d820fafe552 --- diff --git a/tests/unit-tests/gallery3d/gallery3d-tests.js b/tests/unit-tests/gallery3d/gallery3d-tests.js deleted file mode 100755 index 85d7314..0000000 --- a/tests/unit-tests/gallery3d/gallery3d-tests.js +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Unit Test: Gallery3d - * - * Wonseop Kim - */ - -(function ($) { - $.mobile.defaultTransition = "none"; - - module("Galley3d"); - - asyncTest( "create & select", function() { - var widget = $( "#galley3dTest1" ), - imageList = [], - path = widget.attr( "data-json-url" ), - key = widget.attr( "data-json-key" ), - elem = "ui-gallery3d"; - - $.ajax({ - async : false, - url : path, - dataType: "json", - success : function ( result ) { - imageList = result[key]; - } - }); - - /* Create */ - widget.gallery3d(); - ok( widget.hasClass( elem ), "Create" ); - - /* API */ - widget.gallery3d( "select", 1 ); - setTimeout( function () { - equal( widget.gallery3d( "select" ), imageList[1].src, "API : select" ); - start(); - }, 2400 ); - }); - - asyncTest( "remove", function() { - var widget = $( "#galley3dTest2" ), - imageList = [], - path = widget.attr( "data-json-url" ), - key = widget.attr( "data-json-key" ), - currentSource; - - $.ajax({ - async : false, - url : path, - dataType: "json", - success : function ( result ) { - imageList = result[key]; - } - }); - - widget.gallery3d(); - currentSource = widget.gallery3d( "select" ); - - /* API */ - widget.gallery3d( "remove" ); - notEqual( widget.gallery3d( "select" ), currentSource, "API : remove" ); - start(); - }); - - asyncTest( "move", function() { - var widget = $( "#galley3dTest3" ), - imageList = [], - path = widget.attr( "data-json-url" ), - key = widget.attr( "data-json-key" ), - currentSource; - - $.ajax({ - async : false, - url : path, - dataType: "json", - success : function ( result ) { - imageList = result[key]; - } - }); - - widget.gallery3d(); - currentSource = widget.gallery3d( "select" ); - - /* API */ - widget.gallery3d( "moveNext" ); - setTimeout( function () { - equal( widget.gallery3d( "select" ), imageList[1].src, "API : moveNext" ); - start(); - - stop(); - widget.gallery3d( "movePrev" ); - setTimeout( function () { - equal( widget.gallery3d( "select" ), imageList[0].src, "API : movePrev" ); - start(); - }, 300 ); - }, 2400 ); - }); - -}( jQuery )); diff --git a/tests/unit-tests/gallery3d/index.html b/tests/unit-tests/gallery3d/index.html deleted file mode 100755 index 7a2bc42..0000000 --- a/tests/unit-tests/gallery3d/index.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - Galley3d - - - - -

Galley3d

-

-
-

-
    - -
    - -
    -
    -

    Galley3d

    -
    -
    -
    -
    -
    - -
    -
    -

    Galley3d

    -
    -
    -
    -
    -
    - -
    -
    -

    Galley3d

    -
    -
    -
    -
    -
    - -
    - - -