Files
Nim/tests/stdlib/tdialogs.nim
def e0ae9f5248 Clean up tests/stdlib
2 tests still fail:
- tircbot would need a benign pragma because of the locks
- tgetfileinfo uses os.getFileInfo() on nil, which segfaults instead of
  throwing an exception as the tester expects
2015-02-04 20:24:01 +01:00

18 lines
354 B
Nim

# Test the dialogs module
import dialogs, gtk2
gtk2.nimrod_init()
var x = chooseFilesToOpen(nil)
for a in items(x):
writeln(stdout, a)
info(nil, "start with an info box")
warning(nil, "now a warning ...")
error(nil, "... and an error!")
writeln(stdout, chooseFileToOpen(nil))
writeln(stdout, chooseFileToSave(nil))
writeln(stdout, chooseDir(nil))