forked from KolibriOS/kolibrios
[KERNEL][TEST] Add example keyboard and screenshot test
git-svn-id: svn://kolibrios.org@9258 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
41f68b6632
commit
c1e1215115
18
kernel/trunk/test/open_cpu/test.py
Normal file
18
kernel/trunk/test/open_cpu/test.py
Normal file
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/python3
|
||||
import sys
|
||||
|
||||
sys.path.append('../')
|
||||
import common
|
||||
|
||||
def run():
|
||||
# Just an example test, disabled cause it's 3+ seconds long
|
||||
return
|
||||
test = common.run()
|
||||
test.wait(3)
|
||||
test.take_screenshot("before.ppm")
|
||||
test.send_keys("ctrl-alt-delete")
|
||||
test.wait(0.25)
|
||||
test.take_screenshot("after.ppm")
|
||||
test.images_diff("before.ppm", "after.ppm", expect = True)
|
||||
test.kill()
|
||||
|
Loading…
Reference in New Issue
Block a user