Skip to content

Commit

Permalink
[INTERNAL] generateStandaloneAppBundle: Update integration test
Browse files Browse the repository at this point in the history
Without building all dependencies, some modules might not be minified now
  • Loading branch information
RandomByte committed Dec 23, 2021
1 parent 1f75d08 commit 0cc9a8b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
//@ui5-bundle sap-ui-custom-dbg.js
//@ui5-bundle-raw-include ui5loader-autoconfig.js
(function () {
var thisIsTheUi5LoaderAutoconfig = true;
console.log(thisIsTheUi5LoaderAutoconfig);
})()
sap.ui.requireSync("sap/ui/core/Core");
// as this module contains the Core, we ensure that the Core has been booted
sap.ui.getCore().boot && sap.ui.getCore().boot();
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
//@ui5-bundle sap-ui-custom.js
jQuery.sap.registerPreloadedModules({
"version":"2.0",
"modules":{
//@ui5-bundle-raw-include ui5loader-autoconfig.js
(function () {
var thisIsTheUi5LoaderAutoconfig = true;
console.log(thisIsTheUi5LoaderAutoconfig);
})()
sap.ui.require.preload({
"id1/embedded/i18n/i18n.properties":'title=embedded-i18n',
"id1/embedded/i18n/i18n_de.properties":'title=embedded-i18n_de',
"id1/embedded/i18n_fr.properties":'title=embedded-i18n_fr-wrong',
Expand All @@ -11,9 +14,12 @@ jQuery.sap.registerPreloadedModules({
"id1/i18n/i18n_de.properties":'title=app-i18n_de\nfame=Stra\\u00dfe',
"id1/i18n/l10n.properties":'title=app-i18n-wrong\nfame=Stra\\u00dfe',
"id1/manifest.json":'{"_version":"1.1.0","sap.app":{"_version":"1.1.0","id":"id1","type":"application","applicationVersion":{"version":"1.2.2"},"embeds":["embedded"],"title":"{{title}}"}}',
"sap/ui/core/Core.js":function(){
"sap/ui/core/Core.js":function(){(function () {
var core = true;
console.log(core);
})()
}
}});
});
sap.ui.requireSync("sap/ui/core/Core");
// as this module contains the Core, we ensure that the Core has been booted
sap.ui.getCore().boot && sap.ui.getCore().boot();
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ test("integration: build application.b standalone", async (t) => {
const destPath = "./test/tmp/build/application.b/standalone";
const expectedPath = "./test/expected/build/application.b/standalone";
const excludedTasks = ["*"];
const includedTasks = ["generateStandaloneAppBundle"];
const includedTasks = ["minify", "generateStandaloneAppBundle"];

return builder.build({
tree: applicationBTree,
Expand Down

0 comments on commit 0cc9a8b

Please sign in to comment.