From 65aeb97e3e085723e4df1f87e97dd55678117114 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 6 Jul 2014 08:08:08 -0500 Subject: [PATCH] Increate code coverage for AMD build of the `root` module. --- test/index.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/index.html b/test/index.html index 386939db5..5d2664ccd 100644 --- a/test/index.html +++ b/test/index.html @@ -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;