mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-29 23:06:30 +08:00
cleanup (#697)
This commit is contained in:
parent
827d0522bb
commit
9409736bc2
25
src/02/01/z2ui5_cl_cc__factory_fw.clas.testclasses.abap
Normal file
25
src/02/01/z2ui5_cl_cc__factory_fw.clas.testclasses.abap
Normal 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.
|
|
@ -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>
|
||||
|
|
|
@ -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| &&
|
||||
|
|
|
@ -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| &&
|
||||
|
|
|
@ -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| &&
|
||||
|
|
Loading…
Reference in New Issue
Block a user