diff options
author | Scott González <scott.gonzalez@gmail.com> | 2016-03-03 13:38:57 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2016-03-03 13:38:57 -0500 |
commit | 54cd4510ef955a5f50a4fc5aa91ccb85217e6a04 (patch) | |
tree | 0d0a717d0e23318f0c659bd844ee45cdf50a1659 | |
parent | ff3769272bb5530b224297fa5d2add1865acbb7f (diff) | |
download | jquery-ui-54cd4510ef955a5f50a4fc5aa91ccb85217e6a04.tar.gz jquery-ui-54cd4510ef955a5f50a4fc5aa91ccb85217e6a04.zip |
Dialog: Remove use of `$.now()` in performance test
-rw-r--r-- | tests/visual/dialog/performance.html | 8 |
1 files 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 }); - $( "<li>Create: " + ($.now() - start) + "ms</li>" ).appendTo( "#log" ); + $( "<li>Create: " + (new Date() - start) + "ms</li>" ).appendTo( "#log" ); $( "#opener" ).on( "click", function() { - start = $.now(); + start = new Date(); $( "#dialog" ).dialog( "open" ); - $( "<li>Open: " + ($.now() - start) + "ms</li>" ).appendTo( "#log" ); + $( "<li>Open: " + (new Date() - start) + "ms</li>" ).appendTo( "#log" ); }); </script> </head> |