[Groonga-commit] groonga/gcs [master] indexFieldName => indexField.indexFieldName

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Nov 15 17:15:58 JST 2012


YUKI Hiroshi	2012-11-15 17:15:58 +0900 (Thu, 15 Nov 2012)

  New Revision: b5d4339f9bc6459aab5da91d8ada81d88413e2aa
  https://github.com/groonga/gcs/commit/b5d4339f9bc6459aab5da91d8ada81d88413e2aa

  Log:
    indexFieldName => indexField.indexFieldName

  Modified files:
    lib/database/index-field.js
    test/database-index-field.test.js

  Modified: lib/database/index-field.js (+1 -1)
===================================================================
--- lib/database/index-field.js    2012-11-15 17:11:43 +0900 (53dfa1b)
+++ lib/database/index-field.js    2012-11-15 17:15:58 +0900 (c6a19c6)
@@ -34,7 +34,7 @@ function assertValidFieldName(field) {
   }
 
   var errors = [];
-  var commonPrefix = 'Value \'' + field + '\' at \'indexFieldName\' failed ' +
+  var commonPrefix = 'Value \'' + field + '\' at \'indexField.indexFieldName\' failed ' +
                      'to satisfy constraint: ';
 
   if (!field.match(VALID_NAME_MATCHER)) {

  Modified: test/database-index-field.test.js (+6 -6)
===================================================================
--- test/database-index-field.test.js    2012-11-15 17:11:43 +0900 (2ae25b0)
+++ test/database-index-field.test.js    2012-11-15 17:15:58 +0900 (19ea368)
@@ -45,10 +45,10 @@ suite('database', function() {
       assert.throw(function() {
         var field = new IndexField('v', domain);
       }, '2 validation errors detected: ' +
-           'Value \'v\' at \'indexFieldName\' failed to satisfy constraint: ' +
+           'Value \'v\' at \'indexField.indexFieldName\' failed to satisfy constraint: ' +
              'Member must satisfy regular expression pattern: ' +
                IndexField.VALID_NAME_PATTERN + '; ' +
-           'Value \'v\' at \'indexFieldName\' failed to satisfy constraint: ' +
+           'Value \'v\' at \'indexField.indexFieldName\' failed to satisfy constraint: ' +
              'Member must have length greater than or equal to ' +
                IndexField.MINIMUM_NAME_LENGTH);
     });
@@ -57,7 +57,7 @@ suite('database', function() {
       assert.throw(function() {
         var field = new IndexField('va', domain);
       }, '1 validation error detected: ' +
-           'Value \'va\' at \'indexFieldName\' failed to satisfy constraint: ' +
+           'Value \'va\' at \'indexField.indexFieldName\' failed to satisfy constraint: ' +
              'Member must have length greater than or equal to ' +
                IndexField.MINIMUM_NAME_LENGTH);
     });
@@ -67,7 +67,7 @@ suite('database', function() {
       assert.throw(function() {
         var field = new IndexField(name, domain);
       }, '1 validation error detected: ' +
-           'Value \'' + name + '\' at \'indexFieldName\' failed to satisfy constraint: ' +
+           'Value \'' + name + '\' at \'indexField.indexFieldName\' failed to satisfy constraint: ' +
              'Member must have length less than or equal to ' +
                IndexField.MAXIMUM_NAME_LENGTH);
     });
@@ -76,7 +76,7 @@ suite('database', function() {
       assert.throw(function() {
         var field = new IndexField('field-name', domain);
       }, '1 validation error detected: ' +
-           'Value \'field-name\' at \'indexFieldName\' failed to satisfy constraint: ' +
+           'Value \'field-name\' at \'indexField.indexFieldName\' failed to satisfy constraint: ' +
              'Member cannot include these characters: \'-\'');
     });
 
@@ -89,7 +89,7 @@ suite('database', function() {
       assert.throw(function() {
         var field = new IndexField('FieldName');
       }, '1 validation error detected: ' +
-           'Value \'FieldName\' at \'indexFieldName\' failed to satisfy constraint: ' +
+           'Value \'FieldName\' at \'indexField.indexFieldName\' failed to satisfy constraint: ' +
              'Member must satisfy regular expression pattern: ' +
                IndexField.VALID_NAME_PATTERN);
     });
-------------- next part --------------
HTML����������������������������...
Download 



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