@sapui5/sap.fe.test 1.114.0 → 1.114.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7048,7 +7048,7 @@ sap.ui.predefine("sap/fe/test/api/CollaborationAPI", ["sap/base/Log", "sap/fe/co
7048
7048
  var endCollaboration = ActivityBase.endCollaboration;
7049
7049
  var broadcastCollaborationMessage = ActivityBase.broadcastCollaborationMessage;
7050
7050
  const CollaborationAPI = {
7051
- _lastReceivedMessage: undefined,
7051
+ _lastReceivedMessages: [],
7052
7052
  _rootPath: "",
7053
7053
  _oModel: undefined,
7054
7054
  _lockedPropertyPath: "",
@@ -7078,17 +7078,19 @@ sap.ui.predefine("sap/fe/test/api/CollaborationAPI", ["sap/base/Log", "sap/fe/co
7078
7078
  this._oModel = oContext.getModel();
7079
7079
  },
7080
7080
  /**
7081
- * Checks if the ghost client has revieved a given message.
7081
+ * Checks if the ghost client has received a given message.
7082
7082
  *
7083
7083
  * @param message The message content to be looked for
7084
- * @returns True if the last recieved message matches the content
7084
+ * @returns True if a previously received message matches the content
7085
7085
  */
7086
7086
  checkReceived: function (message) {
7087
- if (!this._lastReceivedMessage) {
7087
+ if (this._lastReceivedMessages.length === 0) {
7088
7088
  return false;
7089
7089
  }
7090
- const found = (!message.userID || message.userID === this._lastReceivedMessage.userID) && (!message.userAction || message.userAction === this._lastReceivedMessage.userAction) && (!message.clientContent || message.clientContent === this._lastReceivedMessage.clientContent);
7091
- this._lastReceivedMessage = undefined; // reset history to avoid finding the same message twice
7090
+ const found = this._lastReceivedMessages.some(receivedMessage => {
7091
+ return (!message.userID || message.userID === receivedMessage.userID) && (!message.userAction || message.userAction === receivedMessage.userAction) && (!message.clientContent || message.clientContent === receivedMessage.clientContent);
7092
+ });
7093
+ this._lastReceivedMessages = []; // reset history to avoid finding the same message twice
7092
7094
 
7093
7095
  return found;
7094
7096
  },
@@ -7203,12 +7205,12 @@ sap.ui.predefine("sap/fe/test/api/CollaborationAPI", ["sap/base/Log", "sap/fe/co
7203
7205
  /**
7204
7206
  * Callback of the ghost client when receiving a message on the web socket.
7205
7207
  *
7206
- * @param oMessage The message
7208
+ * @param message The message
7207
7209
  */
7208
- _onMessageReceived: function (oMessage) {
7209
- oMessage.userAction = oMessage.userAction || oMessage.clientAction;
7210
- this._lastReceivedMessage = oMessage;
7211
- if (oMessage.userAction === Activity.Join) {
7210
+ _onMessageReceived: function (message) {
7211
+ message.userAction = message.userAction || message.clientAction;
7212
+ this._lastReceivedMessages.push(message);
7213
+ if (message.userAction === Activity.Join) {
7212
7214
  broadcastCollaborationMessage(Activity.JoinEcho, this._lockedPropertyPath ? `${this._rootPath}/${this._lockedPropertyPath}` : undefined, this._internalModel);
7213
7215
  }
7214
7216
  }
@@ -18130,12 +18132,12 @@ sap.ui.predefine("sap/fe/test/library", ["sap/ui/core/Core", "sap/ui/core/librar
18130
18132
  controls: [],
18131
18133
  elements: [],
18132
18134
  // eslint-disable-next-line no-template-curly-in-string
18133
- version: "1.114.0",
18135
+ version: "1.114.2",
18134
18136
  noLibraryCSS: true
18135
18137
  });
18136
18138
  return thisLib;
18137
18139
  }, false);
18138
18140
  sap.ui.require.preload({
18139
- "sap/fe/test/manifest.json":'{"_version":"1.21.0","sap.app":{"id":"sap.fe.test","type":"library","embeds":[],"applicationVersion":{"version":"1.114.0"},"title":"UI5 library: sap.fe.test","description":"UI5 library: sap.fe.test","resources":"resources.json","offline":true},"sap.ui":{"technology":"UI5","supportedThemes":[]},"sap.ui5":{"dependencies":{"libs":{"sap.ui.core":{}}},"library":{"i18n":false,"content":{"controls":[],"elements":[],"types":[],"interfaces":[]}}}}'
18141
+ "sap/fe/test/manifest.json":'{"_version":"1.21.0","sap.app":{"id":"sap.fe.test","type":"library","embeds":[],"applicationVersion":{"version":"1.114.2"},"title":"UI5 library: sap.fe.test","description":"UI5 library: sap.fe.test","resources":"resources.json","offline":true},"sap.ui":{"technology":"UI5","supportedThemes":[]},"sap.ui5":{"dependencies":{"libs":{"sap.ui.core":{}}},"library":{"i18n":false,"content":{"controls":[],"elements":[],"types":[],"interfaces":[]}}}}'
18140
18142
  });
18141
18143
  //# sourceMappingURL=library-preload.js.map