Add tests for _.support.funcDecomp and WinRTError.

This commit is contained in:
John-David Dalton
2013-12-15 23:17:33 -08:00
parent 08047d4ab7
commit 38869d5035
2 changed files with 21 additions and 0 deletions

View File

@@ -44,6 +44,8 @@
Object._keys = Object.keys;
Object.keys = function() {};
window.WinRTError = Error;
window.clearTimeout = (function(fn) {
window._clearTimeout = fn;
return function(id) {
@@ -95,6 +97,8 @@
} else {
delete Object.keys;
}
window.WinRTError = undefined;
window.clearTimeout = _clearTimeout;
window._clearTimeout = undefined;