From: Scott González Date: Thu, 3 Mar 2016 18:38:57 +0000 (-0500) Subject: Dialog: Remove use of `$.now()` in performance test X-Git-Tag: 1.12.0-rc.1~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=54cd4510ef955a5f50a4fc5aa91ccb85217e6a04;p=jquery-ui.git Dialog: Remove use of `$.now()` in performance test --- diff --git a/tests/visual/dialog/performance.html b/tests/visual/dialog/performance.html index 20adbfa6b..45ef90941 100644 --- a/tests/visual/dialog/performance.html +++ b/tests/visual/dialog/performance.html @@ -10,17 +10,17 @@ html = new Array( 500 ).join( $.trim( $( "#template" ).html() ) ); $( html ).appendTo( "body" ); - start = $.now(); + start = new Date(); $( "#dialog" ).dialog({ modal: true, autoOpen: false }); - $( "
  • Create: " + ($.now() - start) + "ms
  • " ).appendTo( "#log" ); + $( "
  • Create: " + (new Date() - start) + "ms
  • " ).appendTo( "#log" ); $( "#opener" ).on( "click", function() { - start = $.now(); + start = new Date(); $( "#dialog" ).dialog( "open" ); - $( "
  • Open: " + ($.now() - start) + "ms
  • " ).appendTo( "#log" ); + $( "
  • Open: " + (new Date() - start) + "ms
  • " ).appendTo( "#log" ); });