mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-17 19:25:39 +00:00
* assert is handled specially by the type checker so we don't want to have duplicate self.check / assert * The original reason for TestCase.check was to print the assertion message but this can be handled by checking for the AssertionError exception
16 lines
398 B
Python
16 lines
398 B
Python
import renderdoc as rd
|
|
import rdtest
|
|
|
|
|
|
class GL_Empty_Capture(rdtest.TestCase):
|
|
demos_test_name = 'GL_Empty_Capture'
|
|
demos_frame_cap = 100
|
|
|
|
def check_capture(self):
|
|
actions = self.controller.GetRootActions()
|
|
|
|
assert len(actions) == 1
|
|
assert 'End' in actions[0].customName
|
|
# EID 1 is the implicit context activation
|
|
assert actions[0].eventId == 2
|