From 2d5857ca9e4bfc8b275dedf1dede6f3e0b732632 Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Fri, 30 Jan 2015 09:57:30 -0500 Subject: Draggable: Use new has/lacksClasses assertions for all class checks --- tests/unit/dialog/dialog_methods.js | 2 +- tests/unit/draggable/draggable.html | 1 + tests/unit/draggable/draggable_core.js | 23 +++++++++++------------ tests/unit/draggable/draggable_methods.js | 6 +++--- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/tests/unit/dialog/dialog_methods.js b/tests/unit/dialog/dialog_methods.js index c012f80a5..c92f1f1b4 100644 --- a/tests/unit/dialog/dialog_methods.js +++ b/tests/unit/dialog/dialog_methods.js @@ -105,7 +105,7 @@ test( "enable/disable disabled", function( assert ) { var element = $( "
" ).dialog(); element.dialog( "disable" ); equal(element.dialog( "option", "disabled" ), false, "disable method doesn't do anything" ); - assert.lacksClasses( element, "ui-dialog-disabled ui-state-disabled" ); + assert.lacksClasses( element, "ui-dialog-disabled ui-state-disabled", "disable method doesn't add classes" ); ok( !element.dialog( "widget" ).attr( "aria-disabled" ), "disable method doesn't add aria-disabled" ); }); diff --git a/tests/unit/draggable/draggable.html b/tests/unit/draggable/draggable.html index eb4985adc..a8fdf91ca 100644 --- a/tests/unit/draggable/draggable.html +++ b/tests/unit/draggable/draggable.html @@ -68,6 +68,7 @@ +