From 72023dd045a7fead5a3136ec2400ad4743a190d2 Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Tue, 28 Feb 2012 15:56:32 +0100 Subject: Update to QUnit 1.3. Replace usage of same with deepEqual and equals with equal. --- tests/unit/menu/menu_methods.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/unit/menu/menu_methods.js') diff --git a/tests/unit/menu/menu_methods.js b/tests/unit/menu/menu_methods.js index 3bcab3361..200ea4427 100644 --- a/tests/unit/menu/menu_methods.js +++ b/tests/unit/menu/menu_methods.js @@ -22,17 +22,17 @@ test( "enable/disable", function() { menu_log("click"); menu_click(menu,"1"); menu_log("afterclick"); - equals( $("#log").html(), "afterclick,1,click,afterclick,click,", "Click order not valid."); + equal( $("#log").html(), "afterclick,1,click,afterclick,click,", "Click order not valid."); }); test( "refresh", function() { expect( 3 ); var menu = $( "#menu1" ).menu(); - equals(menu.find(".ui-menu-item").length,5,"Incorrect number of menu items"); + equal(menu.find(".ui-menu-item").length,5,"Incorrect number of menu items"); menu.append("
  • test item
  • ").menu("refresh"); - equals(menu.find(".ui-menu-item").length,6,"Incorrect number of menu items"); + equal(menu.find(".ui-menu-item").length,6,"Incorrect number of menu items"); menu.find(".ui-menu-item:last").remove().end().menu("refresh"); - equals(menu.find(".ui-menu-item").length,5,"Incorrect number of menu items"); + equal(menu.find(".ui-menu-item").length,5,"Incorrect number of menu items"); }); test("destroy", function() { -- cgit v1.2.3