Add test for registry handling

Bug #1523578 reported by Alexandre Abreu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-js-scopes
New
Undecided
Unassigned

Bug Description

Description
-----------

The unity js scopes package have a minimal set of tests associated with a few of the features exposed in the JS scopes api. Those tests need to be expanded.

This bug aims at adding a new test for the Scopes Registry feature.

Technical context
-----------------

Scopes are a fundamental piece of the UbuntuTouch user experience. Each scope offers user driven way to interact with one of more sources of either local or remote data displayed in a uniform fashion from the Ubuntu Dash.

https://developer.ubuntu.com/en/scopes/guides/scopes-guide/

The Unity Scopes API allows developers to create scopes in C++.

https://developer.ubuntu.com/api/devel/ubuntu-14.10/cplusplus/unity-scopes/index.html

Unity JS scopes is a package that enables the creation of Javascript Scopes by offering bindings of the Unity Scopes API in Javascript.

In order to get started with the unity-js-scopes package, you can have a look at the README file found at the top of the package's sources:

http://bazaar.launchpad.net/~webapps/unity-js-scopes/trunk/view/head:/README.md

In the context of the API, the Registry is a way for the scope developer to have access to various meta information about the scope itself and its execution environment.

https://developer.ubuntu.com/api/devel/ubuntu-14.10/cplusplus/unity-scopes/classunity_1_1scopes_1_1_registry.html

Examples of registry usage can be found in one of the sample scope provided by the unity-js-scopes package:

http://bazaar.launchpad.net/~webapps/unity-js-scopes/trunk/view/head:/examples/simple/simple.js#L38

Existing tests for some parts of the scopes API can be found here:

http://bazaar.launchpad.net/~webapps/unity-js-scopes/trunk/files/head:/tests/owm_scope/

The tests can be run with:

make test

Each tests contains a server part that feeds the desired data to the scope and the js scope itself

Deliverable
-----------

Add a test for that goes through the same functionalities found in the simple.js scope above and validates that no issues occur.

Tags: googlecodein
tags: added: googlecodein
description: updated
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.