mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Add unit tests and code comments for the conditional compilation patch.
Former-commit-id: 557aa43dc7c8db738452a9f3afb8ff2aadf8061a
This commit is contained in:
13
test/test.js
13
test/test.js
@@ -855,6 +855,19 @@
|
||||
ok(false);
|
||||
}
|
||||
});
|
||||
|
||||
test('should not error with IE conditional comments enabled (test with development build)', function() {
|
||||
var compiled = _.template(''),
|
||||
pass = true;
|
||||
|
||||
/*@cc_on @*/
|
||||
try {
|
||||
compiled();
|
||||
} catch(e) {
|
||||
pass = false;
|
||||
}
|
||||
ok(pass);
|
||||
});
|
||||
}());
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user