Skip to content

Commit

Permalink
Rebase tests for the indent-detection change, and some lingering test…
Browse files Browse the repository at this point in the history
… file updates.
  • Loading branch information
tabatkins committed Oct 15, 2024
1 parent eca22d6 commit 3febb79
Show file tree
Hide file tree
Showing 10 changed files with 109 additions and 94 deletions.
3 changes: 3 additions & 0 deletions tests/github/WICG/file-system-access/index.console.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,8 @@ spec:infra; type:dfn; for:string; text:convert
spec:infra; type:dfn; for:JavaScript string; text:convert
spec:handwriting-recognition; type:dfn; text:convert
[=converting=]
LINK ERROR: Multiple possible 'idl' local refs for 'truncate'.
Randomly chose one of them; other instances might get a different random choice.
{{truncate}}
LINE ~1419: No 'dfn' refs found for 'pairs'.
[=pairs=]
16 changes: 8 additions & 8 deletions tests/github/WICG/file-system-access/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2260,7 +2260,7 @@ <h4 class="heading settled" data-level="2.6.1" id="api-filesystemwritablefilestr
<dd data-md>
<p>Resizes the file associated with <var>stream</var> to be <var>size</var> bytes long. If <var>size</var> is larger than
the current file size this pads the file with null bytes, otherwise it truncates the file.</p>
<p>The file cursor is updated when <code class="idl"><a data-link-type="idl" href="#dom-writecommandtype-truncate" id="ref-for-dom-writecommandtype-truncate">truncate</a></code> is called. If the offset is smaller than offset,
<p>The file cursor is updated when <code class="idl"><a data-link-type="idl" href="#dom-filesystemwritablefilestream-truncate" id="ref-for-dom-filesystemwritablefilestream-truncate">truncate</a></code> is called. If the offset is smaller than offset,
it remains unchanged. If the offset is larger than <var>size</var>, the offset is set to <var>size</var> to
ensure that subsequent writes do not error.</p>
<p>No changes are written to the actual file until on disk until the stream has been closed.
Expand Down Expand Up @@ -2304,14 +2304,14 @@ <h4 class="heading settled" data-level="2.6.2" id="api-filesystemwritablefilestr
<p>Return <var>result</var>.</p>
</ol>
</div>
<h4 class="heading settled" data-level="2.6.3" id="api-filesystemwritablefilestream-truncate"><span class="secno">2.6.3. </span><span class="content">The <code class="idl"><a data-link-type="idl" href="#dom-filesystemwritablefilestream-truncate" id="ref-for-dom-filesystemwritablefilestream-truncate">truncate()</a></code> method</span><a class="self-link" href="#api-filesystemwritablefilestream-truncate"></a></h4>
<h4 class="heading settled" data-level="2.6.3" id="api-filesystemwritablefilestream-truncate"><span class="secno">2.6.3. </span><span class="content">The <code class="idl"><a data-link-type="idl" href="#dom-filesystemwritablefilestream-truncate" id="ref-for-dom-filesystemwritablefilestream-truncate">truncate()</a></code> method</span><a class="self-link" href="#api-filesystemwritablefilestream-truncate"></a></h4>
<div class="note domintro" role="note">
<dl>
<dt data-md>await <var>stream</var> . <code class="idl"><a data-link-type="idl" href="#dom-filesystemwritablefilestream-truncate" id="ref-for-dom-filesystemwritablefilestream-truncate">truncate</a></code>(<var>size</var>)
<dt data-md>await <var>stream</var> . <code class="idl"><a data-link-type="idl" href="#dom-filesystemwritablefilestream-truncate" id="ref-for-dom-filesystemwritablefilestream-truncate">truncate</a></code>(<var>size</var>)
<dd data-md>
<p>Resizes the file associated with <var>stream</var> to be <var>size</var> bytes long. If <var>size</var> is larger than
the current file size this pads the file with null bytes, otherwise it truncates the file.</p>
<p>The file cursor is updated when <code class="idl"><a data-link-type="idl" href="#dom-writecommandtype-truncate" id="ref-for-dom-writecommandtype-truncate">truncate</a></code> is called. If the offset is smaller than offset,
<p>The file cursor is updated when <code class="idl"><a data-link-type="idl" href="#dom-filesystemwritablefilestream-truncate" id="ref-for-dom-filesystemwritablefilestream-truncate">truncate</a></code> is called. If the offset is smaller than offset,
it remains unchanged. If the offset is larger than <var>size</var>, the offset is set to <var>size</var> to
ensure that subsequent writes do not error.</p>
<p>No changes are written to the actual file until on disk until the stream has been closed.
Expand All @@ -2326,7 +2326,7 @@ <h4 class="heading settled" data-level="2.6.3" id="api-filesystemwritablefilestr
<p>Let <var>writer</var> be the result of <a data-link-type="dfn" href="https://streams.spec.whatwg.org/#writablestream-get-a-writer" id="ref-for-writablestream-get-a-writer②">getting a writer</a> for <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-this②⓪">this</a>.</p>
<li data-md>
<p>Let <var>result</var> be the result of <a data-link-type="dfn" href="https://streams.spec.whatwg.org/#writablestreamdefaultwriter-write-a-chunk" id="ref-for-writablestreamdefaultwriter-write-a-chunk②">writing a chunk</a> to <var>writer</var> given
«[ "<code class="idl"><a data-link-type="idl" href="#dom-writeparams-type" id="ref-for-dom-writeparams-type⑥">type</a></code>" → <code class="idl"><a data-link-type="idl" href="#dom-writecommandtype-truncate" id="ref-for-dom-writecommandtype-truncate">"truncate"</a></code>, "<code class="idl"><a data-link-type="idl" href="#dom-writeparams-size" id="ref-for-dom-writeparams-size③">size</a></code>" → <var>size</var> ]».</p>
«[ "<code class="idl"><a data-link-type="idl" href="#dom-writeparams-type" id="ref-for-dom-writeparams-type⑥">type</a></code>" → <code class="idl"><a data-link-type="idl" href="#dom-writecommandtype-truncate" id="ref-for-dom-writecommandtype-truncate">"truncate"</a></code>, "<code class="idl"><a data-link-type="idl" href="#dom-writeparams-size" id="ref-for-dom-writeparams-size③">size</a></code>" → <var>size</var> ]».</p>
<li data-md>
<p><a data-link-type="dfn" href="https://streams.spec.whatwg.org/#writablestreamdefaultwriter-release" id="ref-for-writablestreamdefaultwriter-release②">Release</a> <var>writer</var>.</p>
<li data-md>
Expand Down Expand Up @@ -2976,7 +2976,7 @@ <h3 class="heading settled" data-level="7.3" id="filling-up-disk"><span class="s
space).</p>
<p>Without this API websites can write data to disk not subject to quota limitations already
by triggering downloads of large files (potentially created client side, to not incur any network
overhead). While the presence of <code class="idl"><a data-link-type="idl" href="#dom-filesystemwritablefilestream-truncate" id="ref-for-dom-filesystemwritablefilestream-truncate">truncate()</a></code> and writing at a
overhead). While the presence of <code class="idl"><a data-link-type="idl" href="#dom-filesystemwritablefilestream-truncate" id="ref-for-dom-filesystemwritablefilestream-truncate">truncate()</a></code> and writing at a
potentially really large offset past the end of a file makes it much easier and lower cost to
create large files, on most file systems such files should not actually take up as much disk space as
most commonly used file systems support sparse files (and thus wouldn’t actually store the NUL
Expand Down Expand Up @@ -3966,7 +3966,7 @@ <h2 class="no-num no-ref heading settled" id="issues-index"><span class="content
"dom-filesystemremoveoptions-recursive": {"dfnID":"dom-filesystemremoveoptions-recursive","dfnText":"recursive","external":false,"refSections":[{"refs":[{"id":"ref-for-dom-filesystemremoveoptions-recursive"},{"id":"ref-for-dom-filesystemremoveoptions-recursive\u2460"},{"id":"ref-for-dom-filesystemremoveoptions-recursive\u2461"},{"id":"ref-for-dom-filesystemremoveoptions-recursive\u2462"}],"title":"2.5.4. The removeEntry() method"}],"url":"#dom-filesystemremoveoptions-recursive"},
"dom-filesystemwritablefilestream-seek": {"dfnID":"dom-filesystemwritablefilestream-seek","dfnText":"seek(position)","external":false,"refSections":[{"refs":[{"id":"ref-for-dom-filesystemwritablefilestream-seek"}],"title":"2.6. The FileSystemWritableFileStream interface"},{"refs":[{"id":"ref-for-dom-filesystemwritablefilestream-seek\u2460"},{"id":"ref-for-dom-filesystemwritablefilestream-seek\u2461"}],"title":"2.6.2. The seek() method"}],"url":"#dom-filesystemwritablefilestream-seek"},
"dom-filesystemwritablefilestream-seek-position-position": {"dfnID":"dom-filesystemwritablefilestream-seek-position-position","dfnText":"position","external":false,"refSections":[],"url":"#dom-filesystemwritablefilestream-seek-position-position"},
"dom-filesystemwritablefilestream-truncate": {"dfnID":"dom-filesystemwritablefilestream-truncate","dfnText":"truncate(size)","external":false,"refSections":[{"refs":[{"id":"ref-for-dom-filesystemwritablefilestream-truncate"}],"title":"2.6. The FileSystemWritableFileStream interface"},{"refs":[{"id":"ref-for-dom-filesystemwritablefilestream-truncate\u2460"},{"id":"ref-for-dom-filesystemwritablefilestream-truncate\u2461"}],"title":"2.6.3. The truncate() method"},{"refs":[{"id":"ref-for-dom-filesystemwritablefilestream-truncate\u2462"}],"title":"7.3. Filling up a users disk"}],"url":"#dom-filesystemwritablefilestream-truncate"},
"dom-filesystemwritablefilestream-truncate": {"dfnID":"dom-filesystemwritablefilestream-truncate","dfnText":"truncate(size)","external":false,"refSections":[{"refs":[{"id":"ref-for-dom-filesystemwritablefilestream-truncate"}],"title":"2.6. The FileSystemWritableFileStream interface"},{"refs":[{"id":"ref-for-dom-filesystemwritablefilestream-truncate\u2460"}],"title":"2.6.1. The write() method"},{"refs":[{"id":"ref-for-dom-filesystemwritablefilestream-truncate\u2461"},{"id":"ref-for-dom-filesystemwritablefilestream-truncate\u2462"},{"id":"ref-for-dom-filesystemwritablefilestream-truncate\u2463"}],"title":"2.6.3. The truncate() method"},{"refs":[{"id":"ref-for-dom-filesystemwritablefilestream-truncate\u2464"}],"title":"7.3. Filling up a users disk"}],"url":"#dom-filesystemwritablefilestream-truncate"},
"dom-filesystemwritablefilestream-truncate-size-size": {"dfnID":"dom-filesystemwritablefilestream-truncate-size-size","dfnText":"size","external":false,"refSections":[],"url":"#dom-filesystemwritablefilestream-truncate-size-size"},
"dom-filesystemwritablefilestream-write": {"dfnID":"dom-filesystemwritablefilestream-write","dfnText":"write(data)","external":false,"refSections":[{"refs":[{"id":"ref-for-dom-filesystemwritablefilestream-write"},{"id":"ref-for-dom-filesystemwritablefilestream-write\u2460"}],"title":"2.6. The FileSystemWritableFileStream interface"},{"refs":[{"id":"ref-for-dom-filesystemwritablefilestream-write\u2461"},{"id":"ref-for-dom-filesystemwritablefilestream-write\u2462"},{"id":"ref-for-dom-filesystemwritablefilestream-write\u2463"},{"id":"ref-for-dom-filesystemwritablefilestream-write\u2464"},{"id":"ref-for-dom-filesystemwritablefilestream-write\u2465"},{"id":"ref-for-dom-filesystemwritablefilestream-write\u2466"}],"title":"2.6.1. The write() method"}],"url":"#dom-filesystemwritablefilestream-write"},
"dom-filesystemwritablefilestream-write-data-data": {"dfnID":"dom-filesystemwritablefilestream-write-data-data","dfnText":"data","external":false,"refSections":[],"url":"#dom-filesystemwritablefilestream-write-data-data"},
Expand All @@ -3980,7 +3980,7 @@ <h2 class="no-num no-ref heading settled" id="issues-index"><span class="content
"dom-window-showsavefilepicker": {"dfnID":"dom-window-showsavefilepicker","dfnText":"showSaveFilePicker(options)","external":false,"refSections":[{"refs":[{"id":"ref-for-dom-window-showsavefilepicker"},{"id":"ref-for-dom-window-showsavefilepicker\u2460"}],"title":"3. Accessing Local File System"},{"refs":[{"id":"ref-for-dom-window-showsavefilepicker\u2461"}],"title":"3.1. Local File System Permissions"},{"refs":[{"id":"ref-for-dom-window-showsavefilepicker\u2462"},{"id":"ref-for-dom-window-showsavefilepicker\u2463"},{"id":"ref-for-dom-window-showsavefilepicker\u2464"}],"title":"3.3. The showSaveFilePicker() method"},{"refs":[{"id":"ref-for-dom-window-showsavefilepicker\u2465"}],"title":"3.4. FilePickerOptions.types"}],"url":"#dom-window-showsavefilepicker"},
"dom-window-showsavefilepicker-options-options": {"dfnID":"dom-window-showsavefilepicker-options-options","dfnText":"options","external":false,"refSections":[],"url":"#dom-window-showsavefilepicker-options-options"},
"dom-writecommandtype-seek": {"dfnID":"dom-writecommandtype-seek","dfnText":"\"seek\"","external":false,"refSections":[{"refs":[{"id":"ref-for-dom-writecommandtype-seek"}],"title":"2.6. The FileSystemWritableFileStream interface"},{"refs":[{"id":"ref-for-dom-writecommandtype-seek\u2460"}],"title":"2.6.1. The write() method"},{"refs":[{"id":"ref-for-dom-writecommandtype-seek\u2461"}],"title":"2.6.2. The seek() method"}],"url":"#dom-writecommandtype-seek"},
"dom-writecommandtype-truncate": {"dfnID":"dom-writecommandtype-truncate","dfnText":"\"truncate\"","external":false,"refSections":[{"refs":[{"id":"ref-for-dom-writecommandtype-truncate"}],"title":"2.6. The FileSystemWritableFileStream interface"},{"refs":[{"id":"ref-for-dom-writecommandtype-truncate\u2460"},{"id":"ref-for-dom-writecommandtype-truncate\u2461"}],"title":"2.6.1. The write() method"},{"refs":[{"id":"ref-for-dom-writecommandtype-truncate\u2462"},{"id":"ref-for-dom-writecommandtype-truncate\u2463"}],"title":"2.6.3. The truncate() method"}],"url":"#dom-writecommandtype-truncate"},
"dom-writecommandtype-truncate": {"dfnID":"dom-writecommandtype-truncate","dfnText":"\"truncate\"","external":false,"refSections":[{"refs":[{"id":"ref-for-dom-writecommandtype-truncate"}],"title":"2.6. The FileSystemWritableFileStream interface"},{"refs":[{"id":"ref-for-dom-writecommandtype-truncate\u2460"}],"title":"2.6.1. The write() method"},{"refs":[{"id":"ref-for-dom-writecommandtype-truncate\u2461"}],"title":"2.6.3. The truncate() method"}],"url":"#dom-writecommandtype-truncate"},
"dom-writecommandtype-write": {"dfnID":"dom-writecommandtype-write","dfnText":"\"write\"","external":false,"refSections":[{"refs":[{"id":"ref-for-dom-writecommandtype-write"},{"id":"ref-for-dom-writecommandtype-write\u2460"}],"title":"2.6. The FileSystemWritableFileStream interface"},{"refs":[{"id":"ref-for-dom-writecommandtype-write\u2461"},{"id":"ref-for-dom-writecommandtype-write\u2462"}],"title":"2.6.1. The write() method"}],"url":"#dom-writecommandtype-write"},
"dom-writeparams-data": {"dfnID":"dom-writeparams-data","dfnText":"data","external":false,"refSections":[{"refs":[{"id":"ref-for-dom-writeparams-data"}],"title":"2.6. The FileSystemWritableFileStream interface"},{"refs":[{"id":"ref-for-dom-writeparams-data\u2460"},{"id":"ref-for-dom-writeparams-data\u2461"}],"title":"2.6.1. The write() method"}],"url":"#dom-writeparams-data"},
"dom-writeparams-position": {"dfnID":"dom-writeparams-position","dfnText":"position","external":false,"refSections":[{"refs":[{"id":"ref-for-dom-writeparams-position"},{"id":"ref-for-dom-writeparams-position\u2460"},{"id":"ref-for-dom-writeparams-position\u2461"},{"id":"ref-for-dom-writeparams-position\u2462"}],"title":"2.6. The FileSystemWritableFileStream interface"},{"refs":[{"id":"ref-for-dom-writeparams-position\u2463"},{"id":"ref-for-dom-writeparams-position\u2464"}],"title":"2.6.1. The write() method"},{"refs":[{"id":"ref-for-dom-writeparams-position\u2465"}],"title":"2.6.2. The seek() method"}],"url":"#dom-writeparams-position"},
Expand Down
Loading

0 comments on commit 3febb79

Please sign in to comment.