File: parse.test

package info (click to toggle)
libapache2-mod-rivet 3.2.2-1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 6,296 kB
  • sloc: xml: 8,554; tcl: 7,568; ansic: 7,094; sh: 5,017; makefile: 195; sql: 91; lisp: 78
file content (47 lines) | stat: -rw-r--r-- 885 bytes parent folder | download | duplicates (4)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
# $Id$

set testfilename1 parse.rvt

::tcltest::test parse-1.1 {Parse command} {
    set page [ ::http::geturl "${urlbase}$testfilename1" ]
    ::http::data $page
} {<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>Parse Test</title>
  </head>

  <body>
    <h1>Parse Test</h1>
    Hello, World

      - El Burro Sabe Ms Que T!


<p>ܸ(EUC-JP Japanese text)</p>

  </body>
</html>}

set testfilename2 parsestring.rvt

::tcltest::test parse-1.2 {Parse command} {
    set page [ ::http::geturl "${urlbase}$testfilename2" ]
    ::http::data $page
} {<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>Parse String Test</title>
  </head>

  <body>
    <h1>Parse String Test</h1>
    Hello, World

      - El Burro Sabe Ms Que T!


<p>ܸ(EUC-JP Japanese text)</p>

  </body>
</html>}