⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usual.test

📁 这是一个Linux下的集成开发环境
💻 TEST
字号:
# This file is a Tcl script to test out all of the "usual" options# for all of the [incr Widgets].  It looks for other tests in this# directory, and tries to create a mega-widget with each of these# as a component.  If there are any problems with "usual" definitions,# they will be found here.## See the file "license.terms" for information on usage and redistribution# of this file, and for a DISCLAIMER OF ALL WARRANTIES.## @(#) $Id: usual.test,v 1.1 2003/02/05 10:54:15 mdejong Exp $package require tcltestnamespace import -force ::tcltest::*package require Iwidgets 3.0if {[string compare test [info procs test]] == 1} {    source defs}wm geometry . {}raise .# ----------------------------------------------------------------------#  Create a new mega-widget class that we can use to add other#  classes as components.# ----------------------------------------------------------------------test usual-1.1 {create a mega-widget that we can add components to} {    itcl::class TestUsual {        inherit itk::Widget        method do {cmd} {            eval $cmd        }    }    TestUsual .testUsual} {.testUsual}# ----------------------------------------------------------------------#  Now, scan through all of the tests in this directory and look#  for mega-widgets.  Add each mega-widget to the test class.# ----------------------------------------------------------------------set unique 0foreach file [glob *.test] {    set widget [file rootname [file tail $file]]    if {$widget != "usual"} {        set name "c[incr unique]"        test usual-1.2.$name "verify \"usual\" options for $widget" {            .testUsual do [format {                itk_component add %s {                    iwidgets::%s $itk_interior.%s                }            } $name $widget $name]        } $name    }}::tcltest::cleanupTestsexit

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -