Bugfix path (#718)

* bugfix path

* abaplint fix
This commit is contained in:
oblomov 2023-12-10 12:04:11 +01:00 committed by GitHub
parent 4fbd3b5c86
commit 8ff9ee4e2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 2 deletions

View File

@ -534,7 +534,7 @@ CLASS z2ui5_cl_fw_http_handler IMPLEMENTATION.
` });` && |\n| &&
|\n| &&
` sap.z2ui5 = sap.z2ui5 || {};` && |\n| &&
` sap.z2ui5.pathname = sap.z2ui5.pathname || '/sap/test';` && |\n| &&
` sap.z2ui5.pathname = sap.z2ui5.pathname || window.location.pathname;` && |\n| &&
` sap.z2ui5.checkNestAfter = false;` && |\n| &&
|\n| &&
` jQuery.sap.require("sap.ui.core.Fragment");` && |\n| &&

View File

@ -8,7 +8,7 @@ CLASS ltcl_unit_02_app_start DEFINITION FINAL FOR TESTING
PRIVATE SECTION.
METHODS test_index_html FOR TESTING RAISING cx_static_check.
METHODS test_launchpad_compatibility FOR TESTING RAISING cx_static_check.
METHODS test_path FOR TESTING RAISING cx_static_check.
ENDCLASS.
@ -33,4 +33,19 @@ CLASS ltcl_unit_02_app_start IMPLEMENTATION.
ENDMETHOD.
METHOD test_path.
DATA(lv_index_html) = z2ui5_cl_fw_http_handler=>http_get( ).
IF lv_index_html CS `sap.z2ui5.pathname || '/sap/test';`.
cl_abap_unit_assert=>fail( 'path static' ).
ENDIF.
IF lv_index_html NS `sap.z2ui5.pathname || window.location.pathname;`.
cl_abap_unit_assert=>fail( 'path static' ).
ENDIF.
ENDMETHOD.
ENDCLASS.