Skip to content
Permalink
Browse files

Selectmenu: added mass (performance) unit test

  • Loading branch information...
fnagel committed Jan 12, 2012
1 parent 70ba3b9 commit 6c049f2f9a6716a81ea7e0f9ee67362e61c397cb
Showing with 10 additions and 0 deletions.
  1. +10 −0 tests/unit/selectmenu/selectmenu_core.js
@@ -62,4 +62,14 @@ $.each([
});


// test("mass", function () {
// for (var i = 0; i < 100; i++) {
// var element = $('#speed').selectmenu();
// var widget = element.selectmenu("destroy");
// expect(0);
// }
// });



})( jQuery );

2 comments on commit 6c049f2

@jzaefferer

This comment has been minimized.

Copy link
Member

jzaefferer replied Jan 20, 2012

Is that useful as a unit test? Probably more interesting would be a setup where we could test various components, and it'll add console.profile() and console.profileEnd() calls around the code under test.

@fnagel

This comment has been minimized.

Copy link
Member Author

fnagel replied Jan 22, 2012

Mhh no, not really. I used to test performance. Shall I remove it?
Using profile sound nice to me!

Please sign in to comment.
You can’t perform that action at this time.