1 ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
5 ;;;; Name: lml-tests.lisp
6 ;;;; Purpose: lml tests file
7 ;;;; Author: Kevin M. Rosenberg
8 ;;;; Date Started: Apr 2003
10 ;;;; $Id: tests.lisp,v 1.1 2003/06/07 02:26:07 kevin Exp $
12 ;;;; This file is Copyright (c) 2000-2002 by Kevin M. Rosenberg
14 ;;;; *************************************************************************
17 (defpackage #:lml-tests
18 (:use #:lml #:cl #:rtest))
19 (in-package #:lml-tests)
24 (with-output-to-string (s)
25 (let ((*html-output* s))
30 (with-output-to-string (s)
31 (let ((*html-output* s))
32 (span-c foo "Foo Bar")))
33 "<span class=\"foo\">Foo Bar</span>")
36 (with-output-to-string (s)
37 (let ((*html-output* s))
38 (table-c foo :style "width:80%" "Foo" " Bar" " test")))
39 "<table class=\"foo\" style=\"width:80%\">Foo Bar test</table>")
42 (with-output-to-string (s)
43 (let ((*html-output* s)
49 (with-output-to-string (s)
50 (let ((*html-output* s)
52 (img "http://localhost/test.png" :width a)))
53 "<img src=\"http://localhost/test.png\" width=\"0.75\" />")
56 (with-output-to-string (s)
57 (let ((*html-output* s))
60 "<div>Start<p>Testing</p></div>")
63 (with-output-to-string (s)
64 (let ((*html-output* s))
65 (div :style "font-weight:bold"
67 (p-c a_class "Testing"))))
68 "<div style=\"font-weight:bold\">Start<p class=\"a_class\">Testing</p></div>")