aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-07-16 11:53:37 -0400
committerScott González <scott.gonzalez@gmail.com>2010-07-16 11:53:37 -0400
commitb368491f70f87be800acdc47fc7110058c360d06 (patch)
tree1e0dfaa14e50adea79265f30a0bdbbd1c557712f /tests/visual
parent70481d9febd1b904577d2d5f4345e5a0e79a59f7 (diff)
downloadjquery-ui-b368491f70f87be800acdc47fc7110058c360d06.tar.gz
jquery-ui-b368491f70f87be800acdc47fc7110058c360d06.zip
Button performance test: Added alert for time to initialize.
Diffstat (limited to 'tests/visual')
-rw-r--r--tests/visual/button/button_performance.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/visual/button/button_performance.html b/tests/visual/button/button_performance.html
index 2d31c2f27..8b8ca2730 100644
--- a/tests/visual/button/button_performance.html
+++ b/tests/visual/button/button_performance.html
@@ -16,7 +16,10 @@
<script type="text/javascript" src="../../../ui/jquery.ui.button.js"></script>
<script type="text/javascript">
$(function() {
+ var start = +new Date();
$("button").button();
+ var end = +new Date();
+ alert( "Time to initialize: " + (end - start) + "ms" );
});
</script>
</head>