X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests.lisp;h=31bd7fafeb8bf239182e9e736c8de67ca238d285;hb=ad24378821413cd0ca0f4f13cc6cc8945fc593ac;hp=d31ac172f9582751ef36aa489cefaa3c52076335;hpb=04f829aab1e5caaefe60391f756e7a5db2d1282b;p=hyperobject.git diff --git a/tests.lisp b/tests.lisp index d31ac17..31bd7fa 100644 --- a/tests.lisp +++ b/tests.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Apr 2003 ;;;; -;;;; $Id: tests.lisp,v 1.5 2003/05/14 05:29:48 kevin Exp $ +;;;; $Id: tests.lisp,v 1.7 2003/05/14 08:30:38 kevin Exp $ ;;;; ;;;; This file is Copyright (c) 2000-2003 by Kevin M. Rosenberg ;;;; ************************************************************************* @@ -25,6 +25,7 @@ :value-type (varchar 30) :value-constraint stringp :hyperlink find-person-by-last-name + :hyperlink-parameters (("narrow" . "yes")) :null-allowed nil) (full-name :value-type string :stored nil) (dob :initarg :dob :accessor dob @@ -68,7 +69,8 @@ :value-constraint stringp) (phone-number :initarg :phone-number :accessor phone-number :value-type (varchar 16) - :value-constraint stringp)) + :value-constraint stringp + :hyperlink search-phone-number)) (:metaclass hyperobject-class) (:user-name "Phone Number") (:default-initargs :title nil :phone-number nil) @@ -102,11 +104,11 @@ (rem-all-tests) -(deftest p1 (view-to-string mary) " Person: +(deftest p1 (view-to-string mary) "Person: Mary Jackson Thu, 4 May 2000 03:02:01 Style & Grace ") -(deftest p2 (view-to-string mary :subobjects t) " Person: +(deftest p2 (view-to-string mary :subobjects t) "Person: Mary Jackson Thu, 4 May 2000 03:02:01 Style & Grace Addresses: Home 321 Shady Lane @@ -121,60 +123,279 @@ ") (deftest p3 (view-to-string mary :category :compact-text-labels) - " Person: + "Person: first-name Mary last-name Jackson dob Thu, 4 May 2000 03:02:01 resume Style & Grace ") (deftest p4 (view-to-string mary :subobjects t :category :html-labels) - "

Person: