Changeset 6066 for trunk


Ignore:
Timestamp:
Feb 27, 2016, 7:51:53 PM (9 years ago)
Author:
ldelgass
Message:

Fix isosurface viewer test (hostlist argument was removed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/test/vtkisosurfaceviewer.test

    r5687 r6066  
    11# Commands covered:
    2 # Rappture::Gauge
    3 # Rappture::Gauge::value
     2# Rappture::VtkIsosurfaceViewer
    43#
    54# This file contains a collection of tests for one of the Rappture Tcl
     
    87#
    98# ======================================================================
    10 # AUTHOR:  Derrick Kearney, Purdue University
    11 # Copyright (c) 2004-2012  HUBzero Foundation, LLC
     9# AUTHORS:
     10#   Derrick Kearney, Purdue University
     11#   Leif Delgass, Purdue University
     12# Copyright (c) 2004-2016  HUBzero Foundation, LLC
    1213#
    1314# See the file "license.terms" for information on usage and redistribution
     
    1718if {[lsearch [namespace children] ::tcltest] == -1} {
    1819    package require tcltest
     20    package require Rappture
    1921    package require RapptureGUI
    2022    namespace import -force ::tcltest::*
    2123}
    22 
    23 set servers [Rappture::VisViewer::GetServerList "vtkvis"]
    24 
    25 Rappture::VtkIsosurfaceViewer .#auto $servers
    2624
    2725#----------------------------------------------------------
     
    3230#----------------------------------------------------------
    3331test vtkisosurfaceviewer.constructor.1 {
    34     value command, 0 args, missing server list error
     32    constructor, 0 args, auto named
    3533} -setup {
    3634} -body  {
    3735    list [catch {Rappture::VtkIsosurfaceViewer .#auto} msg] $msg
    3836} -cleanup {
    39 } -result {1 {wrong # args: should be "::Rappture::VtkIsosurfaceViewer .vtkIsosurfaceViewer1 hostlist ?arg arg ...?"}}
     37    destroy .vtkIsosurfaceViewer0
     38} -result {0 .vtkIsosurfaceViewer0}
    4039
    4140test vtkisosurfaceviewer.constructor.2 {
    42     value command, 1 args empty hostlist, empty hostlist uses visviewer defaults
     41    value command, explicit name, -plotbackground option
    4342} -setup {
    4443} -body  {
    45     catch {Rappture::VtkIsosurfaceViewer .#auto {}} msg
     44    catch {Rappture::VtkIsosurfaceViewer .foo -plotbackground red} msg
    4645} -cleanup {
     46    destroy .foo
    4747} -result {0}
    4848
    4949test vtkisosurfaceviewer.constructor.3 {
    50     value command, 1 args valid hostlist
     50    value command, bad option
    5151} -setup {
    5252} -body  {
    53     catch {Rappture::VtkIsosurfaceViewer .#auto $servers} msg
     53    list [catch {Rappture::VtkIsosurfaceViewer .foo -nonexistent foo} msg] $msg
    5454} -cleanup {
    55 } -result {0}
    56 
    57 #test vtkisosurfaceviewer.constructor.5 {
    58 #    value command, 1 args valid hostlist
    59 #} -setup {
    60 #} -body  {
    61 #    set w [Rappture::VtkIsosurfaceViewer .#auto $servers]
    62 #} -cleanup {
    63 #    destroy $w
    64 #    catch {unset w}
    65 #} -result {}
     55    destroy .foo
     56} -result {1 {unknown option "-nonexistent"}}
    6657
    6758::tcltest::cleanupTests
Note: See TracChangeset for help on using the changeset viewer.