Ticket #2531844 (accepted defect)

Reporter


John McLaughlin
Opened: 03/5/12
Last modified: 09/19/12
Status: accepted
Type: defect

Owner


Luke Smith
Target Release: BACKLOG
Priority: P3 (normal)
Summary: Extra execution of an asynchronous callback task occurs when it is preceded by a synchronous task.
Description:

See unit test code below. The unit test and a fix are in my next pull request.

Type: defect Observed in Version: 3.5.0pr2
Component: AsyncQueue Severity: S3 (normal)
Assigned To: Luke Smith Target Release: BACKLOG
Location: Library Code Priority: P3 (normal)
Tags: Relates To:
Browsers: All
URL:
Test Information:


test_mixedAsyncSync : function () {
// This fails in YUI3.5.
var results = '',
self = this,
q = new Y.AsyncQueue(
function () { q.pause(); results += 'A'; q.run();},
{ fn: function () { q.pause(); results += 'B'; q.run();} },
{
fn: function () { q.pause(); results += 'C'; q.run();},
timeout: 10
},
{
fn: function () { q.pause(); results += 'D'; q.run();},
timeout: 10
},
{
fn: function () { q.pause(); results += 'E'; q.run();},
timeout: -1
},
{ fn: function () {
self.resume(function () {
Y.Assert.areSame('ABCDE', results);
});
}
}
);
q.defaults.timeout = -1;
q.run();

this.wait();
},

Change History

Luke Smith

YUI Contributor

Posted: 03/23/12
  • location changed to Library Code
  • milestone changed to 3.6.0
  • priority changed to P3 (normal)
  • status changed from new to accepted

Luke Smith

YUI Contributor

Posted: 04/5/12
  • estimated changed from 0 to 1
  • remaining changed from 0 to 1
  • sprint changed to backlog

Jenny Donnelly

YUI Developer

Posted: 07/24/12
  • milestone changed from 3.6.0 to 3.NEXT

Moving from 3.6.0 backlog to 3.NEXT.

Jenny Donnelly

YUI Developer

Posted: 09/19/12
  • milestone changed from 3.NEXT to BACKLOG

Jenny Donnelly

YUI Developer

Posted: 09/19/12

Moving from 3.NEXT to BACKLOG.