<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          jQunitjQuery單元測試框架

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

          jQunit 是一個 jQuery 的單元測試框架,兼容 jsUnit,示例測試代碼:

          //Using TestCase
          jqUnit.TestCase.prototype.yep = function(val){ this.ok(val);};
          var t = new jqUnit.TestCase('TestCase',function(){
              /*setup*/
              this.yep(1);
            },function(){
              /*teardown*/
              this.ok(1)
            });
          //jqUnit is mixed into TestCase, so you can overwrite them & only need 1 with(){}
          t.test('part 1',function(){ this.ok(1) });
          t.test('part 2',function(){ with(this){ ok(2);yep(3) } });
          t.test('part 3',function(){ with(jqUnit){ ok(4); this.yep(5) } });

          瀏覽 1
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

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

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  欧美成人黄网站 | 一级黄色a | 婷婷av在线 | 超碰在线久久 | 国产综合视频在线观看 |