File: zzlast.test

package info (click to toggle)
tclxml 3.3~svn11-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,392 kB
  • sloc: ansic: 13,292; tcl: 11,656; xml: 3,269; sh: 559; makefile: 15
file content (34 lines) | stat: -rw-r--r-- 989 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Commands covered:  ::dom::DOMimplementation parse
#
# This file contains a collection of tests for one or more of the 
# TclDOM commands.  Sourcing this file into Tcl runs the tests and
# generates output for errors.  No output means no errors were found.
#
# Copyright (c) 2008 Explain
# Copyright (c) 1998-2003 Zveno Pty Ltd.
# Copyright (c) 2000 Ajuba Solutions
#
# $Id: zzlast.test,v 1.3 2003/12/03 20:18:45 balls Exp $

package require tcltest
source [file join [tcltest::workingDirectory] tcldomutils.tcl]

testPackage dom

namespace eval ::dom::zzlastTest {
    namespace import -force ::tcltest::*

    test zzlast-1.1 {cleanup after incomplete parse} -constraints {!dom_libxml2} -body {
	set part1 {<?xml version="1.0"?>}
	set part2 {<!DOCTYPE Test><Test></Test>}
	set result1 [catch {::dom::DOMImplementation parse $part1 -final 0} m1]
	catch {::dom::DOMImplementation destroy $m2}
	list $result1
    } -result 0

    cleanupTests
}

namespace delete ::dom::zzlastTest

return