From 57297afaa51440ca1ef2795f37b94740c9657518 Mon Sep 17 00:00:00 2001 From: Koeun Choi Date: Fri, 18 Jan 2013 11:28:58 +0900 Subject: [PATCH] remove unused unit test cases : gallery3d Change-Id: Ia6df5f80955d985700c12c46d9ee7d820fafe552 --- tests/unit-tests/gallery3d/gallery3d-tests.js | 99 --------------------------- tests/unit-tests/gallery3d/index.html | 65 ------------------ 2 files changed, 164 deletions(-) delete mode 100755 tests/unit-tests/gallery3d/gallery3d-tests.js delete mode 100755 tests/unit-tests/gallery3d/index.html 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

    -
    -
    -
    -
    -
    - -
    - - - -- 2.7.4