1. <strong id="7actg"></strong>
    2. <table id="7actg"></table>

    3. <address id="7actg"></address>
      <address id="7actg"></address>
      1. <object id="7actg"><tt id="7actg"></tt></object>

        QUnitjQuery 單元測(cè)試框架

        聯(lián)合創(chuàng)作 · 2023-10-01 16:12

        QUnit 是一個(gè)功能強(qiáng)大、易于使用的 JavaScript 單元測(cè)試框架。它被 jQuery 項(xiàng)目用于測(cè)試代碼和插件,它能夠測(cè)試任何通用的 JavaScript 代碼(甚至能夠在服務(wù)器端測(cè)試 JavaScript 代碼)。

            示例代碼:

        test("a basic test example", function() {
          ok( true, "this test is fine" );
          var value = "hello";
          equals( "hello", value, "We expect value to be hello" );
        });
        
        module("Module A");
        
        test("first test within module", function() {
          ok( true, "all pass" );
        });
        
        test("second test within module", function() {
          ok( true, "all pass" );
        });
        
        module("Module B");
        
        test("some other test", function() {
          expect(2);
          equals( true, false, "failing test" );
          equals( true, true, "passing test" );
        });

            測(cè)試結(jié)果頁(yè)面:

        瀏覽 13
        點(diǎn)贊
        評(píng)論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報(bào)
        評(píng)論
        圖片
        表情
        推薦
        點(diǎn)贊
        評(píng)論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報(bào)
        1. <strong id="7actg"></strong>
        2. <table id="7actg"></table>

        3. <address id="7actg"></address>
          <address id="7actg"></address>
          1. <object id="7actg"><tt id="7actg"></tt></object>
            久久久精品观看 | www.夜夜撸 | 久久久91精品国产一区陈可心 | 欧美在线激情观看 | 国产久热精品无码激情亚洲精品 | 国产精品国产精品国产专区不卡 | 欧美日韩美女操逼视频 | 中文字幕在线视频免费播放 | 国产在线97 | 国产日本亚洲香蕉视频 |