<!DOCTYPE html>
<html>
<head>
</head>
<body>
<dl style="line-height: 1.5; margin-left: 2em">
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Author</dt>
<dd style="margin-left: 8.5em">YUKI Hiroshi <shimo****@clear*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2012-08-24 15:43:10 +0900 (Fri, 24 Aug 2012)</dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">New Revision</dt>
<dd style="margin-left: 8.5em"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac">e031eaa4164ea8953f8767a803787e175864f0ac</a></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Log</dt>
<dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; padding: 0.5em">Remove needless setup</pre></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Modified files</dt>
<dd style="margin-left: 8.5em">
<ul>
<li><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#diff-0">test/api-search.test.js</a></li>
</ul>
</dd>
</dl>
<div class="diff-section" style="clear: both">
<table style="border-collapse: collapse; border: 1px solid #aaa">
<thead>
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: test/api-search.test.js (+3 -5)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody>
<tr>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L127">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L128">128</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L129">129</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L130">130</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L131">131</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L132">132</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L133">133</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L134">134</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L142">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L143">143</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L144">144</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L145">145</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L146">146</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L147">147</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L148">148</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L149">149</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L164">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L165">165</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L166">166</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L167">167</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L168">168</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L169">169</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L170">170</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L171">171</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L172">172</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0L173">173</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0R127">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0R128">128</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0R129">129</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0R130">130</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0R131">131</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0R132">132</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0R133">133</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0R134">134</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0R135">135</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0R143">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0R144">144</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0R145">145</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0R146">146</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0R147">147</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0R148">148</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0R149">149</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0R150">150</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0R165">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0R166">166</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0R167">167</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0R168">168</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0R169">169</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0R170">170</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/e031eaa4164ea8953f8767a803787e175864f0ac#L0R171">171</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -128,7 +128,8 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">suite('Search API', function() {</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> testSearch('/2011-02-01/search?q=Hongo&' +</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> 'return-fields=address,description,name,age,product,unknown',</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- 'should return field values siecified by return-fields',</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ 'should return field values of result returnable fields ' +</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ 'in the list of return-fields',</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> 'search-companies-00000000000000000000000000.localhost',</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> function() {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> domain.getIndexField('address').setResultEnabled(false).saveOptionsSync();</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -143,7 +144,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">suite('Search API', function() {</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> hit: [{</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> id: 'id3',</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> data: {</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- address: [], // "unreturnable" field should be empty!</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ address: [], // "unreturnable" field should be returned as an empty array!</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> description: [''],</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> name: ['ClearCode Inc.'],</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> age: [3],</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -165,9 +166,6 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">suite('Search API', function() {</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> 'return-fields=unknown1,unknown2',</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> 'should return blank "data" by return-fields with unexisting fields',</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> 'search-companies-00000000000000000000000000.localhost',</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- function() {</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- domain.getIndexField('address').setReturnEnabled(false).saveOptionsSync();</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- },</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> function(response) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> var expected = { // FIXME</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> rank: '-text_relevance',</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>