Skip to content

Commit

Permalink
[ Add ] Unit tests based on Mocha, Should & PuppeteerBrowser
Browse files Browse the repository at this point in the history
[ Refactor ]  Simplify core logic of Page stack
  • Loading branch information
TechQuery committed Jul 3, 2018
1 parent cdf11bf commit ac3fd75
Show file tree
Hide file tree
Showing 37 changed files with 14,367 additions and 22,447 deletions.
386 changes: 169 additions & 217 deletions dist/source.js

Large diffs are not rendered by default.

5,332 changes: 3,418 additions & 1,914 deletions docs/ast/source/router/CellRouter.js.json

Large diffs are not rendered by default.

5,090 changes: 0 additions & 5,090 deletions docs/ast/source/router/Page.js.json

This file was deleted.

22,915 changes: 9,287 additions & 13,628 deletions docs/ast/source/router/PageStack.js.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/class/source/loader/CellLoader.js~CellLoader.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/source/loader/CellPage.js~CellPage.html">CellPage</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#router">router</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/source/router/CellRoute.js~CellRoute.html">CellRoute</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/source/router/CellRouter.js~CellRouter.html">CellRouter</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/source/router/Page.js~Page.html">Page</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/source/router/PageStack.js~PageStack.html">PageStack</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-HistoryState">HistoryState</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-PageChangeEvent">PageChangeEvent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-PageChangedEvent">PageChangedEvent</a></span></span></li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion docs/class/source/loader/CellPage.js~CellPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/source/loader/CellPage.js~CellPage.html">CellPage</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#router">router</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/source/router/CellRoute.js~CellRoute.html">CellRoute</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/source/router/CellRouter.js~CellRouter.html">CellRouter</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/source/router/Page.js~Page.html">Page</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/source/router/PageStack.js~PageStack.html">PageStack</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-HistoryState">HistoryState</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-PageChangeEvent">PageChangeEvent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-PageChangedEvent">PageChangedEvent</a></span></span></li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion docs/class/source/router/CellRoute.js~CellRoute.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/source/loader/CellPage.js~CellPage.html">CellPage</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#router">router</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/source/router/CellRoute.js~CellRoute.html">CellRoute</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/source/router/CellRouter.js~CellRouter.html">CellRouter</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/source/router/Page.js~Page.html">Page</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/source/router/PageStack.js~PageStack.html">PageStack</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-HistoryState">HistoryState</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-PageChangeEvent">PageChangeEvent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-PageChangedEvent">PageChangedEvent</a></span></span></li>
</ul>
Expand Down
158 changes: 154 additions & 4 deletions docs/class/source/router/CellRouter.js~CellRouter.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/source/loader/CellPage.js~CellPage.html">CellPage</a></span></span></li>
<li data-ice="doc"><a data-ice="dirPath" class="nav-dir-path" href="identifiers.html#router">router</a><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/source/router/CellRoute.js~CellRoute.html">CellRoute</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/source/router/CellRouter.js~CellRouter.html">CellRouter</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/source/router/Page.js~Page.html">Page</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/source/router/PageStack.js~PageStack.html">PageStack</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-HistoryState">HistoryState</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-PageChangeEvent">PageChangeEvent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-typedef">T</span><span data-ice="name"><span><a href="typedef/index.html#static-typedef-PageChangedEvent">PageChangedEvent</a></span></span></li>
</ul>
Expand Down Expand Up @@ -126,6 +126,34 @@ <h1 data-ice="name">CellRouter</h1>
<td>
<span class="access" data-ice="access">public</span>



<span class="override" data-ice="override"></span>
</td>
<td>
<div>
<p>



<span class="code" data-ice="name"><span><a href="class/source/router/CellRouter.js~CellRouter.html#instance-member-loading">loading</a></span></span><span class="code" data-ice="signature">: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></span></span>
</p>
</div>
<div>



</div>
</td>
<td>


</td>
</tr>
<tr data-ice="target">
<td>
<span class="access" data-ice="access">public</span>

<span class="kind" data-ice="kind">get</span>

<span class="override" data-ice="override"></span>
Expand Down Expand Up @@ -178,6 +206,40 @@ <h1 data-ice="name">CellRouter</h1>
<td>


</td>
</tr>
</tbody>
</table>
<table class="summary" data-ice="summary">
<thead><tr><td data-ice="title" colspan="3">Protected Members</td></tr></thead>
<tbody>

<tr data-ice="target">
<td>
<span class="access" data-ice="access">protected</span>

<span class="kind" data-ice="kind">get</span>

<span class="override" data-ice="override"></span>
</td>
<td>
<div>
<p>



<span class="code" data-ice="name"><span><a href="class/source/router/CellRouter.js~CellRouter.html#instance-get-stack">stack</a></span></span><span class="code" data-ice="signature">: <span><a href="class/source/router/PageStack.js~PageStack.html">PageStack</a></span></span>
</p>
</div>
<div>



</div>
</td>
<td>


</td>
</tr>
</tbody>
Expand Down Expand Up @@ -305,6 +367,49 @@ <h3 data-ice="anchor" id="instance-constructor-constructor">
</div>
<div data-ice="memberDetails"><h2 data-ice="title">Public Members</h2>

<div class="detail" data-ice="detail">
<h3 data-ice="anchor" id="instance-member-loading">
<span class="access" data-ice="access">public</span>





<span class="code" data-ice="name">loading</span><span class="code" data-ice="signature">: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></span></span>
<span class="right-info">


<span data-ice="source"><span><a href="file/source/router/CellRouter.js.html#lineNumber23">source</a></span></span>
</span>
</h3>








<div data-ice="properties">
</div>

















</div>
<div class="detail" data-ice="detail">
<h3 data-ice="anchor" id="instance-get-map">
<span class="access" data-ice="access">public</span>
Expand All @@ -317,7 +422,7 @@ <h3 data-ice="anchor" id="instance-get-map">
<span class="right-info">


<span data-ice="source"><span><a href="file/source/router/CellRouter.js.html#lineNumber50">source</a></span></span>
<span data-ice="source"><span><a href="file/source/router/CellRouter.js.html#lineNumber59">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -361,7 +466,7 @@ <h3 data-ice="anchor" id="instance-get-mode">
<span class="right-info">


<span data-ice="source"><span><a href="file/source/router/CellRouter.js.html#lineNumber43">source</a></span></span>
<span data-ice="source"><span><a href="file/source/router/CellRouter.js.html#lineNumber52">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -392,6 +497,51 @@ <h3 data-ice="anchor" id="instance-get-mode">



</div>
<h2 data-ice="title">Protected Members</h2>

<div class="detail" data-ice="detail">
<h3 data-ice="anchor" id="instance-get-stack">
<span class="access" data-ice="access">protected</span>

<span class="kind" data-ice="kind">get</span>



<span class="code" data-ice="name">stack</span><span class="code" data-ice="signature">: <span><a href="class/source/router/PageStack.js~PageStack.html">PageStack</a></span></span>
<span class="right-info">


<span data-ice="source"><span><a href="file/source/router/CellRouter.js.html#lineNumber78">source</a></span></span>
</span>
</h3>








<div data-ice="properties">
</div>

















</div>
</div>
<div data-ice="methodDetails"><h2 data-ice="title">Public Methods</h2>
Expand Down Expand Up @@ -453,7 +603,7 @@ <h3 data-ice="anchor" id="instance-method-navTo">
<span class="right-info">


<span data-ice="source"><span><a href="file/source/router/CellRouter.js.html#lineNumber69">source</a></span></span>
<span data-ice="source"><span><a href="file/source/router/CellRouter.js.html#lineNumber85">source</a></span></span>
</span>
</h3>

Expand Down
Loading

0 comments on commit ac3fd75

Please sign in to comment.