mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1210375 - Use correct GRAB_DELAY in the markup view;r=pbrosset
This commit is contained in:
parent
442348ecd9
commit
298bdf596d
@ -1929,7 +1929,7 @@ MarkupContainer.prototype = {
|
||||
// If this is the last child, use the closing <div.tag-line> of parent as indicator
|
||||
this.markup.indicateDragTarget(this.elt.nextElementSibling ||
|
||||
this.markup.getContainer(this.node.parentNode()).closeTagLine);
|
||||
}, this.GRAB_DELAY);
|
||||
}, this.markup.GRAB_DELAY);
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -27,6 +27,10 @@ add_task(function*() {
|
||||
|
||||
ok(!el.isDragging, "isDragging should not be set to true immediately");
|
||||
|
||||
info("Waiting for 10ms");
|
||||
yield wait(10);
|
||||
ok(!el.isDragging, "isDragging should not be set to true after a brief wait");
|
||||
|
||||
info("Waiting " + (GRAB_DELAY + 1) + "ms");
|
||||
yield wait(GRAB_DELAY + 1);
|
||||
ok(el.isDragging, "isDragging true after GRAB_DELAY has passed");
|
||||
|
Loading…
Reference in New Issue
Block a user