Skip to content
Browse files

Selectmenu: added mass (performance) unit test

  • Loading branch information...
1 parent 70ba3b9 commit 6c049f2f9a6716a81ea7e0f9ee67362e61c397cb @fnagel fnagel committed
Showing with 10 additions and 0 deletions.
  1. +10 −0 tests/unit/selectmenu/selectmenu_core.js
View
10 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
jQuery Foundation member

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
jQuery Foundation member

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

Please sign in to comment.
Something went wrong with that request. Please try again.