mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-04 20:17:09 +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)
|
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 {
|
func (w *Writer) writePNG(name string, png []byte) error {
|
||||||
if len(png) == 0 {
|
if len(png) == 0 {
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in new issue
Block a user