Fix failing tests in older IE related to iteration order.

This commit is contained in:
John-David Dalton
2014-06-21 14:57:15 -07:00
parent d2de62283b
commit 87a8780cca

View File

@@ -891,7 +891,7 @@
var object = new Foo; var object = new Foo;
_.bindAll(object); _.bindAll(object);
var actual = _.map(_.functions(object), function(methodName) { var actual = _.map(_.functions(object).sort(), function(methodName) {
return object[methodName].call({}); return object[methodName].call({});
}); });
@@ -910,7 +910,7 @@
_.bindAll(object, 'a', 'b'); _.bindAll(object, 'a', 'b');
var actual = _.map(_.functions(object), function(methodName) { var actual = _.map(_.functions(object).sort(), function(methodName) {
return object[methodName].call({}); return object[methodName].call({});
}); });
@@ -931,7 +931,7 @@
_.bindAll(object, ['a', 'b'], ['c']); _.bindAll(object, ['a', 'b'], ['c']);
var actual = _.map(_.functions(object), function(methodName) { var actual = _.map(_.functions(object).sort(), function(methodName) {
return object[methodName].call({}); return object[methodName].call({});
}); });
@@ -952,7 +952,7 @@
_.bindAll(object, args); _.bindAll(object, args);
var actual = _.map(_.functions(object), function(methodName) { var actual = _.map(_.functions(object).sort(), function(methodName) {
return object[methodName].call({}); return object[methodName].call({});
}); });
@@ -11050,7 +11050,7 @@
QUnit.module('lodash methods'); QUnit.module('lodash methods');
(function() { (function() {
var allMethods = _.reject(_.functions(_), function(methodName) { var allMethods = _.reject(_.functions(_).sort(), function(methodName) {
return /^_/.test(methodName); return /^_/.test(methodName);
}); });