summaryrefslogtreecommitdiff
path: root/forms/qa/integration/forms
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2011-03-21 15:30:43 +0100
committerMichael Meeks <michael.meeks@suse.com>2012-11-27 12:55:08 +0000
commit0c696c1628a0271242f4a89d343c7e125f493726 (patch)
treeb68e2580828dd40a03cdb8e193d8bb4fcfdccbdc /forms/qa/integration/forms
parentfc61f0dbb9aabdfd2345c36e3a6fb70b3d72a323 (diff)
fs34b: #i117459# fixed the test - do not create multiple children of a document, this (rightfully) throws nowadays
Diffstat (limited to 'forms/qa/integration/forms')
-rw-r--r--forms/qa/integration/forms/XMLFormSettings.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/forms/qa/integration/forms/XMLFormSettings.java b/forms/qa/integration/forms/XMLFormSettings.java
index 17bbd5a35b95..fd54b08c2efa 100644
--- a/forms/qa/integration/forms/XMLFormSettings.java
+++ b/forms/qa/integration/forms/XMLFormSettings.java
@@ -85,17 +85,14 @@ public class XMLFormSettings extends complexlib.ComplexTestCase
// create a simple structure in the DOM tree: an element with two attributes
String[] modelNames = m_document.getXFormModelNames();
m_defaultModel = m_document.getXFormModel( modelNames[0] );
- Instance defaultInstance = m_defaultModel.getDefaultInstance();
+ final Instance defaultInstance = m_defaultModel.getDefaultInstance();
+ // remove the default root node
+ defaultInstance.removeNode( "instanceData" );
+ // create test structures
XNode stringElement = defaultInstance.createElement( "stringElement" );
XNode booleanAttrib = defaultInstance.createAttribute( stringElement, "booleanAttribute", "true" );
XNode dateAttrib = defaultInstance.createAttribute( stringElement, "dateAttribute" );
- // when it comes to saving and loading, only one child of the root element of the instance
- // is handled (is this a bug? see xmloff/source/xforms/XFormsInstanceContext.cxx, method
- // CreateChildContext).
- // So, we remove the default node of the instance which it has all the time
- defaultInstance.removeNode( "instanceData" );
-
assure( "booleanAttrib's parent is wrong",
UnoRuntime.areSame( stringElement, booleanAttrib.getParentNode() ) );
assure( "dateAttrib's parent is wrong",