From a7e5a4216489dda5466eb4b0b83911e36a8f5520 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Mon, 21 Mar 2011 07:41:52 +0000 Subject: Fix Javascript test case. Enable Javascript error reporting on non-debug build. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1083693 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/modules/js/json-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sca-cpp/trunk/modules/js/json-test.js') diff --git a/sca-cpp/trunk/modules/js/json-test.js b/sca-cpp/trunk/modules/js/json-test.js index 5cc93a86eb..fb53fa6347 100644 --- a/sca-cpp/trunk/modules/js/json-test.js +++ b/sca-cpp/trunk/modules/js/json-test.js @@ -35,7 +35,7 @@ function testJSON() { var r = json.readJSON(s2); var w = json.writeJSON(r); - assert(car(w) == "{\"@firstName\": \"test1\", \"lastName\": \"test\\ttab\", \"phones\": [\"408-1234\", \"650-1234\"]}"); + assert(car(w) == "{\"phones\": [\"408-1234\", \"650-1234\"], \"lastName\": \"test\\ttab\", \"@firstName\": \"test1\"}"); var l4 = mklist(mklist("'ns1:echoString", mklist("'@xmlns:ns1", "http://ws.apache.org/axis2/services/echo"), mklist("'text", "Hello World!"))); var s4 = json.writeJSON(valuesToElements(l4)); @@ -43,7 +43,7 @@ function testJSON() { var r5 = elementsToValues(json.readJSON(s4)); var s5 = json.writeJSON(valuesToElements(r5)); - assert(car(s5) == "{\"ns1:echoString\": {\"text\": \"Hello World!\", \"@xmlns:ns1\": \"http://ws.apache.org/axis2/services/echo\"}}"); + assert(car(s5) == "{\"ns1:echoString\": {\"@xmlns:ns1\": \"http://ws.apache.org/axis2/services/echo\", \"text\": \"Hello World!\"}}"); return true; } -- cgit v1.2.3