# # Test script for the Tk HTML widget # wm withdraw . if {[lsearch [namespace children] ::tcltest] == -1} { source [file dirname $argv0]/engine.tcl namespace import ::tcltest::* } ::tcltest::test html-1.0 { Verify that all of the entites are displayed correctly. } { set h [tkhtml_test_widget] $h clear $h parse {

Entity and special character test

The following list shows each entity of HTML 3.2 in four formats: (1) the name, (2) as &entity;, (3) as {, and (4) as a raw UTF-8 or Ascii character.

} ::tcltest::user-result } {0 pass} ::tcltest::test html-1.1 { Verify that all subscripting and superscripting works. } { set h [tkhtml_test_widget] $h clear $h parse {

A test of subscripting and superscripting

Here is subscript. And now superscript.

Here is subsubscript. And now supersuperscript.

Here is subsuperscript

} ::tcltest::user-result } {0 pass} ::tcltest::test html-1.2 { Verify stylistic markup. } { set h [tkhtml_test_widget] $h clear $h parse {

A test of font changing markup

This is normal text

<b>: bold text

<big>: big text

<cite>: cite text

<code>: code text

<em>: emphasized text

<i>: italic text

<kbd>: keyboard text

<s>: strike-thru text

<samp>: sample text

<small>: small text

<strike>: strike-thru text

<strong>: strong text

<tt>: teletype text

<u>: underlined text

<var>: variable text

This is normal text

} ::tcltest::user-result } {0 pass}