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

📄 imgbmap.test

📁 linux系统下的音频通信
💻 TEST
📖 第 1 页 / 共 2 页
字号:
	   0xff, 0xff};    }    list [image width i1] [image height i1]} {15 14}test imageBmap-5.11 {GetBitmapData procedure} {    eval image delete [image names]    .c delete all    image create bitmap i1 -data {	_height 14 _width 15	char {	   0xff, 0xff, 0xff, 0x81, 0xff, 0x81, 0xff, 0x81, 0xff, 0x81,	   0xff, 0x81, 0xff, 0x81, 0xff, 0xff, 0xff, 0xff, 0xff, 0x81,	   0xff, 0x81, 0xff, 0x81, 0xff, 0x81, 0xff, 0x81, 0xff, 0x81,	   0xff, 0xff}    }    list [image width i1] [image height i1]} {15 14}test imageBmap-5.12 {GetBitmapData procedure} {    eval image delete [image names]    .c delete all    list [catch {image create bitmap i1 -data {	#define foo2_height 14	#define foo2_width 15	static short foo2_bits[] = {	   0xff, 0xff, 0xff, 0x81, 0xff, 0x81, 0xff, 0x81, 0xff, 0x81,	   0xff, 0x81, 0xff, 0x81, 0xff, 0xff, 0xff, 0xff, 0xff, 0x81,	   0xff, 0x81, 0xff, 0x81, 0xff, 0x81, 0xff, 0x81, 0xff, 0x81,	   0xff, 0xff};    }} msg] $msg} {1 {format error in bitmap data; looks like it's an obsolete X10 bitmap file}}test imageBmap-5.13 {GetBitmapData procedure} {    eval image delete [image names]    .c delete all    list [catch {image create bitmap i1 -data {	#define foo2_height 16	#define foo2_width 16	static char foo2_bits[] =	   0xff, 0xff, 0xff, 0x81, 0xff, 0x81, 0xff, 0x81, 0xff, 0x81,	   0xff, 0x81, 0xff, 0x81, 0xff, 0xff, 0xff, 0xff, 0xff, 0x81,	   0xff, 0x81, 0xff, 0x81, 0xff, 0x81, 0xff, 0x81, 0xff, 0x81,	   0xff, 0xff;    }} msg] $msg} {1 {format error in bitmap data}}test imageBmap-5.14 {GetBitmapData procedure} {    eval image delete [image names]    .c delete all    list [catch {image create bitmap i1 -data {	#define foo2_width 16	static char foo2_bits[] = {	   0xff, 0xff, 0xff, }}} msg] $msg} {1 {format error in bitmap data}}test imageBmap-5.15 {GetBitmapData procedure} {    eval image delete [image names]    .c delete all    list [catch {image create bitmap i1 -data {	#define foo2_height 16	static char foo2_bits[] = {	   0xff, 0xff, 0xff, }}} msg] $msg} {1 {format error in bitmap data}}test imageBmap-5.16 {GetBitmapData procedure} {    eval image delete [image names]    .c delete all    list [catch {image create bitmap i1 -data {	#define foo2_height 16	#define foo2_width 16	static char foo2_bits[] = {	   0xff, 0xff, 0xff, 0x81, 0xff, 0x81, 0xff, 0x81, 0xff, 0x81,	   0xff, 0x81, 0xff, 0x81, 0xff, 0xff, 0xff, 0xff, 0xff, 0x81,	   0xff, 0x81, 0xff, 0x81, 0xff, 0x81, 0xff, 0x81, 0xff, 0x81,	   0xff, foo};    }} msg] $msg} {1 {format error in bitmap data}}test imageBmap-5.17 {GetBitmapData procedure} {    eval image delete [image names]    .c delete all    list [catch {image create bitmap i1 -data "	#define foo2_height 16	#define foo2_width 16	static char foo2_bits[] = \{	   0xff, 0xff, 0xff, 0x81, 0xff, 0x81, 0xff, 0x81, 0xff, 0x81,	   0xff, 0x81, 0xff, 0x81, 0xff, 0xff, 0xff, 0xff, 0xff, 0x81,	   0xff, 0x81, 0xff, 0x81, 0xff, 0x81, 0xff, 0x81, 0xff, 0x81,	   0xff    "} msg] $msg} {1 {format error in bitmap data}}test imageBmap-6.1 {NextBitmapWord procedure} {    eval image delete [image names]    .c delete all    list [catch {image create bitmap i1 -data {1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890}} msg] $msg} {1 {format error in bitmap data}}test imageBmap-6.2 {NextBitmapWord procedure} {    eval image delete [image names]    .c delete all    makeFile {1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890} foo3.bm    list [catch {image create bitmap i1 -file foo3.bm} msg] $msg} {1 {format error in bitmap data}}test imageBmap-6.3 {NextBitmapWord procedure} {    eval image delete [image names]    .c delete all    makeFile {   } foo3.bm    list [catch {image create bitmap i1 -file foo3.bm} msg] $msg} {1 {format error in bitmap data}}removeFile foo3.bmeval image delete [image names].c delete allimage create bitmap i1test imageBmap-7.1 {ImgBmapCmd procedure} {    list [catch {i1} msg] $msg} {1 {wrong # args: should be "i1 option ?arg arg ...?"}}test imageBmap-7.2 {ImgBmapCmd procedure, "cget" option} {    list [catch {i1 cget} msg] $msg} {1 {wrong # args: should be "i1 cget option"}}test imageBmap-7.3 {ImgBmapCmd procedure, "cget" option} {    list [catch {i1 cget a b} msg] $msg} {1 {wrong # args: should be "i1 cget option"}}test imageBmap-7.4 {ImgBmapCmd procedure, "cget" option} {    i1 co -foreground #123456    i1 cget -foreground} {#123456}test imageBmap-7.5 {ImgBmapCmd procedure, "cget" option} {    list [catch {i1 cget -stupid} msg] $msg} {1 {unknown option "-stupid"}}test imageBmap-7.6 {ImgBmapCmd procedure} {    llength [i1 configure]} {6}test imageBmap-7.7 {ImgBmapCmd procedure} {    i1 co -foreground #001122    i1 configure -foreground} {-foreground {} {} #000000 #001122}test imageBmap-7.8 {ImgBmapCmd procedure} {    list [catch {i1 configure -gorp} msg] $msg} {1 {unknown option "-gorp"}}test imageBmap-7.9 {ImgBmapCmd procedure} {    list [catch {i1 configure -foreground #221100 -background} msg] $msg} {1 {value for "-background" missing}}test imageBmap-7.10 {ImgBmapCmd procedure} {    list [catch {i1 gorp} msg] $msg} {1 {bad option "gorp": must be cget or configure}}test imageBmap-8.1 {ImgBmapGet/Free procedures, shared instances} {    eval image delete [image names]    .c delete all    image create bitmap i1 -data $data1    .c create image 50 100 -image i1 -tags i1.1    .c create image 150 100 -image i1 -tags i1.2    .c create image 250 100 -image i1 -tags i1.3    update    .c delete i1.1    i1 configure -background black    update    .c delete i1.2    i1 configure -background white    update    .c delete i1.3    i1 configure -background black    update    image delete i1} {}test imageBmap-9.1 {ImgBmapDisplay procedure, nothing to display} {    proc bgerror args {}    eval image delete [image names]    .c delete all    image create bitmap i1 -data $data1    .c create image 50 100 -image i1 -tags i1.1    i1 configure -data {}    update} {}test imageBmap-9.2 {ImgBmapDisplay procedure, nothing to display} {    proc bgerror args {}    eval image delete [image names]    .c delete all    image create bitmap i1 -data $data1    .c create image 50 100 -image i1 -tags i1.1    i1 configure -foreground bogus    update} {}if {[info exists bgerror]} {    rename bgerror {}}test imageBmap-10.1 {ImgBmapFree procedure, resource freeing} {    eval image delete [image names]    .c delete all    image create bitmap i1 -data $data1 -maskdata $data2 -foreground #112233 \	    -background #445566    .c create image 100 100 -image i1    update    .c delete all    image delete i1} {}test imageBmap-10.2 {ImgBmapFree procedures, unlinking} {    eval image delete [image names]    .c delete all    image create bitmap i1 -data $data1 -maskdata $data2 -foreground #112233 \	    -background #445566    .c create image 100 100 -image i1    button .b1 -image i1    button .b2 -image i1    button .b3 -image i1    pack .b1 .b2 .b3    update    destroy .b2    update    destroy .b3    update    destroy .b1    update    .c delete all} {}test imageBmap-11.1 {ImgBmapDelete procedure} {    image create bitmap i2 -file foo.bm -maskfile foo2.bm    image delete i2    info command i2} {}test imageBmap-11.2 {ImgBmapDelete procedure} {    image create bitmap i2 -file foo.bm -maskfile foo2.bm    rename i2 newi2    set x [list [info command i2] [info command new*] [newi2 cget -file]]    image delete i2    lappend x [info command new*]} {{} newi2 foo.bm {}}test imageBmap-12.1 {ImgBmapCmdDeletedProc procedure} {    image create bitmap i2 -file foo.bm -maskfile foo2.bm    rename i2 {}    list [lsearch -exact [image names] i2] [catch {i2 foo} msg] $msg} {-1 1 {invalid command name "i2"}}removeFile foo.bmremoveFile foo2.bmdestroy .ceval image delete [image names]

⌨️ 快捷键说明

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