initial import
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"
' 7 (5am:for-all ((core-p (5am:gen-one-element nil t)))
' 8 (5am:is (eql nil (qt:app-p)))
' 9 (if core-p
' 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 (cxx:set-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 (cxx:set-object-name (qt:app) "app")))
' 18 (5am:is (eql nil (qt:app-p)))))
' 19
' 20 (5am:test application-nest
' 21 "Test qt:with-core-app nesting."
' 22 (qt:with-core-app
' 23 (5am:is (eql (qt:app) (qt:core-application.instance)))
' 24 (qt:with-core-app
' 25 (5am:is (eql (qt:app) (qt:core-application.instance))))))
' 26