tizen: add stubs for Application API
authorCaio Marcelo de Oliveira Filho <caio.de.oliveira.filho@intel.com>
Wed, 7 Aug 2013 20:56:32 +0000 (17:56 -0300)
committerCaio Marcelo de Oliveira Filho <caio.de.oliveira.filho@intel.com>
Wed, 7 Aug 2013 22:40:06 +0000 (19:40 -0300)
Those stubs are enough for running certain test cases from TCT of other APIs.

tizen/tizen_api.js

index 623da47..1d9ab22 100644 (file)
@@ -92,3 +92,22 @@ exports.WebAPIError = function (code, message, name) {
   this.__defineGetter__("message", function () { return _message; });
   this.__defineGetter__("name", function () { return _name; });
 }
+
+// NOTE: Stubs for Application. These are needed for running TCT until
+// we have a proper Application API implementation.
+exports.application = {
+  getAppInfo: function() { return { id: 0 } },
+}
+
+exports.ApplicationControlData = function(key, value) {
+  this.key = key;
+  this.value = value;
+}
+
+exports.ApplicationControl = function(operation, uri, mime, category, data) {
+  this.operation = operation;
+  this.uri = uri;
+  this.mime = mime;
+  this.category = category;
+  this.data = data || [];
+}