0031918: Application Framework - New binary format for fast reading part of OCAF...
[occt.git] / tests / caf / progress / C1
CommitLineData
6d8f9f4a 1#INTERFACE CAF
2# Message_ProgressIndicator
3#
4# Testing attribute: TDocStd_Application
5#
6# Testing command: Save
7#
8
9puts "caf009-C1"
10
11set bDoc [CreateBinDoc]
12
13# Open document
14if {${bDoc} == "" } {
15 puts "Save command for binary files: Error, cannot open file"
16 return
17}
18Open ${bDoc} Doc
19
20# Fill the document by another box
21box b 1 1 1
22SetShape Doc 0:2 b
23
24# Configurate XProgress
7e785937 25XProgress +t
6d8f9f4a 26
27# Save
28set output [Save Doc]
29
30# Close the document
31Close Doc
32
33# Test data
d5c71e20 34set ctr { "0%" "Writing document" "Writing sub tree" "100%" }
6d8f9f4a 35
36foreach data ${ctr} {
37 if ![regexp $data $output] {
38 puts "Error: Save command for binary files: Mismatch data on '$data'"
39 break
40 }
41}