<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[231169] trunk/Websites/perf.webkit.org</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/231169">231169</a></dd>
<dt>Author</dt> <dd>dewei_zhu@apple.com</dd>
<dt>Date</dt> <dd>2018-04-30 14:06:05 -0700 (Mon, 30 Apr 2018)</dd>
</dl>

<h3>Log Message</h3>
<pre>MeasurementSet._constructUrl should construct absolute url.
https://bugs.webkit.org/show_bug.cgi?id=185137

Reviewed by Ryosuke Niwa.

MeasurementSet._constructUrl should not construct an url with relative path.

* public/v3/models/measurement-set.js: Should use '/api/measurement-set...' and '/data/measurement-set-...'
for uncached and cached fetching.
* unit-tests/measurement-set-tests.js: Updated unit tests.
(const.set MeasurementSet):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkWebsitesperfwebkitorgChangeLog">trunk/Websites/perf.webkit.org/ChangeLog</a></li>
<li><a href="#trunkWebsitesperfwebkitorgpublicv3modelsmeasurementsetjs">trunk/Websites/perf.webkit.org/public/v3/models/measurement-set.js</a></li>
<li><a href="#trunkWebsitesperfwebkitorgunittestsmeasurementsettestsjs">trunk/Websites/perf.webkit.org/unit-tests/measurement-set-tests.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkWebsitesperfwebkitorgChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Websites/perf.webkit.org/ChangeLog (231168 => 231169)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/perf.webkit.org/ChangeLog 2018-04-30 20:56:39 UTC (rev 231168)
+++ trunk/Websites/perf.webkit.org/ChangeLog    2018-04-30 21:06:05 UTC (rev 231169)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2018-04-30  Dewei Zhu  <dewei_zhu@apple.com>
+
+        MeasurementSet._constructUrl should construct absolute url.
+        https://bugs.webkit.org/show_bug.cgi?id=185137
+
+        Reviewed by Ryosuke Niwa.
+
+        MeasurementSet._constructUrl should not construct an url with relative path.
+
+        * public/v3/models/measurement-set.js: Should use '/api/measurement-set...' and '/data/measurement-set-...'
+        for uncached and cached fetching.
+        * unit-tests/measurement-set-tests.js: Updated unit tests.
+        (const.set MeasurementSet):
+
</ins><span class="cx"> 2018-04-26  Dewei Zhu  <dewei_zhu@apple.com>
</span><span class="cx"> 
</span><span class="cx">         Extend create-analysis-test API to be able to create with confirming test group.
</span></span></pre></div>
<a id="trunkWebsitesperfwebkitorgpublicv3modelsmeasurementsetjs"></a>
<div class="modfile"><h4>Modified: trunk/Websites/perf.webkit.org/public/v3/models/measurement-set.js (231168 => 231169)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/perf.webkit.org/public/v3/models/measurement-set.js       2018-04-30 20:56:39 UTC (rev 231168)
+++ trunk/Websites/perf.webkit.org/public/v3/models/measurement-set.js  2018-04-30 21:06:05 UTC (rev 231169)
</span><span class="lines">@@ -94,10 +94,10 @@
</span><span class="cx">     _constructUrl(useCache, clusterEndTime)
</span><span class="cx">     {
</span><span class="cx">         if (!useCache) {
</span><del>-            return `../api/measurement-set?platform=${this._platformId}&metric=${this._metricId}`;
</del><ins>+            return `/api/measurement-set?platform=${this._platformId}&metric=${this._metricId}`;
</ins><span class="cx">         }
</span><span class="cx">         var url;
</span><del>-        url = `../data/measurement-set-${this._platformId}-${this._metricId}`;
</del><ins>+        url = `/data/measurement-set-${this._platformId}-${this._metricId}`;
</ins><span class="cx">         if (clusterEndTime)
</span><span class="cx">             url += '-' + +clusterEndTime;
</span><span class="cx">         url += '.json';
</span></span></pre></div>
<a id="trunkWebsitesperfwebkitorgunittestsmeasurementsettestsjs"></a>
<div class="modfile"><h4>Modified: trunk/Websites/perf.webkit.org/unit-tests/measurement-set-tests.js (231168 => 231169)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/perf.webkit.org/unit-tests/measurement-set-tests.js       2018-04-30 20:56:39 UTC (rev 231168)
+++ trunk/Websites/perf.webkit.org/unit-tests/measurement-set-tests.js  2018-04-30 21:06:05 UTC (rev 231169)
</span><span class="lines">@@ -41,7 +41,7 @@
</span><span class="cx">                 callCount++;
</span><span class="cx">             });
</span><span class="cx">             assert.equal(requests.length, 1);
</span><del>-            assert.equal(requests[0].url, '../data/measurement-set-1-1.json');
</del><ins>+            assert.equal(requests[0].url, '/data/measurement-set-1-1.json');
</ins><span class="cx"> 
</span><span class="cx">             requests[0].resolve({
</span><span class="cx">                 'clusterStart': 946684800000,
</span><span class="lines">@@ -67,7 +67,7 @@
</span><span class="cx">             let callCount = 0;
</span><span class="cx">             set.fetchBetween(1000, 2000, () => callCount++);
</span><span class="cx">             assert.equal(requests.length, 1);
</span><del>-            assert.equal(requests[0].url, '../data/measurement-set-1-1.json');
</del><ins>+            assert.equal(requests[0].url, '/data/measurement-set-1-1.json');
</ins><span class="cx">             assert.equal(callCount, 0);
</span><span class="cx">         });
</span><span class="cx"> 
</span><span class="lines">@@ -77,7 +77,7 @@
</span><span class="cx">             set.fetchBetween(1000, 2000, () => callCount++);
</span><span class="cx">             assert.equal(requests.length, 1);
</span><span class="cx">             assert.equal(callCount, 0);
</span><del>-            assert.equal(requests[0].url, '../data/measurement-set-1-1.json');
</del><ins>+            assert.equal(requests[0].url, '/data/measurement-set-1-1.json');
</ins><span class="cx">             set.fetchBetween(2000, 3000, () => callCount++);
</span><span class="cx">             assert.equal(requests.length, 1);
</span><span class="cx">             assert.equal(callCount, 0);
</span><span class="lines">@@ -88,7 +88,7 @@
</span><span class="cx">             let callCount = 0;
</span><span class="cx">             const promise = set.fetchBetween(2000, 3000, () => callCount++);
</span><span class="cx">             assert.equal(requests.length, 1);
</span><del>-            assert.equal(requests[0].url, '../data/measurement-set-1-1.json');
</del><ins>+            assert.equal(requests[0].url, '/data/measurement-set-1-1.json');
</ins><span class="cx"> 
</span><span class="cx">             requests[0].resolve({
</span><span class="cx">                 'clusterStart': 1000,
</span><span class="lines">@@ -112,7 +112,7 @@
</span><span class="cx">             let callCount = 0;
</span><span class="cx">             const promise = set.fetchBetween(1000, 3000, () => callCount++);
</span><span class="cx">             assert.equal(requests.length, 1);
</span><del>-            assert.equal(requests[0].url, '../data/measurement-set-1-1.json');
</del><ins>+            assert.equal(requests[0].url, '/data/measurement-set-1-1.json');
</ins><span class="cx"> 
</span><span class="cx">             requests[0].resolve({
</span><span class="cx">                 'clusterStart': 1000,
</span><span class="lines">@@ -128,7 +128,7 @@
</span><span class="cx">             return waitForMeasurementSet().then(() => {
</span><span class="cx">                 assert.equal(callCount, 1);
</span><span class="cx">                 assert.equal(requests.length, 2);
</span><del>-                assert.equal(requests[1].url, '../data/measurement-set-1-1-2000.json');
</del><ins>+                assert.equal(requests[1].url, '/data/measurement-set-1-1-2000.json');
</ins><span class="cx">             });
</span><span class="cx">         });
</span><span class="cx"> 
</span><span class="lines">@@ -137,7 +137,7 @@
</span><span class="cx">             let callCountForWaitingCallback = 0;
</span><span class="cx">             set.fetchBetween(2000, 3000, () => callCountForWaitingCallback++);
</span><span class="cx">             assert.equal(requests.length, 1);
</span><del>-            assert.equal(requests[0].url, '../data/measurement-set-1-1.json');
</del><ins>+            assert.equal(requests[0].url, '/data/measurement-set-1-1.json');
</ins><span class="cx"> 
</span><span class="cx">             requests[0].resolve({
</span><span class="cx">                 'clusterStart': 1000,
</span><span class="lines">@@ -153,7 +153,7 @@
</span><span class="cx">             let callCount = 0;
</span><span class="cx">             return waitForMeasurementSet().then(() => {
</span><span class="cx">                 assert.equal(requests.length, 2);
</span><del>-                assert.equal(requests[1].url, '../data/measurement-set-1-1-3000.json');
</del><ins>+                assert.equal(requests[1].url, '/data/measurement-set-1-1-3000.json');
</ins><span class="cx"> 
</span><span class="cx">                 set.fetchBetween(0, 7000, () => callCount++);
</span><span class="cx"> 
</span><span class="lines">@@ -162,8 +162,8 @@
</span><span class="cx">                 assert.equal(callCountForWaitingCallback, 0);
</span><span class="cx">                 assert.equal(callCount, 1);
</span><span class="cx">                 assert.equal(requests.length, 4);
</span><del>-                assert.equal(requests[2].url, '../data/measurement-set-1-1-2000.json');
-                assert.equal(requests[3].url, '../data/measurement-set-1-1-4000.json');
</del><ins>+                assert.equal(requests[2].url, '/data/measurement-set-1-1-2000.json');
+                assert.equal(requests[3].url, '/data/measurement-set-1-1-4000.json');
</ins><span class="cx">             });
</span><span class="cx">         });
</span><span class="cx"> 
</span><span class="lines">@@ -172,7 +172,7 @@
</span><span class="cx">             let callCount = 0;
</span><span class="cx">             const promise = set.fetchBetween(2707, 4207, () => callCount++);
</span><span class="cx">             assert.equal(requests.length, 1);
</span><del>-            assert.equal(requests[0].url, '../data/measurement-set-1-1.json');
</del><ins>+            assert.equal(requests[0].url, '/data/measurement-set-1-1.json');
</ins><span class="cx"> 
</span><span class="cx">             requests[0].resolve({
</span><span class="cx">                 'clusterStart': 1000,
</span><span class="lines">@@ -187,8 +187,8 @@
</span><span class="cx"> 
</span><span class="cx">             return waitForMeasurementSet().then(() => {
</span><span class="cx">                 assert.equal(requests.length, 3);
</span><del>-                assert.equal(requests[1].url, '../data/measurement-set-1-1-3000.json');
-                assert.equal(requests[2].url, '../data/measurement-set-1-1-4000.json');
</del><ins>+                assert.equal(requests[1].url, '/data/measurement-set-1-1-3000.json');
+                assert.equal(requests[2].url, '/data/measurement-set-1-1-4000.json');
</ins><span class="cx">                 assert.equal(callCount, 1); // 4000-4207
</span><span class="cx">             });
</span><span class="cx">         });
</span><span class="lines">@@ -198,7 +198,7 @@
</span><span class="cx">             let callCountForWaitingCallback = 0;
</span><span class="cx">             set.fetchBetween(3200, 3700, () => callCountForWaitingCallback++);
</span><span class="cx">             assert.equal(requests.length, 1);
</span><del>-            assert.equal(requests[0].url, '../data/measurement-set-1-1.json');
</del><ins>+            assert.equal(requests[0].url, '/data/measurement-set-1-1.json');
</ins><span class="cx"> 
</span><span class="cx">             requests[0].resolve({
</span><span class="cx">                 'clusterStart': 1000,
</span><span class="lines">@@ -214,7 +214,7 @@
</span><span class="cx">             let callCount = 0;
</span><span class="cx">             return waitForMeasurementSet().then(() => {
</span><span class="cx">                 assert.equal(requests.length, 2);
</span><del>-                assert.equal(requests[1].url, '../data/measurement-set-1-1-4000.json');
</del><ins>+                assert.equal(requests[1].url, '/data/measurement-set-1-1-4000.json');
</ins><span class="cx">                 set.fetchBetween(1207, 1293, () => callCount++);
</span><span class="cx">                 return waitForMeasurementSet();
</span><span class="cx">             }).then(() => {
</span><span class="lines">@@ -221,7 +221,7 @@
</span><span class="cx">                 assert.equal(callCountForWaitingCallback, 0);
</span><span class="cx">                 assert.equal(callCount, 0);
</span><span class="cx">                 assert.equal(requests.length, 3);
</span><del>-                assert.equal(requests[2].url, '../data/measurement-set-1-1-2000.json');
</del><ins>+                assert.equal(requests[2].url, '/data/measurement-set-1-1-2000.json');
</ins><span class="cx">                 set.fetchBetween(1964, 3401, () => callCount++);
</span><span class="cx">                 return waitForMeasurementSet();
</span><span class="cx">             }).then(() => {
</span><span class="lines">@@ -228,7 +228,7 @@
</span><span class="cx">                 assert.equal(callCountForWaitingCallback, 0);
</span><span class="cx">                 assert.equal(callCount, 0);
</span><span class="cx">                 assert.equal(requests.length, 4);
</span><del>-                assert.equal(requests[3].url, '../data/measurement-set-1-1-3000.json');
</del><ins>+                assert.equal(requests[3].url, '/data/measurement-set-1-1-3000.json');
</ins><span class="cx">             });
</span><span class="cx">         });
</span><span class="cx"> 
</span><span class="lines">@@ -237,7 +237,7 @@
</span><span class="cx">             let callCount = 0;
</span><span class="cx">             set.fetchBetween(0, 3000, () => callCount++);
</span><span class="cx">             assert.equal(requests.length, 1);
</span><del>-            assert.equal(requests[0].url, '../data/measurement-set-1-1.json');
</del><ins>+            assert.equal(requests[0].url, '/data/measurement-set-1-1.json');
</ins><span class="cx"> 
</span><span class="cx">             requests[0].resolve({
</span><span class="cx">                 'clusterStart': 2000,
</span><span class="lines">@@ -262,7 +262,7 @@
</span><span class="cx">             let rejected = false;
</span><span class="cx">             set.fetchBetween(1000, 3000, () => callCount++).catch(() => rejected = true);
</span><span class="cx">             assert.equal(requests.length, 1);
</span><del>-            assert.equal(requests[0].url, '../data/measurement-set-1-1.json');
</del><ins>+            assert.equal(requests[0].url, '/data/measurement-set-1-1.json');
</ins><span class="cx"> 
</span><span class="cx">             requests[0].reject(500);
</span><span class="cx"> 
</span><span class="lines">@@ -278,7 +278,7 @@
</span><span class="cx">             let callCount = 0;
</span><span class="cx">             set.fetchBetween(1000, 2000, () => callCount++);
</span><span class="cx">             assert.equal(requests.length, 1);
</span><del>-            assert.equal(requests[0].url, '../data/measurement-set-1-1.json');
</del><ins>+            assert.equal(requests[0].url, '/data/measurement-set-1-1.json');
</ins><span class="cx"> 
</span><span class="cx">             requests[0].resolve({
</span><span class="cx">                 'clusterStart': 1000,
</span><span class="lines">@@ -294,7 +294,7 @@
</span><span class="cx">             return waitForMeasurementSet().then(() => {
</span><span class="cx">                 assert.equal(callCount, 0);
</span><span class="cx">                 assert.equal(requests.length, 2);
</span><del>-                assert.equal(requests[1].url, '../api/measurement-set?platform=1&metric=1');
</del><ins>+                assert.equal(requests[1].url, '/api/measurement-set?platform=1&metric=1');
</ins><span class="cx">             });
</span><span class="cx">         });
</span><span class="cx"> 
</span><span class="lines">@@ -303,7 +303,7 @@
</span><span class="cx">             let callCount = 0;
</span><span class="cx">             set.fetchBetween(1000, 2000, () => callCount++);
</span><span class="cx">             assert.equal(requests.length, 1);
</span><del>-            assert.equal(requests[0].url, '../data/measurement-set-1-1.json');
</del><ins>+            assert.equal(requests[0].url, '/data/measurement-set-1-1.json');
</ins><span class="cx"> 
</span><span class="cx">             requests[0].reject(404);
</span><span class="cx"> 
</span><span class="lines">@@ -310,7 +310,7 @@
</span><span class="cx">             return waitForMeasurementSet().then(() => {
</span><span class="cx">                 assert.equal(callCount, 0);
</span><span class="cx">                 assert.equal(requests.length, 2);
</span><del>-                assert.equal(requests[1].url, '../api/measurement-set?platform=1&metric=1');
</del><ins>+                assert.equal(requests[1].url, '/api/measurement-set?platform=1&metric=1');
</ins><span class="cx">             });
</span><span class="cx">         });
</span><span class="cx"> 
</span><span class="lines">@@ -319,7 +319,7 @@
</span><span class="cx">             let callCount = 0;
</span><span class="cx">             set.fetchBetween(1000, 3000, () => callCount++);
</span><span class="cx">             assert.equal(requests.length, 1);
</span><del>-            assert.equal(requests[0].url, '../data/measurement-set-1-1.json');
</del><ins>+            assert.equal(requests[0].url, '/data/measurement-set-1-1.json');
</ins><span class="cx"> 
</span><span class="cx">             requests[0].resolve({
</span><span class="cx">                 'clusterStart': 1000,
</span><span class="lines">@@ -338,7 +338,7 @@
</span><span class="cx">                 assert.equal(noCacheFetchCount, 0);
</span><span class="cx">                 assert.equal(set._sortedClusters.length, 1);
</span><span class="cx">                 assert.equal(requests.length, 2);
</span><del>-                assert.equal(requests[1].url, '../data/measurement-set-1-1-2000.json');
</del><ins>+                assert.equal(requests[1].url, '/data/measurement-set-1-1-2000.json');
</ins><span class="cx"> 
</span><span class="cx">                 requests[1].resolve({
</span><span class="cx">                     'clusterStart': 1000,
</span><span class="lines">@@ -359,7 +359,7 @@
</span><span class="cx">                 assert.equal(noCacheFetchCount, 0);
</span><span class="cx">                 assert.equal(set._sortedClusters.length, 2);
</span><span class="cx">                 assert.equal(requests.length, 3);
</span><del>-                assert.equal(requests[2].url, '../api/measurement-set?platform=1&metric=1');
</del><ins>+                assert.equal(requests[2].url, '/api/measurement-set?platform=1&metric=1');
</ins><span class="cx"> 
</span><span class="cx">                 requests[2].resolve({
</span><span class="cx">                     'clusterStart': 1000,
</span><span class="lines">@@ -378,7 +378,7 @@
</span><span class="cx">                 assert.equal(noCacheFetchCount, 1);
</span><span class="cx">                 assert.equal(set._sortedClusters.length, 2);
</span><span class="cx">                 assert.equal(requests.length, 4);
</span><del>-                assert.equal(requests[3].url, '../data/measurement-set-1-1-2000.json');
</del><ins>+                assert.equal(requests[3].url, '/data/measurement-set-1-1-2000.json');
</ins><span class="cx"> 
</span><span class="cx">                 requests[3].resolve({
</span><span class="cx">                     'clusterStart': 1000,
</span><span class="lines">@@ -405,7 +405,7 @@
</span><span class="cx">             let callCount = 0;
</span><span class="cx">             set.fetchBetween(2000, 3000, () => callCount++);
</span><span class="cx">             assert.equal(requests.length, 1);
</span><del>-            assert.equal(requests[0].url, '../data/measurement-set-1-1.json');
</del><ins>+            assert.equal(requests[0].url, '/data/measurement-set-1-1.json');
</ins><span class="cx"> 
</span><span class="cx">             let alternativeCallCount = 0;
</span><span class="cx">             set.fetchBetween(2000, 3000, () => alternativeCallCount++);
</span><span class="lines">@@ -433,7 +433,7 @@
</span><span class="cx">             let callCountFor4000 = 0;
</span><span class="cx">             set.fetchBetween(3200, 3700, () => callCountFor4000++);
</span><span class="cx">             assert.equal(requests.length, 1);
</span><del>-            assert.equal(requests[0].url, '../data/measurement-set-1-1.json');
</del><ins>+            assert.equal(requests[0].url, '/data/measurement-set-1-1.json');
</ins><span class="cx"> 
</span><span class="cx">             requests[0].resolve({
</span><span class="cx">                 'clusterStart': 1000,
</span><span class="lines">@@ -452,7 +452,7 @@
</span><span class="cx">             return waitForMeasurementSet().then(() => {
</span><span class="cx">                 assert.equal(callCountFor4000, 0);
</span><span class="cx">                 assert.equal(requests.length, 2);
</span><del>-                assert.equal(requests[1].url, '../data/measurement-set-1-1-4000.json');
</del><ins>+                assert.equal(requests[1].url, '/data/measurement-set-1-1-4000.json');
</ins><span class="cx"> 
</span><span class="cx">                 set.fetchBetween(3708, 4800, () => callCountFor4000To5000++);
</span><span class="cx">                 return waitForMeasurementSet();
</span><span class="lines">@@ -465,7 +465,7 @@
</span><span class="cx">             }).then(() => {
</span><span class="cx">                 assert.equal(callCountFor2000, 0);
</span><span class="cx">                 assert.equal(requests.length, 3);
</span><del>-                assert.equal(requests[2].url, '../data/measurement-set-1-1-2000.json');
</del><ins>+                assert.equal(requests[2].url, '/data/measurement-set-1-1-2000.json');
</ins><span class="cx"> 
</span><span class="cx">                 requests[2].resolve({
</span><span class="cx">                     'formatMap': [],
</span><span class="lines">@@ -486,7 +486,7 @@
</span><span class="cx">             }).then(() => {
</span><span class="cx">                 assert.equal(callCountFor2000To4000, 1);
</span><span class="cx">                 assert.equal(requests.length, 4);
</span><del>-                assert.equal(requests[3].url, '../data/measurement-set-1-1-3000.json');
</del><ins>+                assert.equal(requests[3].url, '/data/measurement-set-1-1-3000.json');
</ins><span class="cx"> 
</span><span class="cx">                 requests[3].resolve({
</span><span class="cx">                     'formatMap': [],
</span><span class="lines">@@ -533,7 +533,7 @@
</span><span class="cx">             const set = MeasurementSet.findSet(1, 1, 3000);
</span><span class="cx">             const promise = set.fetchBetween(2000, 3000);
</span><span class="cx">             assert.equal(requests.length, 1);
</span><del>-            assert.equal(requests[0].url, '../data/measurement-set-1-1.json');
</del><ins>+            assert.equal(requests[0].url, '/data/measurement-set-1-1.json');
</ins><span class="cx"> 
</span><span class="cx">             requests[0].resolve({
</span><span class="cx">                 'clusterStart': 1000,
</span><span class="lines">@@ -556,7 +556,7 @@
</span><span class="cx">             const set = MeasurementSet.findSet(1, 1, 3000);
</span><span class="cx">             const promise = set.fetchBetween(2000, 3000);
</span><span class="cx">             assert.equal(requests.length, 1);
</span><del>-            assert.equal(requests[0].url, '../data/measurement-set-1-1.json');
</del><ins>+            assert.equal(requests[0].url, '/data/measurement-set-1-1.json');
</ins><span class="cx"> 
</span><span class="cx">             requests[0].resolve({
</span><span class="cx">                 'clusterStart': 1000,
</span><span class="lines">@@ -578,7 +578,7 @@
</span><span class="cx">             const set = MeasurementSet.findSet(1, 1, 5000);
</span><span class="cx">             const promise = set.fetchBetween(2000, 3000);
</span><span class="cx">             assert.equal(requests.length, 1);
</span><del>-            assert.equal(requests[0].url, '../data/measurement-set-1-1.json');
</del><ins>+            assert.equal(requests[0].url, '/data/measurement-set-1-1.json');
</ins><span class="cx"> 
</span><span class="cx">             requests[0].resolve({
</span><span class="cx">                 'clusterStart': 1000,
</span><span class="lines">@@ -593,7 +593,7 @@
</span><span class="cx"> 
</span><span class="cx">             return waitForMeasurementSet().then(() => {
</span><span class="cx">                 assert.equal(requests.length, 2);
</span><del>-                assert.equal(requests[1].url, '../data/measurement-set-1-1-3000.json');
</del><ins>+                assert.equal(requests[1].url, '/data/measurement-set-1-1-3000.json');
</ins><span class="cx">                 requests[1].resolve({
</span><span class="cx">                     'clusterStart': 1000,
</span><span class="cx">                     'clusterSize': 1000,
</span><span class="lines">@@ -613,7 +613,7 @@
</span><span class="cx">             const set = MeasurementSet.findSet(1, 1, 5000);
</span><span class="cx">             set.fetchBetween(2000, 3000);
</span><span class="cx">             assert.equal(requests.length, 1);
</span><del>-            assert.equal(requests[0].url, '../data/measurement-set-1-1.json');
</del><ins>+            assert.equal(requests[0].url, '/data/measurement-set-1-1.json');
</ins><span class="cx"> 
</span><span class="cx">             requests[0].resolve({
</span><span class="cx">                 'clusterStart': 1000,
</span><span class="lines">@@ -628,7 +628,7 @@
</span><span class="cx"> 
</span><span class="cx">             return waitForMeasurementSet().then(() => {
</span><span class="cx">                 assert.equal(requests.length, 2);
</span><del>-                assert.equal(requests[1].url, '../data/measurement-set-1-1-3000.json');
</del><ins>+                assert.equal(requests[1].url, '/data/measurement-set-1-1-3000.json');
</ins><span class="cx">                 requests[1].resolve({
</span><span class="cx">                     'clusterStart': 1000,
</span><span class="cx">                     'clusterSize': 1000,
</span><span class="lines">@@ -648,7 +648,7 @@
</span><span class="cx">             const set = MeasurementSet.findSet(1, 1, 5000);
</span><span class="cx">             set.fetchBetween(2000, 5000);
</span><span class="cx">             assert.equal(requests.length, 1);
</span><del>-            assert.equal(requests[0].url, '../data/measurement-set-1-1.json');
</del><ins>+            assert.equal(requests[0].url, '/data/measurement-set-1-1.json');
</ins><span class="cx"> 
</span><span class="cx">             requests[0].resolve({
</span><span class="cx">                 'clusterStart': 1000,
</span><span class="lines">@@ -663,8 +663,8 @@
</span><span class="cx"> 
</span><span class="cx">             return waitForMeasurementSet().then(() => {
</span><span class="cx">                 assert.equal(requests.length, 3);
</span><del>-                assert.equal(requests[1].url, '../data/measurement-set-1-1-3000.json');
-                assert.equal(requests[2].url, '../data/measurement-set-1-1-4000.json');
</del><ins>+                assert.equal(requests[1].url, '/data/measurement-set-1-1-3000.json');
+                assert.equal(requests[2].url, '/data/measurement-set-1-1-4000.json');
</ins><span class="cx">                 requests[1].resolve({
</span><span class="cx">                     'clusterStart': 1000,
</span><span class="cx">                     'clusterSize': 1000,
</span><span class="lines">@@ -686,7 +686,7 @@
</span><span class="cx">             const set = MeasurementSet.findSet(1, 1, 3000);
</span><span class="cx">             const promise = set.fetchBetween(2000, 3000);
</span><span class="cx">             assert.equal(requests.length, 1);
</span><del>-            assert.equal(requests[0].url, '../data/measurement-set-1-1.json');
</del><ins>+            assert.equal(requests[0].url, '/data/measurement-set-1-1.json');
</ins><span class="cx"> 
</span><span class="cx">             requests[0].resolve({
</span><span class="cx">                 'clusterStart': 1000,
</span><span class="lines">@@ -775,7 +775,7 @@
</span><span class="cx">             const set = MeasurementSet.findSet(15, 769, 1484105738736);
</span><span class="cx">             const promise = set.fetchBetween(1476426488465, 1484203801573);
</span><span class="cx">             assert.equal(requests.length, 1);
</span><del>-            assert.equal(requests[0].url, '../data/measurement-set-15-769.json');
</del><ins>+            assert.equal(requests[0].url, '/data/measurement-set-15-769.json');
</ins><span class="cx"> 
</span><span class="cx">             requests[0].resolve(sampleCluster);
</span><span class="cx"> 
</span><span class="lines">@@ -975,7 +975,7 @@
</span><span class="cx">             const set = MeasurementSet.findSet(1, 1, 5000);
</span><span class="cx">             const promise = set.fetchBetween(4000, 5000);
</span><span class="cx">             assert.equal(requests.length, 1);
</span><del>-            assert.equal(requests[0].url, '../data/measurement-set-1-1.json');
</del><ins>+            assert.equal(requests[0].url, '/data/measurement-set-1-1.json');
</ins><span class="cx"> 
</span><span class="cx">             requests[0].resolve({
</span><span class="cx">                 'clusterStart': 1000,
</span><span class="lines">@@ -1015,7 +1015,7 @@
</span><span class="cx">             const set = MeasurementSet.findSet(1, 1, 5000);
</span><span class="cx">             const promise = set.fetchBetween(3000, 5000);
</span><span class="cx">             assert.equal(requests.length, 1);
</span><del>-            assert.equal(requests[0].url, '../data/measurement-set-1-1.json');
</del><ins>+            assert.equal(requests[0].url, '/data/measurement-set-1-1.json');
</ins><span class="cx"> 
</span><span class="cx">             requests[0].resolve({
</span><span class="cx">                 'clusterStart': 1000,
</span><span class="lines">@@ -1030,7 +1030,7 @@
</span><span class="cx"> 
</span><span class="cx">             return waitForMeasurementSet().then(() => {
</span><span class="cx">                 assert.equal(requests.length, 2);
</span><del>-                assert.equal(requests[1].url, '../data/measurement-set-1-1-4000.json');
</del><ins>+                assert.equal(requests[1].url, '/data/measurement-set-1-1-4000.json');
</ins><span class="cx">                 return set.fetchSegmentation('segmentTimeSeriesByMaximizingSchwarzCriterion', [], 'current', false);
</span><span class="cx">             }).then((segmentation) => {
</span><span class="cx">                 const timeSeries = set.fetchedTimeSeries('current', false, false);
</span></span></pre>
</div>
</div>

</body>
</html>