class
Opal::Testing::FrameRecorder
- Opal::Testing::FrameRecorder
- Reference
- Object
Overview
React Ink-inspired discrete frame history recorder. Records successive rendered frames over time, allowing tests to verify transition sequences, loading animations, and frame-by-frame UI diffs.
Defined in:
opal/testing/frame_recorder.crConstructors
Instance Method Summary
- #buffers : Array(UI::Buffer)
-
#clear : self
Clears all recorded history.
-
#empty? : Bool
Returns true if no frames have been recorded.
- #frames : Array(String)
-
#last_buffer : UI::Buffer | Nil
Returns the most recently recorded buffer, or nil if none.
-
#last_frame : String
Returns the most recently recorded frame string, or empty string if none.
-
#record(buffer : UI::Buffer) : self
Records a snapshot of the current UI::Buffer.
-
#record(text : String) : self
Records a plain text or ANSI frame string.
-
#size : Int32
Returns the number of recorded frames.
Constructor Detail
Instance Method Detail
Records a snapshot of the current UI::Buffer.