diff options
author | Hannah Methvin <hannahmethvin@gmail.com> | 2015-10-18 12:36:43 -0400 |
---|---|---|
committer | Hannah Methvin <hannahmethvin@gmail.com> | 2015-10-18 12:36:43 -0400 |
commit | a1d69208bad175a27c7b50c27fdc10001563cd4d (patch) | |
tree | c69626ed468130e03443d6ac32d856b54fd31a2e /tests/unit | |
parent | ac81e39237781f72670f19b52eacceada48f76ef (diff) | |
download | jquery-ui-a1d69208bad175a27c7b50c27fdc10001563cd4d.tar.gz jquery-ui-a1d69208bad175a27c7b50c27fdc10001563cd4d.zip |
Mouse: Don't stop propagation of mouseup
Fixes #10818
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/draggable/core.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/unit/draggable/core.js b/tests/unit/draggable/core.js index 8bc751e0e..9efe9d3f1 100644 --- a/tests/unit/draggable/core.js +++ b/tests/unit/draggable/core.js @@ -345,4 +345,21 @@ test( "ui-draggable-handle managed correctly in nested draggables", function( as assert.hasClasses( child, "ui-draggable-handle", "child retains class name on destroy" ); } ); +test( "does not stop propagation to window", function( assert ) { + expect( 1 ); + var element = $( "#draggable1" ).draggable(); + + var handler = function() { + assert.ok( true, "mouseup propagates to window" ); + }; + $( window ).on( "mouseup", handler ); + + element.simulate( "drag", { + dx: 10, + dy: 10 + } ); + + $( window ).off( "mouseup", handler ); +} ); + } ); |