queue-promote-tests.js revision 633de4bb69cc75314323126db390d29ff1dee2c7
name : "queue-promote API",
"methods should exist": function () {
X.use('queue-promote', function () {
});
});
},
"promote should move found item to the head" : function () {
q.promote('c');
},
"remove should remove found item": function () {
// From the front
q.remove('a');
// From the end
q.remove('c');
// From the middle
q.remove('d');
// Not in the queue
q.remove('x');
},
"indexOf should return index or -1": function () {
}
}));