"text/javascript" src="../jws-3.0.js"></script>

<script type="text/javascript">
$(document).ready(function(){

test("abs(new Date() - getNow()) < 3", function() {
  expect(1);
  var tNow1 = KJUR.jws.IntDate.getNow();
  var tNow2 = ~~(new Date() / 1000);
  var delta = Math.abs(tNow2 - tNow1);
  equal(delta < 3, true, "");
});

test("abs(new Date() - get('now') < 3", function() {
  expect(1);
  var tNow1 = KJUR.jws.IntDate.get('now');
  var tNow2 = ~~(new Date() / 1000);
  var delta = Math.abs(tNow2 - tNow1)