X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests.lisp;h=48139dbb53fd6c59bdb68eb6bb5edeb15fb823c1;hb=e52c58412603bcb1517da095cbbc3ac2dd1d270f;hp=dd8035a6f8f5d456df37bf7998ea96eb4debe311;hpb=c03522d6e56c265fc5b7d859d0a8b324805ddf73;p=hyperobject.git diff --git a/tests.lisp b/tests.lisp index dd8035a..48139db 100644 --- a/tests.lisp +++ b/tests.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Apr 2003 ;;;; -;;;; $Id: tests.lisp,v 1.6 2003/05/14 05:38:09 kevin Exp $ +;;;; $Id: tests.lisp,v 1.9 2003/07/29 20:49:05 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) @@ -120,61 +122,8 @@ Fax 123-0005 ") -(deftest p3 (view-to-string mary :category :compact-text-labels) +(deftest p3 (view-to-string mary :vid :compact-text-labels) "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:

-") - -(deftest p5 (view-to-string mary :subobjects t :category :xml-link-labels) - "Person: - - Addresss: -
<![CDATA[Home]]> - Phone Numbers: - <![CDATA[Voice]]> - - <![CDATA[Fax]]> - - -
-
<![CDATA[Office]]> - Phone Numbers: - <![CDATA[Main line]]> - - <![CDATA[Staff line]]> - - <![CDATA[Fax]]> - - -
-
-
-
-")