Test QList<QWidget*> to sequence conversion.
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-07-01 tobias 7 (5am:for-all ((core-p (5am:gen-one-element nil t)))
2009-06-05 tobias 8 (5am:is (eql nil (qt:app-p)))
2009-07-01 tobias 9 (if core-p
11:02:20 ' 10 (qt:with-core-app
' 11 (5am:is (eql t (qt:app-p)))
' 12 (5am:is (typep (qt:app) (find-class 'qt:core-application)))
' 13 (setf (cxx:object-name (qt:app)) "core-app")) ;; test for memfault
' 14 (qt:with-app
' 15 (5am:is (eql t (qt:app-p)))
' 16 (5am:is (typep (qt:app) (find-class 'qt:application)))
' 17 (setf (cxx:object-name (qt:app)) "app")))
2009-06-05 tobias 18 (5am:is (eql nil (qt:app-p)))))
2009-04-02 tobias 19
22:17:02 ' 20 (5am:test application-nest
' 21 "Test qt:with-core-app nesting."
2009-07-01 tobias 22 (qt:with-core-app
2009-04-02 tobias 23 (5am:is (eql (qt:app) (qt:core-application.instance)))
2009-07-01 tobias 24 (qt:with-core-app
2009-05-24 tobias 25 (5am:is (eql (qt:app) (qt:core-application.instance))))
14:14:11 ' 26 (5am:is (eql (qt:app) (qt:core-application.instance)))))
2009-04-02 tobias 27
2009-05-31 tobias 28 (5am:test application-widgetlist
22:41:10 ' 29 "Test cxx:all-widgets"
' 30 (qt:with-app
' 31 (5am:is (= 0 (length (cxx:all-widgets (qt:app)))))
' 32 (let ((w (make-instance 'qt:widget)))
' 33 (5am:is (find w (cxx:all-widgets (qt:app)))))))