Increate code coverage for AMD build of the root module.

This commit is contained in:
John-David Dalton
2014-07-06 08:08:08 -05:00
parent 08a9ef1072
commit 65aeb97e3e

View File

@@ -102,10 +102,11 @@
setProperty(String.prototype, '_contains', String.prototype.contains);
setProperty(String.prototype, 'contains', String.prototype._contains ? function() {} : Boolean);
setProperty(window, 'WinRTError', Error);
setProperty(document, '_createDocumentFragment', document.createDocumentFragment);
document.createDocumentFragment = function() {};
setProperty(window, 'global', window);
setProperty(window, 'WinRTError', Error);
}
function removeBizarroMethods() {
@@ -144,13 +145,15 @@
} else {
delete String.prototype.contains;
}
setProperty(window, 'WinRTError', undefined);
setProperty(Function.prototype, 'toString', Function.prototype._toString);
setProperty(Object.prototype, 'hasOwnProperty', Object.prototype._hasOwnProperty);
document.createDocumentFragment = document._createDocumentFragment;
setProperty(document, '_createDocumentFragment', undefined);
setProperty(window, 'global', undefined);
setProperty(window, 'WinRTError', undefined);
delete Array._isArray;
delete Date._now;
delete Function.prototype._method;