-
Notifications
You must be signed in to change notification settings - Fork 61
/
E2ECommonTestHash.razor
28 lines (24 loc) · 1.31 KB
/
E2ECommonTestHash.razor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@inherits E2ECommonTestHashBase
<h1>CommonIndex Test</h1>
<input type="file" @ref=inputElement id="file-input" />
<br />
<br />
<input type="checkbox" @bind=DebugOutput id="use-debug-output-check" />
<label for="useDebugOutput">Debug output</label>
<br />
<input type="checkbox" @bind=UseBufferSize id="use-buffer-size-check" />
<label for="useBufferSizeCheck">Use buffer size</label>
<input type="number" @bind=BufferSize alt="buffersize" placeholder="Buffer size" id="buffer-size" />
<br />
<input type="checkbox" @bind=OutputString id="dump-file-content-check" />
<label for="dumpFileContent">Dump file content</label>
<br />
<br />
<button @onclick=HashFile class="btn btn-primary" id="chunked-button">Hash SHA256 of file - chunked</button>
<button @onclick=HashFileRam style="margin-left:20px;" class="btn btn-primary" id="full-ram-button">Hash SHA256 of file - full-ram</button>
<button @onclick=HashFileOffset style="margin-left:20px;" class="btn btn-primary" id="chunked-offset-button">Hash SHA256 of file - chunked with offset</button>
<button @onclick=HashFileRamOffset style="margin-left:20px;" class="btn btn-primary" id="full-ram-offset-button">Hash SHA256 of file - full-ramw ith offset</button>
<br />
<br />
<h3>Log output</h3>
<textarea style="max-width: 100%;" cols="50" rows="20" id="debug-output">@Output</textarea>