ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • JQunit 사용하기 07
    javascript/JQunit 2015. 7. 24. 16:19
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8">
        <title>QUnit Example01</title>
        <link rel="stylesheet" href="http://code.jquery.com/qunit/qunit-1.18.0.css">
        <script src="http://code.jquery.com/qunit/qunit-1.18.0.js"></script>
        <script>
            QUnit.test( "ok test"function( assert ) {
                // 성공
                assert.ok( true"true succeeds" );
                assert.ok( "non-empty""non-empty string succeeds" );
                // 실패
                assert.ok( false"false fails" );
                assert.ok( 0"0 fails" );
                assert.ok( NaN, "NaN fails" );
                assert.ok( """empty string fails" );
                assert.ok( null"null fails" );
                assert.ok( undefined, "undefined fails" );
            });
       </script>
    </head>
    <body>
        <!-- 아래의 코드를 넣는다 -->
        <div id="qunit"></div>
        <div id="qunit-fixture"></div>
    </body>
    </html>
    cs


    'javascript > JQunit' 카테고리의 다른 글

    JQunit 사용하기 09  (0) 2015.07.24
    JQunit 사용하기 08  (0) 2015.07.24
    JQunit 사용하기 06  (0) 2015.07.24
    JQunit 사용하기 05  (0) 2015.07.24
    QUnit 사용하기 04  (0) 2015.07.24

    댓글

Designed by Tistory.