repos
/
kde.tests
/ annotate_shade
summary
|
shortlog
|
log
|
tree
|
commit
|
commitdiff
|
headdiff
|
annotate
|
headblob
|
headfilediff
|
filehistory
normal
|
plain
|
shade
|
zebra
initial import
Annotate for file src/click.lisp
2009-04-02 tobias
1
(in-package :kde.tests)
22:18:27 '
2
'
3
(5am:in-suite :kde.suite)
'
4
'
5
(defclass my-widget (kde:push-button)
'
6
()
'
7
(:metaclass smoke::smoke-wrapper-class))
'
8
'
9
(5am:test click-test
'
10
"Test clicking a button."
'
11
(kde::with-kde ("hello" "hello-world" "0.0.1")
'
12
(let ((widget (make-instance 'my-widget))
'
13
(click-count 0))
'
14
(qt:connect-function widget "clicked()"
'
15
#'(lambda ()
'
16
(incf click-count)))
'
17
'
18
(cxx:set-text widget "Click Me")
'
19
'
20
(5am:is (= 0 click-count))
'
21
(qt.test:test.mouse-click widget qt:+left-button+)
'
22
(5am:is (= 1 click-count)))))