define( [ "qunit", "jquery", "lib/helper", "ui/widgets/button" ], function( QUnit, $, helper ) { "use strict"; QUnit.module( "Button: methods", { afterEach: helper.moduleAfterEach } ); QUnit.test( "destroy", function( assert ) { assert.expect( 1 ); assert.domEqual( "#button", function() { $( "#button" ).button().button( "destroy" ); } ); } ); QUnit.test( "refresh: Ensure disabled state is preserved correctly.", function( assert ) { assert.expect( 3 ); var element = $( "" ); element.button( { disabled: true } ).button( "refresh" ); assert.ok( element.button( "option", "disabled" ), "Anchor button should remain disabled after refresh" ); element = $( "" ); element.button( { disabled: true } ).button( "refresh" ); assert.ok( element.button( "option", "disabled" ), " should remain disabled after refresh" ); element = $( "" ); element.button( { disabled: true } ).prop( "disabled", false ).button( "refresh" ); assert.ok( !element.button( "option", "disabled" ), "Changing a 's disabled property should update the state after refresh." ); } ); } ); option> dependabot/github_actions/github-actions-0b02fec6e3 dependabot/github_actions/github-actions-384b59e5c3 dependabot/github_actions/github-actions-66959c3ab9 dependabot/github_actions/github-actions-6951dec90a dependabot/github_actions/github-actions-7574396d95 dependabot/github_actions/github-actions-a2938ab9b9 dependabot/github_actions/github-actions-ced721f930 dependabot/github_actions/github-actions-e7ab6fa4fa dependabot/github_actions/github-actions-f50e11107c dependabot/npm_and_yarn/body-parser-1.20.3 dependabot/npm_and_yarn/express-4.20.0 interactions jtr-test main spinner-globalize-1.x The official jQuery user interface library: https://github.com/jquery/jquery-uiwww-data aboutsummaryrefslogtreecommitdiffstats log msg author committer range path: root/tests/unit/selectmenu/selectmenu.htmlblob: be8b826c8a8934c2163ea90b922e9822868beab2 (plain) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64