$( [ "hidden", "auto", "scroll" ] ).each( function() {
var overflow = this;
- // Http://bugs.jqueryui.com/ticket/9379 - position bug in scrollable div
+ // https://bugs.jqueryui.com/ticket/9379 - position bug in scrollable div
// https://bugs.jqueryui.com/ticket/10147 - Wrong position in a parent with "overflow: hidden"
QUnit.test( "position in scrollable parent with overflow: " + overflow, function( assert ) {
assert.expect( 2 );
testHelper.move( focusElement, 1, 1 );
- // Http://bugs.jqueryui.com/ticket/10527
+ // https://bugs.jqueryui.com/ticket/10527
// Draggable: Can't select option in modal dialog (IE8)
assert.strictEqual( document.activeElement, focusElement.get( 0 ), "test element is focused after mousing down on itself" );
testHelper.move( element, 50, 50 );
- // Http://bugs.jqueryui.com/ticket/4261
+ // https://bugs.jqueryui.com/ticket/4261
// active element should blur when mousing down on a draggable
assert.notStrictEqual( document.activeElement, focusElement.get( 0 ), "test element is no longer focused after mousing down on a draggable" );
ready();
assert.ok( Math.abs( result.top - offsetExpected.top ) < 0.25, "draggable offset is within 0.25 of expected" );
assert.ok( Math.abs( result.left - offsetExpected.left ) < 0.25, "draggable offset is within 0.25 of expected" );
- // Http://bugs.jqueryui.com/ticket/7734
+ // https://bugs.jqueryui.com/ticket/7734
// HTML IDs are removed when dragging to a Sortable
assert.equal( sortItem[ 0 ], dragHelper[ 0 ], "both have the same helper" );
assert.equal( sortItem.attr( "id" ), dragHelper.attr( "id" ), "both have the same id" );
- // Http://bugs.jqueryui.com/ticket/9481
+ // https://bugs.jqueryui.com/ticket/9481
// connectToSortable causes sortable revert to fail on second attempt
assert.equal( sortable.sortable( "option", "revert" ), 100, "sortable revert behavior is preserved" );
} );
moves: 10
} );
- // Http://bugs.jqueryui.com/ticket/9675
+ // https://bugs.jqueryui.com/ticket/9675
// Animation issue with revert and connectToSortable
sortable.one( "sortstop", function( event, ui ) {
assert.ok( !$.contains( document, ui.placeholder[ 0 ] ), "placeholder was removed" );
sortable = $( "#sortable2" ).sortable(),
sortableOffset = sortable.offset();
- // Http://bugs.jqueryui.com/ticket/10669
+ // https://bugs.jqueryui.com/ticket/10669
// Draggable: Position issue with connectToSortable
draggable.one( "dragstop", function() {
assert.equal( draggable.parent().attr( "id" ), "sortable", "restored draggable to original parent" );
} ),
element2 = $( "#draggable2" ).draggable();
- // Http://bugs.jqueryui.com/ticket/9724
+ // https://bugs.jqueryui.com/ticket/9724
// Draggable: Snapping coordinates thrown off by margin on draggable
element.css( "margin", "3px" );
height: 10,
position: "absolute",
- // Http://bugs.jqueryui.com/ticket/6876
+ // https://bugs.jqueryui.com/ticket/6876
// Droppable: droppable region is offset by draggables margin
marginTop: 3,
marginLeft: 3
} );
} );
- // Http://bugs.jqueryui.com/ticket/4977 - tolerance, pointer - bug when pointer outside draggable
+ // https://bugs.jqueryui.com/ticket/4977 - tolerance, pointer - bug when pointer outside draggable
draggable.css( { top: 0, left: 0 } ).draggable( "option", "axis", "x" );
droppable.css( { top: 15, left: 15 } );
QUnit.test( "aspectRatio: Resizing can move objects", function( assert ) {
assert.expect( 7 );
- // Http://bugs.jqueryui.com/ticket/7018 - Resizing can move objects
+ // https://bugs.jqueryui.com/ticket/7018 - Resizing can move objects
var handleW = ".ui-resizable-w",
handleNW = ".ui-resizable-nw",
target = $( "#resizable1" ).resizable( {
assert.equal( target.height(), 100, "compare height - no size change" );
assert.equal( target.position().left, 75, "compare left - no movement" );
- // Http://bugs.jqueryui.com/ticket/9107 - aspectRatio and containment not handled correctly
+ // https://bugs.jqueryui.com/ticket/9107 - aspectRatio and containment not handled correctly
$( "#container" ).css( { width: 200, height: 300, position: "absolute", left: 100, top: 100 } );
$( "#resizable1" ).css( { width: 100, height: 100, left: 0, top: 0 } );
QUnit.test( "containment - not immediate parent", function( assert ) {
assert.expect( 4 );
- // Http://bugs.jqueryui.com/ticket/7485 - Resizable: Containment calculation is wrong
+ // https://bugs.jqueryui.com/ticket/7485 - Resizable: Containment calculation is wrong
// when containment element is not the immediate parent
var element = $( "#child" ).resizable( {
containment: "#container2",
QUnit.test( "containment - immediate parent", function( assert ) {
assert.expect( 4 );
- // Http://bugs.jqueryui.com/ticket/10140 - Resizable: Width calculation is wrong when containment element is "position: relative"
+ // https://bugs.jqueryui.com/ticket/10140 - Resizable: Width calculation is wrong when containment element is "position: relative"
// when containment element is immediate parent
var element = $( "#child" ).resizable( {
containment: "parent",
QUnit.test( "grid - maintains grid with padding and border when approaching no dimensions", function( assert ) {
assert.expect( 2 );
- // Http://bugs.jqueryui.com/ticket/10437 - Resizable: border with grid option working wrong
+ // https://bugs.jqueryui.com/ticket/10437 - Resizable: border with grid option working wrong
var handle = ".ui-resizable-nw",
target = $( "#resizable1" ).css( {
padding: 5,
o.appendTo ) );
}
- // Http://bugs.jqueryui.com/ticket/9446
+ // https://bugs.jqueryui.com/ticket/9446
// a helper function can return the original element
// which wouldn't have been set to relative in _create
if ( helperIsFunction && helper[ 0 ] === this.element[ 0 ] ) {