summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-05-26 11:03:13 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-05-26 11:03:13 +0100
commit45ac455618d67853fa40e54c5e4416e963224033 (patch)
tree2abdb8036cd9e3e7994078fa6a8674adf39ba0e5
parent8dd9b81dbefb8b8afc34153285a3e39323d2e49a (diff)
make this more foolproof if run outside build env
-rw-r--r--smoketestdoc/data/Global.xml20
1 files changed, 10 insertions, 10 deletions
diff --git a/smoketestdoc/data/Global.xml b/smoketestdoc/data/Global.xml
index ef178e15a..42b76f4c5 100644
--- a/smoketestdoc/data/Global.xml
+++ b/smoketestdoc/data/Global.xml
@@ -532,7 +532,7 @@ Sub SetGlobalOptionsDialog ()
REM create dialog control
gOptionsDialog = CreateUnoDialog( oInputStreamProvider )
- if Environ(&quot;WITH_BINFILTER&quot;) = &quot;NO&quot; then
+ if Environ(&quot;WITH_BINFILTER&quot;) &lt;&gt; &quot;YES&quot; then
oControl = gOptionsDialog.getControl(&quot;cbOpen50Test&quot;)
oControl.Model.setPropertyValue(&quot;Enabled&quot;, FALSE)
End If
@@ -593,10 +593,10 @@ Sub GetOptions
gOptionsDialog.getControl(&quot;cbDatabaseTest&quot;).setState( -( GetUserFieldState (cUserFieldTestDatabase, gOutputDoc)))
gOptionsDialog.getControl(&quot;cbExtensionTest&quot;).setState( -( GetUserFieldState (cUserFieldTestExtension, gOutputDoc)))
gOptionsDialog.getControl(&quot;cbSaveOpenXMLTest&quot;).setState( -( GetUserFieldState (cUserFieldTestOpenSaveXML, gOutputDoc)))
- if Environ(&quot;WITH_BINFILTER&quot;) = &quot;NO&quot; then
- gOptionsDialog.getControl(&quot;cbOpen50Test&quot;).setState(0)
- else
+ if Environ(&quot;WITH_BINFILTER&quot;) = &quot;YES&quot; then
gOptionsDialog.getControl(&quot;cbOpen50Test&quot;).setState( -( GetUserFieldState (cUserFieldTestOpen50, gOutPutDoc)))
+ else
+ gOptionsDialog.getControl(&quot;cbOpen50Test&quot;).setState(0)
End If
gOptionsDialog.getControl(&quot;cbSaveOpen8Test&quot;).setState( -( GetUserFieldState (cUserFieldTestOpenSave8, gOutputDoc)))
gOptionsDialog.getControl(&quot;cbTerminateAfterTest&quot;).setState( -( GetUserFieldState (cUserFieldTestTerminateAfterTest, gOutputDoc)))
@@ -615,10 +615,10 @@ Sub ReadOptions
bMakeDBTest = GetUserFieldState (cUserFieldTestDatabase, gOutputDoc)
bMakeExtensionTest = GetUserFieldState (cUserFieldTestExtension, gOutputDoc)
bMakeSaveOpenXMLTest = GetUserFieldState (cUserFieldTestOpenSaveXML, gOutputDoc)
- if Environ(&quot;WITH_BINFILTER&quot;) = &quot;NO&quot; then
- bMakeOpen50Test = false
- else
+ if Environ(&quot;WITH_BINFILTER&quot;) = &quot;YES&quot; then
bMakeOpen50Test = GetUserFieldState (cUserFieldTestOpen50, gOutPutDoc)
+ else
+ bMakeOpen50Test = false
End If
bMakeSaveOpen8Test = GetUserFieldState (cUserFieldTestOpenSave8, gOutputDoc)
bMakeTerminateAfterTest = GetUserFieldState (cUserFieldTestTerminateAfterTest, gOutputDoc)
@@ -643,10 +643,10 @@ Sub SetDefaultOptions
End If
bMakeSaveOpenXMLTest = true
REM Disable StarOffice 5.0 tests in case binfilter has not been included
- if Environ(&quot;WITH_BINFILTER&quot;) = &quot;NO&quot; then
- bMakeOpen50Test = false
- else
+ if Environ(&quot;WITH_BINFILTER&quot;) = &quot;YES&quot; then
bMakeOpen50Test = true
+ else
+ bMakeOpen50Test = false
End If
bMakeSaveOpen8Test = true
bMakeTerminateAfterTest = false