mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +00:00
Fix failing tests in older IE related to iteration order.
This commit is contained in:
10
test/test.js
10
test/test.js
@@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user