diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-07-16 11:53:37 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-07-16 11:53:37 -0400 |
commit | b368491f70f87be800acdc47fc7110058c360d06 (patch) | |
tree | 1e0dfaa14e50adea79265f30a0bdbbd1c557712f /tests/visual | |
parent | 70481d9febd1b904577d2d5f4345e5a0e79a59f7 (diff) | |
download | jquery-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.html | 3 |
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> |