Add lodashBizarro tests for cloning typed arrays.

This commit is contained in:
John-David Dalton
2014-07-06 17:05:37 -07:00
parent 92e5ae29c9
commit d89d5befa0
2 changed files with 41 additions and 11 deletions

View File

@@ -105,6 +105,10 @@
setProperty(document, '_createDocumentFragment', document.createDocumentFragment);
document.createDocumentFragment = function() {};
setProperty(window, '_Float64Array', window.Float64Array);
if (!_Float64Array) {
setProperty(window, 'Float64Array', window.Uint8Array);
}
setProperty(window, 'global', window);
setProperty(window, 'WinRTError', Error);
}
@@ -145,6 +149,9 @@
} else {
delete String.prototype.contains;
}
if (!_Float64Array) {
setProperty(window, 'Float64Array', undefined);
}
setProperty(Function.prototype, 'toString', Function.prototype._toString);
setProperty(Object.prototype, 'hasOwnProperty', Object.prototype._hasOwnProperty);