repos
/
qt.tests
/ annotate_shade
summary
|
shortlog
|
log
|
tree
|
commit
|
commitdiff
|
headdiff
|
annotate
|
headblob
|
headfilediff
|
filehistory
normal
|
plain
|
shade
|
zebra
Fix test failures when a qt:application instance is already running.
Annotate for file src/application.lisp
2009-04-02 tobias
1
(in-package :qt.tests)
22:17:02 '
2
'
3
(5am:in-suite :qt.suite)
'
4
'
5
(5am:test with-app
'
6
"Tests qt:with-app and qt:with-core-app"
2009-06-05 tobias
7
(let ((nested (qt:app-p)))
2009-07-01 tobias
8
(5am:for-all ((core-p (5am:gen-one-element nil t)))
2009-06-05 tobias
9
(unless nested
07:49:09 '
10
(5am:is (eql nil (qt:app-p))))
2009-07-01 tobias
11
(if core-p
11:02:20 '
12
(qt:with-core-app
'
13
(5am:is (eql t (qt:app-p)))
'
14
(5am:is (typep (qt:app) (find-class 'qt:core-application)))
'
15
(setf (cxx:object-name (qt:app)) "core-app")) ;; test for memfault
'
16
(qt:with-app
'
17
(5am:is (eql t (qt:app-p)))
'
18
(5am:is (typep (qt:app) (find-class 'qt:application)))
'
19
(setf (cxx:object-name (qt:app)) "app")))
2009-06-05 tobias
20
(unless nested
07:49:09 '
21
(5am:is (eql nil (qt:app-p)))))))
2009-04-02 tobias
22
22:17:02 '
23
(5am:test application-nest
'
24
"Test qt:with-core-app nesting."
2009-07-01 tobias
25
(qt:with-core-app
2009-04-02 tobias
26
(5am:is (eql (qt:app) (qt:core-application.instance)))
2009-07-01 tobias
27
(qt:with-core-app
2009-05-24 tobias
28
(5am:is (eql (qt:app) (qt:core-application.instance))))
14:14:11 '
29
(5am:is (eql (qt:app) (qt:core-application.instance)))))
2009-04-02 tobias
30
2009-05-31 tobias
31
(5am:test application-widgetlist
22:41:10 '
32
"Test cxx:all-widgets"
2009-07-01 tobias
33
(qt:with-app
11:02:20 '
34
(5am:is (= 0 (length (cxx:all-widgets (qt:app)))))
'
35
(let ((w (make-instance 'qt:widget)))
'
36
(5am:is (find w (cxx:all-widgets (qt:app)))))))