Commit dfe0654c authored by urbant's avatar urbant
Browse files

STF 521: negative tests for the form attribute removed. There's no reason why...

STF 521: negative tests for the form attribute removed. There's no reason why these test should not work (after some corrections). The chapter 7.1.6 doesn't contain any requirement that would describe an encoding failure (which is expected by these tests) and the tests didn't contain any closer explanation why the failure should occur.
parent c36eb4c6
Loading
Loading
Loading
Loading
+0 −18
Original line number Original line Diff line number Diff line
/***************************************************
 ** @author   STF 487
 ** @version  0.0.1
 ** @purpose  9:7.1.6, check correct namespace prefix encoding for elementFormDefault
 ** @verdict  pass reject
 ***************************************************/
module Neg_070106_form_001 {

    import from schema_Neg_070106_form_001 language "XSD" all;
    
    template MyElement m_msg := {
      myField := 1,
      myField2 := {myField := 2},
      myElement := {myField := 3}
    }

//#TC_Neg
}
+0 −7
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<ns:MyElement xmlns:ns="schema:Neg_070106_form_001"
              xmlns:ns2="schema:Neg_070106_form_001_2">
  <myField>1</myField>
  <myField2><ns2:myField>2</ns2:myField></myField2>
  <myElement><ns2:myField>3</ns2:myField></myElement>
</ns:MyElement>
+0 −17
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="qualified"
    targetNamespace="schema:Neg_070106_001"
    xmlns:ns="schema:Neg_070106_001"
    xmlns:ns2="schema:Neg_070106_001_2">
  <import namespace="schema:Neg_070106_001_2" schemaLocation="Neg_070106_form_001_2.xsd" />
  <element name="MyElement">
	<complexType>
		<sequence>
			<element name="myField" type="integer" />
			<element name="myField2" type="ns2:MyType"/>
			<element ref="ns2:MyElement"/>
		</sequence>
	</complexType>
  </element>
</schema>
 No newline at end of file
+0 −12
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
	elementFormDefault="unqualified" 
	targetNamespace="schema:Neg_070106_001_2"
	xmlns:ns="schema:Neg_070106_001_2">
	<element name="MyElement" type="ns:MyType" />
	<complexType name="MyType">
		<sequence>
			<element name="myField" type="integer" />
		</sequence>
	</complexType>
</schema>
 No newline at end of file
+0 −18
Original line number Original line Diff line number Diff line
/***************************************************
 ** @author   STF 487
 ** @version  0.0.1
 ** @purpose  9:7.1.6, check correct namespace prefix encoding for elementFormDefault
 ** @verdict  pass reject
 ***************************************************/
module Neg_070106_form_002 {

    import from schema_Neg_070106_form_002 language "XSD" all;

	template MyElement m_msg := {
	  myField := 1,
	  myField2 := {myField := 2},
	  myElement := {myField := 3}
	}

//#TC_Neg
}
Loading