"sap-ui-cover-only", "[sap/ui/core/Popup.js, sap/ui/core/EventProvide]"jQuery.sap.require("sap.ui.qunit.qunit-css");
jQuery.sap.require("sap.ui.thirdparty.qunit");
jQuery.sap.require("sap.ui.qunit.qunit-junit");
//-8<-------------------------------------------------------------------------
jQuery.sap.require("sap.ui.qunit.qunit-coverage"); //added
//this is the filter. This covers only the Opa5.js file. See the importance of covering at least
//one file below.
if(window.blanket){
window.blanket.options("sap-ui-cover-only", "sap/ui/test/Opa5.js");
}
//-8<-------------------------------------------------------------------------
//below provided for context...
QUnit.config.autostart = false;
sap.ui.require([<script type="text/javascript">
sap.ui.getCore().attachInit(function() {
// -8<------------------------------------------------------------------------------------------------------------------
window.QUnit = Object.create(window.parent.QUnit || {
urlParams: {coverage: false}
}); // Might not exist
if (QUnit && QUnit.urlParams.coverage) {
function noop () {}
QUnit.begin = noop;
QUnit.done = noop;
QUnit.moduleStart = noop;
QUnit.testStart = noop;
QUnit.testDone = noop;
var _$blanketCache = window.parent._$blanketCache;
if (!_$blanketCache) {
_$blanketCache = {
getItem: function (key) {
return _$blanketCache[key];
},
setItem: function (key, data) {
_$blanketCache[key] = data;
}
};
window.parent._$blanketCache = _$blanketCache;
}
window._$blanketCache = _$blanketCache;
var _eval = window.eval;
window.eval = function (sScript) {
if (sScript.indexOf("sessionStorage&&sessionStorage.getItem") > -1) {
sScript = sScript.replace(/\bsessionStorage\b/g, "_$blanketCache");
window.eval = _eval; // disconnect
}
_eval(sScript);
};
jQuery.sap.require("sap.ui.qunit.qunit-coverage");
blanket.noConflict().setupCoverage();
blanket.noConflict().options({
instrumentCache: true // force cache since the app will be restarted
});
window._$blanket = window.parent._$blanket; // Connect to parent
}
// -8<------------------------------------------------------------------------------------------------------------------
sap.ui.require([
"sap/ui/fl/FakeLrepConnector",
"hpa/cei/setupapp/test/mockserver",
"hpa/cei/mkt/lib/opa/i18nCheck",
], function (FakeLrepConnector, server) {
FakeLrepConnector.enableFakeConnector("fakeLRep.json");
server.init();
sap.ushell.Container.createRenderer().placeAt("content");
});
});
</script>You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 48 | |
| 47 | |
| 37 | |
| 34 | |
| 29 | |
| 23 | |
| 22 | |
| 22 | |
| 22 | |
| 21 |