mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
refactor(trace): drop WriteScreenshotAfter
Only one screenshot per step is captured now (concurrently with hierarchy after settle), so the -after.png variant is unused.
This commit is contained in:
1 parent
f9512354ed
commit
095b58afcf
1 file changed
-7
@@ -125,13 +125,6 @@ func (w *Writer) WriteScreenshot(stepIndex int, png []byte) error {
|
||||
return w.writePNG(fmt.Sprintf("step-%05d.png", stepIndex), png)
|
||||
}
|
||||
|
||||
// WriteScreenshotAfter writes the post-action screenshot for a step.
|
||||
// Callers use this after applyAction + waitForIdle so the UI can show a
|
||||
// before/after pair.
|
||||
func (w *Writer) WriteScreenshotAfter(stepIndex int, png []byte) error {
|
||||
return w.writePNG(fmt.Sprintf("step-%05d-after.png", stepIndex), png)
|
||||
}
|
||||
|
||||
func (w *Writer) writePNG(name string, png []byte) error {
|
||||
if len(png) == 0 {
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user