mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-29 22:03:59 +08:00
parent
4fbd3b5c86
commit
8ff9ee4e2d
|
@ -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| &&
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user