aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual/dialog/performance.html
diff options
context:
space:
mode:
Diffstat (limited to 'tests/visual/dialog/performance.html')
-rw-r--r--tests/visual/dialog/performance.html8
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>