From 54cd4510ef955a5f50a4fc5aa91ccb85217e6a04 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Thu, 3 Mar 2016 13:38:57 -0500 Subject: [PATCH] Dialog: Remove use of `$.now()` in performance test --- tests/visual/dialog/performance.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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" ); }); -- 2.39.5