Skip to main content

Bug Tracker

Side navigation

Ticket #6834: test1.js
File test1.js, 0.6 KB (added by xiaoyongaz, August 18, 2010 05:26PM UTC)

qunit test the show deparam change 'ab+ba' to 'ab ba'

$(document).ready(function(){
    QUnit.log = function(result, message)
   {
    if (window.console && window.console.log)
    {
      window.console.log(result +' :: '+ message);
    }
   };
   module("param Unit Test");
    test("param test", function()
    {
       expect(1);
       var input = "ab+ba";
       var result = $.deparam(input);
       //var deObj = $.deparam(result, false);
       //equals(input, deobj, 'Expected deparam get ab+ba as the result, result was: ' + deObj);
       equals(result, 'ab+ba');
    });
  });

Download in other formats:

Original Format