In Jasmine's own tests, don't leak between jasmine and jasmineUnderTest
This commit is contained in:
@@ -34,7 +34,7 @@ var getJasmineRequireObj = (function (jasmineGlobal) {
|
|||||||
if (typeof window !== 'undefined' && typeof window.toString === 'function' && window.toString() === '[object GjsGlobal]') {
|
if (typeof window !== 'undefined' && typeof window.toString === 'function' && window.toString() === '[object GjsGlobal]') {
|
||||||
jasmineGlobal = window;
|
jasmineGlobal = window;
|
||||||
}
|
}
|
||||||
jasmineRequire = jasmineGlobal.jasmineRequire = jasmineGlobal.jasmineRequire || {};
|
jasmineRequire = jasmineGlobal.jasmineRequire = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
function getJasmineRequire() {
|
function getJasmineRequire() {
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
src_dir:
|
src_dir:
|
||||||
- 'src'
|
- 'src'
|
||||||
src_files:
|
src_files:
|
||||||
|
- 'core/requireCore.js'
|
||||||
- 'core/base.js'
|
- 'core/base.js'
|
||||||
- 'core/util.js'
|
- 'core/util.js'
|
||||||
#end of known dependencies
|
#end of known dependencies
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ var getJasmineRequireObj = (function (jasmineGlobal) {
|
|||||||
if (typeof window !== 'undefined' && typeof window.toString === 'function' && window.toString() === '[object GjsGlobal]') {
|
if (typeof window !== 'undefined' && typeof window.toString === 'function' && window.toString() === '[object GjsGlobal]') {
|
||||||
jasmineGlobal = window;
|
jasmineGlobal = window;
|
||||||
}
|
}
|
||||||
jasmineRequire = jasmineGlobal.jasmineRequire = jasmineGlobal.jasmineRequire || {};
|
jasmineRequire = jasmineGlobal.jasmineRequire = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
function getJasmineRequire() {
|
function getJasmineRequire() {
|
||||||
|
|||||||
Reference in New Issue
Block a user