Skip to content

Commit

Permalink
Build commit 3597c17
Browse files Browse the repository at this point in the history
  • Loading branch information
Krinkle committed Jul 14, 2024
1 parent 70ea92f commit 9537593
Show file tree
Hide file tree
Showing 19 changed files with 348 additions and 7 deletions.
2 changes: 2 additions & 0 deletions api/QUnit/hooks/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ <h4 class="sidebar-title-open"><a href="/api/extension/">Extension interface</a>
<a href="/api/config/urlConfig/">QUnit.config.urlConfig</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.dump.parse/">QUnit.dump.parse()</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.dump.setParser/">QUnit.dump.setParser()</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.extend/">QUnit.extend()</a>
</li><li class="sidebar-item sidebar-item-active">
Expand Down
2 changes: 2 additions & 0 deletions api/assert/pushResult/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ <h4 class="sidebar-title-open"><a href="/api/extension/">Extension interface</a>
<a href="/api/config/urlConfig/">QUnit.config.urlConfig</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.dump.parse/">QUnit.dump.parse()</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.dump.setParser/">QUnit.dump.setParser()</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.extend/">QUnit.extend()</a>
</li><li class="sidebar-item">
Expand Down
2 changes: 2 additions & 0 deletions api/callbacks/QUnit.on/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,8 @@ <h4 class="sidebar-title-open"><a href="/api/extension/">Extension interface</a>
<a href="/api/config/urlConfig/">QUnit.config.urlConfig</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.dump.parse/">QUnit.dump.parse()</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.dump.setParser/">QUnit.dump.setParser()</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.extend/">QUnit.extend()</a>
</li><li class="sidebar-item">
Expand Down
2 changes: 2 additions & 0 deletions api/config/current/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ <h4 class="sidebar-title-open"><a href="/api/extension/">Extension interface</a>
<a href="/api/config/urlConfig/">QUnit.config.urlConfig</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.dump.parse/">QUnit.dump.parse()</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.dump.setParser/">QUnit.dump.setParser()</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.extend/">QUnit.extend()</a>
</li><li class="sidebar-item">
Expand Down
23 changes: 21 additions & 2 deletions api/config/maxDepth/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,29 @@ <h2 id="description" class="screen-reader-text h-api-desc">Description</h2>
</tr>
</table>

<p>To disable the depth limit, use a value of <code class="language-plaintext highlighter-rouge">-1</code>.</p>
<p>To disable the depth limit and allow infinite depth, use a value of <code class="language-plaintext highlighter-rouge">0</code>.</p>

<p>This is used by <a href="/api/extension/QUnit.dump.parse/"><code class="language-plaintext highlighter-rouge">QUnit.dump.parse()</code></a>.</p>

<h2 id="changelog">Changelog</h2>

<table>
<tbody>
<tr>
<td>UNRELEASED</td>
<td>Make <code class="language-plaintext highlighter-rouge">QUnit.dump.maxDepth</code> an alias for <code class="language-plaintext highlighter-rouge">QUnit.config.maxDepth</code>, allowing both to be read and changed at runtime.</td>
</tr>
<tr>
<td><a href="https://github.com/qunitjs/qunit/releases/tag/1.18.0">QUnit 1.18</a></td>
<td>Introduce <code class="language-plaintext highlighter-rouge">QUnit.config.maxDepth</code> to enable setting via <a href="/api/config/">preconfig</a>. Temporary changes at runtime must change <code class="language-plaintext highlighter-rouge">QUnit.dump.maxDepth</code> instead.</td>
</tr>
<tr>
<td><a href="https://github.com/qunitjs/qunit/releases/tag/1.16.0">QUnit 1.16</a></td>
<td>Introduce <code class="language-plaintext highlighter-rouge">QUnit.dump.maxDepth</code>.</td>
</tr>
</tbody>
</table>

</article>
</div>
<aside class="sidebar" role="complementary">
Expand Down Expand Up @@ -163,7 +182,7 @@ <h4><a href="/api/deprecated/">Deprecated methods</a></h4>

<h4><a href="/api/removed/">Removed methods</a></h4>
<hr><div class="toc-wrapper">
<h4>Table of contents</h4><ol class="toc"><li class="sidebar-item"><a href="#description">Description</a></li></ol></div>
<h4>Table of contents</h4><ol class="toc"><li class="sidebar-item"><a href="#description">Description</a></li><li class="sidebar-item"><a href="#changelog">Changelog</a></li></ol></div>
</aside>

</div>
Expand Down
2 changes: 2 additions & 0 deletions api/config/modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ <h4 class="sidebar-title-open"><a href="/api/extension/">Extension interface</a>
<a href="/api/config/urlConfig/">QUnit.config.urlConfig</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.dump.parse/">QUnit.dump.parse()</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.dump.setParser/">QUnit.dump.setParser()</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.extend/">QUnit.extend()</a>
</li><li class="sidebar-item">
Expand Down
2 changes: 2 additions & 0 deletions api/config/storage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ <h4 class="sidebar-title-open"><a href="/api/extension/">Extension interface</a>
<a href="/api/config/urlConfig/">QUnit.config.urlConfig</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.dump.parse/">QUnit.dump.parse()</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.dump.setParser/">QUnit.dump.setParser()</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.extend/">QUnit.extend()</a>
</li><li class="sidebar-item">
Expand Down
2 changes: 2 additions & 0 deletions api/config/urlConfig/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ <h4 class="sidebar-title-open"><a href="/api/extension/">Extension interface</a>
<a href="/api/config/urlConfig/">QUnit.config.urlConfig</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.dump.parse/">QUnit.dump.parse()</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.dump.setParser/">QUnit.dump.setParser()</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.extend/">QUnit.extend()</a>
</li><li class="sidebar-item">
Expand Down
2 changes: 2 additions & 0 deletions api/extension/QUnit.assert/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ <h4 class="sidebar-title-open"><a href="/api/extension/">Extension interface</a>
<a href="/api/config/urlConfig/">QUnit.config.urlConfig</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.dump.parse/">QUnit.dump.parse()</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.dump.setParser/">QUnit.dump.setParser()</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.extend/">QUnit.extend()</a>
</li><li class="sidebar-item">
Expand Down
8 changes: 5 additions & 3 deletions api/extension/QUnit.dump.parse/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ <h2 id="description" class="screen-reader-text h-api-desc">Description</h2>

<p>This method does string serialization by parsing data structures and objects. It parses DOM elements to a string representation of their outer HTML. By default, nested structures will be displayed up to five levels deep. Anything beyond that is replaced by <code class="language-plaintext highlighter-rouge">[object Object]</code> and <code class="language-plaintext highlighter-rouge">[object Array]</code> placeholders.</p>

<p>If you need more or less output, change the value of <code class="language-plaintext highlighter-rouge">QUnit.dump.maxDepth</code>, representing how deep the elements should be parsed.</p>
<p>If you need more or less output, change the value of <a href="/api/config/maxDepth/"><code class="language-plaintext highlighter-rouge">QUnit.config.maxDepth</code></a>, representing how deep the elements should be parsed.</p>

<h2 id="changelog">Changelog</h2>

Expand Down Expand Up @@ -153,11 +153,11 @@ <h2 id="examples">Examples</h2>
<span class="na">back</span><span class="p">:</span> <span class="p">[]</span>
<span class="p">}</span>
<span class="p">};</span>
<span class="nx">QUnit</span><span class="p">.</span><span class="nx">dump</span><span class="p">.</span><span class="nx">maxDepth</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="nx">QUnit</span><span class="p">.</span><span class="nx">config</span><span class="p">.</span><span class="nx">maxDepth</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
<span class="nx">console</span><span class="p">.</span><span class="nf">log</span><span class="p">(</span><span class="nx">QUnit</span><span class="p">.</span><span class="nx">dump</span><span class="p">.</span><span class="nf">parse</span><span class="p">(</span><span class="nx">input</span><span class="p">));</span>
<span class="c1">// Logs: { "parts": [object Object] }</span>

<span class="nx">QUnit</span><span class="p">.</span><span class="nx">dump</span><span class="p">.</span><span class="nx">maxDepth</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
<span class="nx">QUnit</span><span class="p">.</span><span class="nx">config</span><span class="p">.</span><span class="nx">maxDepth</span> <span class="o">=</span> <span class="mi">2</span><span class="p">;</span>
<span class="nx">console</span><span class="p">.</span><span class="nf">log</span><span class="p">(</span><span class="nx">QUnit</span><span class="p">.</span><span class="nx">dump</span><span class="p">.</span><span class="nf">parse</span><span class="p">(</span><span class="nx">input</span><span class="p">));</span>
<span class="c1">// Logs: { "parts": { "back": [object Array], "front": [object Array] } }</span>
</code></pre></div></div>
Expand Down Expand Up @@ -196,6 +196,8 @@ <h4 class="sidebar-title-open"><a href="/api/extension/">Extension interface</a>
<a href="/api/config/urlConfig/">QUnit.config.urlConfig</a>
</li><li class="sidebar-item sidebar-item-active">
<a href="/api/extension/QUnit.dump.parse/">QUnit.dump.parse()</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.dump.setParser/">QUnit.dump.setParser()</a>
</li><li class="sidebar-item">
<a href="/api/extension/QUnit.extend/">QUnit.extend()</a>
</li><li class="sidebar-item">
Expand Down
Loading

0 comments on commit 9537593

Please sign in to comment.