[Groonga-commit] groonga/gcs [master] Sort response contents correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Nov 15 10:49:06 JST 2012


YUKI Hiroshi	2012-11-15 10:49:06 +0900 (Thu, 15 Nov 2012)

  New Revision: 9f58d99af98f0cfd142e589a63a1439bc0b2cb3d
  https://github.com/groonga/gcs/commit/9f58d99af98f0cfd142e589a63a1439bc0b2cb3d

  Log:
    Sort response contents correctly

  Modified files:
    tools/scenario-runner.js

  Modified: tools/scenario-runner.js (+2 -2)
===================================================================
--- tools/scenario-runner.js    2012-11-15 10:46:27 +0900 (0295512)
+++ tools/scenario-runner.js    2012-11-15 10:49:06 +0900 (cfab4f8)
@@ -193,7 +193,7 @@ Response.prototype = {
   get sortedBody() {
     if (!this._sortedBody) {
       if (this.body && typeof this.body == 'object')
-        this._sortedBody = this._toSortedJSON(this.body, false);
+        this._sortedBody = this._toSortedJSON(this.body, true);
       else
         this._sortedBody = this.body;
     }
@@ -206,7 +206,7 @@ Response.prototype = {
       case 'object':
         var format = {};
         var keys = Object.keys(fragment);
-        if (!doSort) keys.sort();
+        if (doSort) keys.sort();
         keys.forEach(function(key) {
           if (!fragment.hasOwnProperty(key))
             return;
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-commit mailing list
Back to archive index