0027146: Create command checkplatform
[occt.git] / tests / bugs / vis / bug26424
CommitLineData
c6ad5e5f 1puts "========"
2puts "OCC26424"
3puts "========"
4puts ""
5################################################################
6# Text is not rendered within core profile on Windows platform
7################################################################
8
9vcaps -core
10vinit View1
11vclear
12vaxo
13vzbufftrihedron
14
863f782a 15if { [checkplatform -windows] } {
c6ad5e5f 16 # Windows platform
17 set ok_color "GRAY52"
863f782a 18} else {
19 # Linux platform
20 set ok_color "GRAY85"
c6ad5e5f 21}
22
23set bug_info [vreadpixel 71 350 rgb name]
24if {$bug_info != $ok_color} {
25 puts "ERROR: OCC26424 is reproduced. Trihedron does non have text labels."
26}
27
5747059b 28checkview -screenshot -3d -path ${imagedir}/${test_image}.png