This commit is contained in:
oblomov 2023-11-30 19:35:52 +01:00 committed by GitHub
parent 827d0522bb
commit 9409736bc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 28 additions and 3 deletions

View File

@ -0,0 +1,25 @@
CLASS ltcl_unit_test DEFINITION FINAL FOR TESTING
DURATION MEDIUM
RISK LEVEL HARMLESS.
PUBLIC SECTION.
PROTECTED SECTION.
PRIVATE SECTION.
METHODS test_js_for_debugger FOR TESTING RAISING cx_static_check.
ENDCLASS.
CLASS ltcl_unit_test IMPLEMENTATION.
METHOD test_js_for_debugger.
DATA(lv_js) = z2ui5_cl_cc__factory_fw=>get_js_startup( ).
IF lv_js CS `debugger`.
cl_abap_unit_assert=>fail( 'HTTP GET - custom control js contains the command debugger' ).
ENDIF.
ENDMETHOD.
ENDCLASS.

View File

@ -10,6 +10,7 @@
<CLSCCINCL>X</CLSCCINCL>
<FIXPT>X</FIXPT>
<UNICODE>X</UNICODE>
<WITH_UNIT_TESTS>X</WITH_UNIT_TESTS>
</VSEOCLASS>
</asx:values>
</asx:abap>

View File

@ -46,7 +46,7 @@ CLASS Z2UI5_CL_CC_FOCUS IMPLEMENTATION.
|\n| &&
` setTimeout((oControl) => {` && |\n| &&
|\n| &&
` debugger; var oElement = sap.z2ui5.oView.byId(oControl.getProperty("focusId"));` && |\n| &&
` var oElement = sap.z2ui5.oView.byId(oControl.getProperty("focusId"));` && |\n| &&
` var oFocus = oElement.getFocusInfo();` && |\n| &&
` oFocus.selectionStart = parseInt(oControl.getProperty("selectionStart"));` && |\n| &&
` oFocus.selectionEnd = parseInt(oControl.getProperty("selectionEnd"));` && |\n| &&

View File

@ -59,7 +59,6 @@ CLASS z2ui5_cl_cc_messaging IMPLEMENTATION.
` },` && |\n| &&
|\n| &&
` Messaging2Model( ){` && |\n| &&
` debugger;` && |\n| &&
` var oData = Messaging.getMessageModel().getData();` && |\n| &&
` var Model = [];` && |\n| &&
` oData.forEach(element => {` && |\n| &&

View File

@ -52,7 +52,7 @@ CLASS Z2UI5_CL_CC_TIMER IMPLEMENTATION.
` },` && |\n| &&
` delayedCall( oControl){` && |\n| &&
` ` && |\n| &&
` debugger; if ( oControl.getProperty("checkActive") == false ){ return; }` && |\n| &&
` if ( oControl.getProperty("checkActive") == false ){ return; }` && |\n| &&
` setTimeout((oControl) => {` && |\n| &&
` oControl.setProperty( "checkActive", false )` && |\n| &&
` oControl.fireFinished();` && |\n| &&