aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/button
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/button')
-rw-r--r--tests/unit/button/core.js5
-rw-r--r--tests/unit/button/deprecated.js9
-rw-r--r--tests/unit/button/events.js5
-rw-r--r--tests/unit/button/methods.js5
-rw-r--r--tests/unit/button/options.js5
5 files changed, 17 insertions, 12 deletions
diff --git a/tests/unit/button/core.js b/tests/unit/button/core.js
index 98219c66c..d5d19f953 100644
--- a/tests/unit/button/core.js
+++ b/tests/unit/button/core.js
@@ -1,11 +1,12 @@
define( [
"qunit",
"jquery",
+ "lib/helper",
"ui/safe-active-element",
"ui/widgets/button"
-], function( QUnit, $ ) {
+], function( QUnit, $, helper ) {
-QUnit.module( "Button: core" );
+QUnit.module( "Button: core", { afterEach: helper.moduleAfterEach } );
QUnit.test( "Disabled button loses focus", function( assert ) {
var ready = assert.async();
diff --git a/tests/unit/button/deprecated.js b/tests/unit/button/deprecated.js
index 86fca797e..6866f7371 100644
--- a/tests/unit/button/deprecated.js
+++ b/tests/unit/button/deprecated.js
@@ -1,10 +1,11 @@
define( [
"qunit",
"jquery",
+ "lib/helper",
"ui/widgets/button"
-], function( QUnit, $ ) {
+], function( QUnit, $, helper ) {
-QUnit.module( "Button (deprecated): core" );
+QUnit.module( "Button (deprecated): core", { afterEach: helper.moduleAfterEach } );
QUnit.test( "Calling button on a checkbox input calls checkboxradio widget", function( assert ) {
var checkbox = $( "#checkbox01" );
@@ -27,7 +28,7 @@ QUnit.test( "Calling buttonset calls controlgroup", function( assert ) {
assert.ok( controlgroup.is( ":ui-controlgroup" ), "Calling buttonset creates controlgroup instance" );
} );
-QUnit.module( "Button (deprecated): methods" );
+QUnit.module( "Button (deprecated): methods", { afterEach: helper.moduleAfterEach } );
QUnit.test( "destroy", function( assert ) {
assert.expect( 1 );
@@ -59,7 +60,7 @@ QUnit.test( "refresh: Ensure disabled state is preserved correctly.", function(
} );
-QUnit.module( "button (deprecated): options" );
+QUnit.module( "button (deprecated): options", { afterEach: helper.moduleAfterEach } );
QUnit.test( "Setting items option on buttonset sets the button properties on the items option", function( assert ) {
assert.expect( 2 );
diff --git a/tests/unit/button/events.js b/tests/unit/button/events.js
index e8b5e01d6..577407361 100644
--- a/tests/unit/button/events.js
+++ b/tests/unit/button/events.js
@@ -1,10 +1,11 @@
define( [
"qunit",
"jquery",
+ "lib/helper",
"ui/widgets/button"
-], function( QUnit, $ ) {
+], function( QUnit, $, helper ) {
-QUnit.module( "Button: events" );
+QUnit.module( "Button: events", { afterEach: helper.moduleAfterEach } );
QUnit.test( "Anchor recieves click event when spacebar is pressed", function( assert ) {
var ready = assert.async();
diff --git a/tests/unit/button/methods.js b/tests/unit/button/methods.js
index 823acee34..80ce27b39 100644
--- a/tests/unit/button/methods.js
+++ b/tests/unit/button/methods.js
@@ -1,10 +1,11 @@
define( [
"qunit",
"jquery",
+ "lib/helper",
"ui/widgets/button"
-], function( QUnit, $ ) {
+], function( QUnit, $, helper ) {
-QUnit.module( "Button: methods" );
+QUnit.module( "Button: methods", { afterEach: helper.moduleAfterEach } );
QUnit.test( "destroy", function( assert ) {
assert.expect( 1 );
diff --git a/tests/unit/button/options.js b/tests/unit/button/options.js
index 7d6547ff1..8a9acd60b 100644
--- a/tests/unit/button/options.js
+++ b/tests/unit/button/options.js
@@ -1,10 +1,11 @@
define( [
"qunit",
"jquery",
+ "lib/helper",
"ui/widgets/button"
-], function( QUnit, $ ) {
+], function( QUnit, $, helper ) {
-QUnit.module( "button: options" );
+QUnit.module( "button: options", { afterEach: helper.moduleAfterEach } );
QUnit.test( "disabled, explicit value", function( assert ) {
assert.expect( 8 );