<!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 &lt;shimo****@clear*****&gt;</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
      <dd style="margin-left: 8.5em">2012-08-23 14:56:46 +0900 (Thu, 23 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/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c">a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c</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, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; padding: 0.5em">Add tests for getDocumentsEndpoint/getSearchEndpoint about hostnames without port number</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/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#diff-0">test/database-domain.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, &quot;Liberation Mono&quot;, 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/database-domain.test.js (+17 -3)</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, &quot;Liberation Mono&quot;, 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/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0L199">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0L200">200</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0L201">201</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0L202">202</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/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0L203">203</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0L204">204</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0L205">205</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0L206">206</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0L207">207</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/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0L208">208</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0L209">209</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0L210">210</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0L211">211</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0L212">212</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/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0L213">213</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0L214">214</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0L215">215</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0L216">216</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0L217">217</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0L218">218</a></span>
</pre>
            </th>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, 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/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R199">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R200">200</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R201">201</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R202">202</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</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/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R203">203</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R204">204</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R205">205</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R206">206</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R207">207</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</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/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R208">208</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/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R209">209</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/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R210">210</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/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R211">211</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/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R212">212</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/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R213">213</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R214">214</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R215">215</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R216">216</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R217">217</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</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/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R218">218</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/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R219">219</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/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R220">220</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/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R221">221</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/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R222">222</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/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R223">223</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R224">224</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R225">225</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/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R226">226</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/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R227">227</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/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R228">228</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/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R229">229</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R230">230</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R231">231</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/gcs/commit/a01a9ffc6a49b1c2fe7f6a73217094f9fcfd8b6c#L0R232">232</a></span>
</pre>
            </th>
            <td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, 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">@@ -200,19 +200,33 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">suite('database', function() {</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">         domain = new Domain('valid').setId(Domain.DEFAULT_ID);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       });</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-      test('regular domain', function() {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+      test('regular domain, with port', function() {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         assert.equal(domain.getDocumentsEndpoint('my.domain:0123'),</span>
<span class="diff-not-changed" style="display: block; white-space: pre">                      'doc-valid-' + Domain.DEFAULT_ID + '.my.domain:0123');</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       });</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-      test('IP address', function() {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+      test('regular domain, without port', function() {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        assert.equal(domain.getDocumentsEndpoint('my.domain'),</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+                     'doc-valid-' + Domain.DEFAULT_ID + '.my.domain');</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+      });</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+      test('IP address, with port', function() {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         assert.equal(domain.getDocumentsEndpoint('192.168.0.1:4567'),</span>
<span class="diff-not-changed" style="display: block; white-space: pre">                      'doc-valid-' + Domain.DEFAULT_ID + '.192.168.0.1.xip.io:4567');</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       });</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-      test('localhost', function() {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+      test('IP address, without port', function() {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        assert.equal(domain.getDocumentsEndpoint('192.168.0.1'),</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+                     'doc-valid-' + Domain.DEFAULT_ID + '.192.168.0.1.xip.io');</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+      });</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+      test('localhost, with port', function() {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         assert.equal(domain.getDocumentsEndpoint('localhost:4567'),</span>
<span class="diff-not-changed" style="display: block; white-space: pre">                      'doc-valid-' + Domain.DEFAULT_ID + '.127.0.0.1.xip.io:4567');</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+      test('localhost, without port', function() {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        assert.equal(domain.getDocumentsEndpoint('localhost'),</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+                     'doc-valid-' + Domain.DEFAULT_ID + '.127.0.0.1.xip.io');</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       });</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     });</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>