aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/eclipse-run-selected-test.properties
blob: 70010fd1da543d7b0080fa51f95b97361cc134b5 (plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
;
; This is an example property file showing how to control how TestBench is used
; in the Vaadin Framework project. You should not modify this file since it's
; under version control. Instead, create a copy of it inside the /work/ folder
; in the project and make your customizations to that file.
;

;
; For both TestBench 2 and 3
;

; Location of the screenshot directory. 
; This is the directory that contains the "references" directory
com.vaadin.testbench.screenshot.directory=<enter the full path to the screenshots directory, parent of "references" directory>


;
; For only TestBench 3
;

; Simulates @RunLocally with the given value on all test classes without a @RunLocally annotation.
; com.vaadin.testbench.runLocally=firefox


;
; For only TestBench 2
;

; Location where TestBench 2 jar can be found
com.vaadin.testbench.lib.dir=<enter location of testbench here>

; Deployment url to use for testing. Context path must be /  
com.vaadin.testbench.deployment.url=http://<enter your ip here>:8888/

; Run the whole test even if a screenshot comparison fails
com.vaadin.testbench.screenshot.softfail=true

; Screen capture at the end if the test fails
com.vaadin.testbench.screenshot.onfail=true

; Enable cursor detection
com.vaadin.testbench.screenshot.cursor=true

; Run the test case that is focused in Eclipse. Must be set in Eclipse launch configuration and not here. 
; testfiles=${resource_loc}

; Uncomment to limit to certain browsers or override in launch configuration
; browsers=winxp-opera10

; Claim that the server has started succesfully. Needed for TB2 tests to be executed
server.start.succeeded=1

; Directory where temporary Java classes are created
test-output-dir=../build/test-output
e='backport/46124/stable30'>backport/46124/stable30 Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/sharedialogresharerinfoview.js
blob: 8970d857fc39ddd09745fd7be377a8c4e330bae2 (plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
/*
 * Copyright (c) 2015
 *
 * This file is licensed under the Affero General Public License version 3
 * or later.
 *
 * See the COPYING-README file.
 *
 */

(function() {
	if (!OC.Share) {
		OC.Share = {};
	}

	var TEMPLATE =
		'<span class="reshare">' +
		'    {{#if avatarEnabled}}' +
		'    <div class="avatar"></div>' +
		'    {{/if}}' +
		'    {{sharedByText}}' +
		'</span><br/>'
		;

	/**
	 * @class OCA.Share.ShareDialogView
	 * @member {OC.Share.ShareItemModel} model
	 * @member {jQuery} $el
	 * @memberof OCA.Sharing
	 * @classdesc
	 *
	 * Represents the GUI of the share dialogue
	 *
	 */
	var ShareDialogResharerInfoView = OC.Backbone.View.extend({
		/** @type {string} **/
		id: 'shareDialogResharerInfo',

		/** @type {string} **/
		tagName: 'div',

		/** @type {string} **/
		className: 'reshare',

		/** @type {OC.Share.ShareConfigModel} **/
		configModel: undefined,

		/** @type {Function} **/
		_template: undefined,

		initialize: function(options) {
			var view = this;

			this.model.on('change:reshare', function() {
				view.render();
			});

			if(!_.isUndefined(options.configModel)) {
				this.configModel = options.configModel;
			} else {
				console.warn('missing OC.Share.ShareConfigModel');
			}
		},

		render: function() {
			if (   !this.model.hasReshare()
				|| !this.model.getReshareOwner() !== OC.currentUser)
			{
				this.$el.empty();
				return this;
			}

			var reshareTemplate = this.template();
			var ownerDisplayName = this.model.getReshareOwnerDisplayname();
			var sharedByText = '';
			if (this.model.getReshareType() === OC.Share.SHARE_TYPE_GROUP) {
				sharedByText = t(
					'core',
					'Shared with you and the group {group} by {owner}',
					{
						group: this.model.getReshareWith(),
						owner: ownerDisplayName
					}
				);
			}  else {
				sharedByText = t(
					'core',
					'Shared with you by {owner}',
					{ owner: ownerDisplayName }
				);
			}

			this.$el.empty();
			this.$el.append(reshareTemplate({
				avatarEnabled: this.configModel.areAvatarsEnabled(),
				sharedByText: sharedByText
			}));

			return this;
		},

		/**
		 * @returns {Function} from Handlebars
		 * @private
		 */
		template: function () {
			if (!this._template) {
				this._template = Handlebars.compile(TEMPLATE);
			}
			return this._template;
		}

	});

	OC.Share.ShareDialogResharerInfoView = ShareDialogResharerInfoView;

})();