From 0176cfbf03d24a923714655eb41869b67833cc1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Arranz?= Date: Fri, 10 Mar 2017 12:03:41 +0100 Subject: [PATCH] Small improvements into the source code --- src/js_tests/styledelements/ObjectWithEventsSpec.js | 8 ++++---- .../static/js/wirecloud/Tutorials/BasicConcepts.js | 4 ++-- src/wirecloud/platform/static/js/wirecloud/Workspace.js | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/js_tests/styledelements/ObjectWithEventsSpec.js b/src/js_tests/styledelements/ObjectWithEventsSpec.js index 8b99f635f1..aa913a29cb 100644 --- a/src/js_tests/styledelements/ObjectWithEventsSpec.js +++ b/src/js_tests/styledelements/ObjectWithEventsSpec.js @@ -66,7 +66,7 @@ }); }); - describe("dispatchEvent(eventType [, ...args])", function () { + describe("dispatchEvent(eventType[, ...args])", function () { it("should throw error if the eventType does not exist", function () { var eventTarget = new StyledElements.ObjectWithEvents(['click']); @@ -76,7 +76,7 @@ }).toThrow(jasmine.any(Error)); }); - it("should add an eventListener while the event is dispatching", function () { + it("should allow adding an event listeners while the event is dispatching", function () { var eventTarget = new StyledElements.ObjectWithEvents(['click']); var eventListener1 = function (element) { eventTarget.addEventListener('click', eventListener2); @@ -89,7 +89,7 @@ expect(eventListener2).toHaveBeenCalledWith(eventTarget); }); - it("should remove an eventListener while the event is dispatching", function () { + it("should allow removing event listeners while the event is dispatching", function () { var eventTarget = new StyledElements.ObjectWithEvents(['click']); var eventListener1 = function (element) { eventTarget.removeEventListener('click', eventListener2); @@ -107,7 +107,7 @@ expect(eventListener3).toHaveBeenCalledWith(eventTarget); }); - it("should call all eventListener list despite an eventListener throws error", function () { + it("should call all eventListener list despite whether an event listener thrown an error", function () { var eventTarget = new StyledElements.ObjectWithEvents(['click']); var eventListener1 = function (element) { throw Error(); diff --git a/src/wirecloud/platform/static/js/wirecloud/Tutorials/BasicConcepts.js b/src/wirecloud/platform/static/js/wirecloud/Tutorials/BasicConcepts.js index 6db9a18ed1..b6f62342ea 100644 --- a/src/wirecloud/platform/static/js/wirecloud/Tutorials/BasicConcepts.js +++ b/src/wirecloud/platform/static/js/wirecloud/Tutorials/BasicConcepts.js @@ -70,7 +70,7 @@ {type: 'autoAction', action: BA.create_workspace({name: 'Basic concepts tutorial'})}, {type: 'simpleDescription', title: utils.gettext('WireCloud Basic Tutorial'), msg: utils.gettext('

This is the Editor view. In this view, you can use and modify your workspaces. Currently you are in a newly created workspace: Basic concepts tutorial. This workspace is empty, so the first step is to add some widgets.

In next steps we need some widgets, so we are going to install them for you. You can safetly uninstall these widgets after finishing the tutorial.

')}, - // Marketplace + // My Resources {'type': 'autoAction', 'action': BA.uploadComponent('CoNWeT/input-box/1.0')}, {'type': 'autoAction', 'action': BA.uploadComponent('CoNWeT/youtube-browser/3.0')}, {'type': 'simpleDescription', 'title': utils.gettext('WireCloud Basic Tutorial'), 'msg': utils.gettext("

Ok, widgets have been installed successfuly.

Next step is to add the YouTube Browser widget to the workspace.

")}, @@ -110,7 +110,7 @@ {'type': 'userAction', 'msg': utils.gettext("Click Wiring to continue"), 'elem': BS.toolbar_button('wc-show-wiring-button'), 'pos': 'downLeft'}, - // WiringEditor + // Wiring editor {'type': 'simpleDescription', 'title': utils.gettext('WireCloud Basic Tutorial'), 'msg': utils.gettext("

This is the Wiring Editor view.

Here you can wire widgets and operators together turning your workspace into and application mashup.

")}, {'type': 'userAction', 'msg': utils.gettext("Click Find components to open the sidebar"), 'elem': BS.toolbar_button('we-show-component-sidebar-button'), 'pos': 'downLeft'}, {'type': 'autoAction', 'elem': BS.toolbar_button('we-show-component-sidebar-button'), 'action': BA.sleep(250)}, diff --git a/src/wirecloud/platform/static/js/wirecloud/Workspace.js b/src/wirecloud/platform/static/js/wirecloud/Workspace.js index 0673270756..8dbc411f8d 100644 --- a/src/wirecloud/platform/static/js/wirecloud/Workspace.js +++ b/src/wirecloud/platform/static/js/wirecloud/Workspace.js @@ -390,7 +390,7 @@ }, /** - * Creates a packaged version of this workspace and uploads it into MyTab + * Creates a packaged version of this workspace and uploads it into My * Resources. * * @param {Object} options