From 965e129717da78c4ac56531200631836b74758f4 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Mon, 26 Oct 2009 05:13:21 +0000 Subject: Added test cases to make check build target. Changed store-script to interop with java store sample. Added reference support to http module. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@829700 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/sca/test/store-script/htdocs/store.html | 6 +++--- cpp/sca/test/store-script/htdocs/store.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'cpp/sca/test/store-script/htdocs') diff --git a/cpp/sca/test/store-script/htdocs/store.html b/cpp/sca/test/store-script/htdocs/store.html index 4a2c65d07c..98d6ec8e8e 100644 --- a/cpp/sca/test/store-script/htdocs/store.html +++ b/cpp/sca/test/store-script/htdocs/store.html @@ -28,7 +28,7 @@ var catalog = new tuscany.sca.Reference("catalog"); //@Reference - //var shoppingCart = new tuscany.sca.Reference("shoppingCart"); + var shoppingCart = new tuscany.sca.Reference("shoppingCart"); //@Reference var shoppingTotal = new tuscany.sca.Reference("shoppingTotal"); @@ -86,7 +86,7 @@ } function shoppingCart_postResponse(entry) { - //shoppingCart.get("", shoppingCart_getResponse); + shoppingCart.get("", shoppingCart_getResponse); } function addToCart() { @@ -127,7 +127,7 @@ try { catalog.get(catalog_getResponse); - //shoppingCart.get("", shoppingCart_getResponse); + shoppingCart.get("", shoppingCart_getResponse); } catch(e){ alert(e); diff --git a/cpp/sca/test/store-script/htdocs/store.js b/cpp/sca/test/store-script/htdocs/store.js index 526d36790a..64749ce6c1 100644 --- a/cpp/sca/test/store-script/htdocs/store.js +++ b/cpp/sca/test/store-script/htdocs/store.js @@ -651,7 +651,7 @@ tuscany.sca.Property = function (name) { tuscany.sca.referenceMap = new Object(); tuscany.sca.referenceMap.catalog = new JSONRpcClient("/Catalog").Service; -//tuscany.sca.referenceMap.shoppingCart = new AtomClient("/ShoppingCart/Cart"); +tuscany.sca.referenceMap.shoppingCart = new AtomClient("/ShoppingCart/Cart"); tuscany.sca.referenceMap.shoppingTotal = new JSONRpcClient("/ShoppingCart/Total").Service; tuscany.sca.Reference = function (name) { return tuscany.sca.referenceMap[name]; -- cgit v1.2.3