Update Underscore tests and excuse tests for edge features from the Underscore build.

This commit is contained in:
John-David Dalton
2014-05-16 08:01:47 -07:00
parent f40a7d47f5
commit 3c5932af75
4 changed files with 19 additions and 12 deletions

View File

@@ -76,6 +76,11 @@
'bindAll': [
'throws an error for bindAll with no functions named'
],
'memoize': [
'{"bar":"BAR","foo":"FOO"}',
'"BAR"',
'"FOO"'
],
'negate': true,
'partial': [
'can partially apply with placeholders',
@@ -135,7 +140,7 @@
delete QUnit.config.excused.Utility.times;
delete QUnit.config.excused.Utility.uniqueId;
}
// only excuse in non-Underscore builds
// only excuse for non-Underscore builds
if (/\bunderscore\b/i.test(ui.buildPath)) {
if (!ui.isModularize) {
delete QUnit.config.excused.Functions.partial;
@@ -149,7 +154,9 @@
delete QUnit.config.excused.Utility['_.escape'];
delete QUnit.config.excused.Utility['_.unescape'];
}
// only execuse edge features for the Underscore build
else {
delete QUnit.config.excused.Functions.memoize;
delete QUnit.config.excused.Functions.negate;
delete QUnit.config.excused.Objects.pick;
delete QUnit.config.excused.Utility.noop;