Merge pull request #942 from Hixie/wacky

Workaround to re-enable test
This commit is contained in:
Ian Hickson 2015-12-15 14:07:10 -08:00
commit ff2c8b4805
2 changed files with 5 additions and 6 deletions

View File

@ -95,12 +95,11 @@ abstract class Scheduler extends BindingBase {
SchedulingStrategy schedulingStrategy = new DefaultSchedulingStrategy();
final PriorityQueue _taskQueue = new HeapPriorityQueue<_TaskEntry>(
(_TaskEntry e1, _TaskEntry e2) {
static int _taskSorter (_TaskEntry e1, _TaskEntry e2) {
// Note that we inverse the priority.
return -e1.priority.compareTo(e2.priority);
}
);
final PriorityQueue _taskQueue = new HeapPriorityQueue<_TaskEntry>(_taskSorter);
/// Whether this scheduler already requested to be called from the event loop.
bool _hasRequestedAnEventLoopCallback = false;