@openui5/sap.ui.testrecorder 1.106.0 → 1.107.0
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.testrecorder",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.107.0",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.ui.testrecorder",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.m": "1.
|
|
18
|
-
"@openui5/sap.ui.codeeditor": "1.
|
|
19
|
-
"@openui5/sap.ui.core": "1.
|
|
20
|
-
"@openui5/sap.ui.layout": "1.
|
|
21
|
-
"@openui5/sap.ui.support": "1.
|
|
17
|
+
"@openui5/sap.m": "1.107.0",
|
|
18
|
+
"@openui5/sap.ui.codeeditor": "1.107.0",
|
|
19
|
+
"@openui5/sap.ui.core": "1.107.0",
|
|
20
|
+
"@openui5/sap.ui.layout": "1.107.0",
|
|
21
|
+
"@openui5/sap.ui.support": "1.107.0"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.
|
|
9
|
+
<version>1.107.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>UI5 library: sap.ui.testrecorder</documentation>
|
|
12
12
|
|
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"sap/base/Log",
|
|
8
8
|
"sap/ui/base/ManagedObject",
|
|
9
|
-
"sap/ui/testrecorder/CommunicationBus"
|
|
10
|
-
|
|
9
|
+
"sap/ui/testrecorder/CommunicationBus",
|
|
10
|
+
"sap/ui/core/Configuration"
|
|
11
|
+
], function (Log, ManagedObject, CommunicationBus, Configuration) {
|
|
11
12
|
"use strict";
|
|
12
13
|
|
|
13
14
|
var oUIContextInjector = null;
|
|
@@ -32,7 +33,7 @@ sap.ui.define([
|
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
this._hasStarted = true;
|
|
35
|
-
this._testRecorderConfig = aTestRecorderConfig ||
|
|
36
|
+
this._testRecorderConfig = aTestRecorderConfig || Configuration.getTestRecorderMode();
|
|
36
37
|
|
|
37
38
|
// eslint-disable-next-line no-unsafe-negation
|
|
38
39
|
if (this._testRecorderConfig && !this._testRecorderConfig.indexOf("silent") > -1 && !this._isInIframe()) {
|
|
@@ -49,13 +49,6 @@ sap.ui.define([
|
|
|
49
49
|
this._openWindow();
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
// beforeunload will only work if the page was loaded and received; it is not guarateed to fire
|
|
53
|
-
window.communicationWindows.testRecorder.addEventListener("beforeunload", function () {
|
|
54
|
-
if (!this._dockStarted && !this._closeTriggered) {
|
|
55
|
-
this.close();
|
|
56
|
-
}
|
|
57
|
-
}.bind(this));
|
|
58
|
-
|
|
59
52
|
CommunicationBus.subscribe(CommunicationChannels.MINIMIZE_IFRAME, this.minimizeFrame.bind(this));
|
|
60
53
|
CommunicationBus.subscribe(CommunicationChannels.SHOW_IFRAME, this.unminimizeFrame.bind(this));
|
|
61
54
|
CommunicationBus.subscribe(CommunicationChannels.CLOSE_IFRAME, this.close.bind(this));
|
|
@@ -138,6 +131,24 @@ sap.ui.define([
|
|
|
138
131
|
this._isInIframe = false;
|
|
139
132
|
this._dockStarted = false;
|
|
140
133
|
this._closeTriggered = false;
|
|
134
|
+
|
|
135
|
+
setTimeout(function () {
|
|
136
|
+
var fnBeforeUnloadListener = function () {
|
|
137
|
+
window.communicationWindows.testRecorder.removeEventListener("beforeunload", fnBeforeUnloadListener);
|
|
138
|
+
if (!this._dockStarted && !this._closeTriggered) {
|
|
139
|
+
this.close();
|
|
140
|
+
}
|
|
141
|
+
}.bind(this);
|
|
142
|
+
|
|
143
|
+
// beforeunload will only work if the page was loaded and received; it is not guarateed to fire
|
|
144
|
+
if (window.communicationWindows.testRecorder.closed) {
|
|
145
|
+
if (!this._dockStarted && !this._closeTriggered) {
|
|
146
|
+
this.close();
|
|
147
|
+
}
|
|
148
|
+
} else {
|
|
149
|
+
window.communicationWindows.testRecorder.addEventListener("beforeunload", fnBeforeUnloadListener);
|
|
150
|
+
}
|
|
151
|
+
}.bind(this), 1000);
|
|
141
152
|
};
|
|
142
153
|
|
|
143
154
|
UIContextInjector.prototype._openFrame = function () {
|
|
@@ -268,6 +279,11 @@ sap.ui.define([
|
|
|
268
279
|
var frameURI = new URI(this._sUrl);
|
|
269
280
|
this._sOrigin = ( frameURI.protocol() || window.location.protocol.replace(':', '') ) +
|
|
270
281
|
'://' + ( frameURI.host() || window.location.host );
|
|
282
|
+
|
|
283
|
+
if (frameURI.origin() === "") {
|
|
284
|
+
frameURI.origin(this._sOrigin);
|
|
285
|
+
this._sUrl = frameURI.toString();
|
|
286
|
+
}
|
|
271
287
|
};
|
|
272
288
|
|
|
273
289
|
UIContextInjector.prototype._createResizeHandle = function (mOptions) {
|
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
* @namespace
|
|
25
25
|
* @alias sap.ui.testrecorder
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.107.0
|
|
28
28
|
* @since 1.74
|
|
29
29
|
* @public
|
|
30
30
|
*/
|
|
@@ -38,7 +38,7 @@ sap.ui.define([
|
|
|
38
38
|
controls: [],
|
|
39
39
|
elements: [],
|
|
40
40
|
noLibraryCSS: true,
|
|
41
|
-
version: "1.
|
|
41
|
+
version: "1.107.0",
|
|
42
42
|
extensions: {
|
|
43
43
|
//Configuration used for rule loading of Support Assistant
|
|
44
44
|
"sap.ui.support": {
|