All files / output cl_gui_timer.clas.mjs

48.64% Statements 18/37
100% Branches 2/2
16.66% Functions 1/6
48.64% Lines 18/37

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 371x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x                         1x       1x     1x     1x 1x 1x
const {cl_gui_control} = await import("./cl_gui_control.clas.mjs");
const {cx_root} = await import("./cx_root.clas.mjs");
// cl_gui_timer.clas.abap
class cl_gui_timer extends cl_gui_control {
  static STATIC_SUPER = cl_gui_control;
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_GUI_TIMER';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {"INTERVAL": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": " ", "is_class": " "}};
  static METHODS = {"RUN": {"visibility": "U", "parameters": {}},
  "CANCEL": {"visibility": "U", "parameters": {}}};
  constructor() {
    const sup = super();
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "SUPER": sup.FRIENDS_ACCESS_INSTANCE,
      "run": this.run.bind(this),
      "cancel": this.cancel.bind(this),
    };
    this.interval = new abap.types.Integer({qualifiedName: "I"});
    this.finished = {"EVENT_NAME": "FINISHED", "EVENT_CLASS": "CL_GUI_TIMER"};
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async run() {
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
  }
  async cancel() {
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
  }
}
abap.Classes['CL_GUI_TIMER'] = cl_gui_timer;
export {cl_gui_timer};