From 06b80cb80b05fb5d228c3dfa634a2fd82a25e554 Mon Sep 17 00:00:00 2001
From: Alberto Massari <amassari@apache.org>
Date: Sat, 2 Jul 2005 19:05:12 +0000
Subject: [PATCH] Updated tests to reflect change in naming of anonymous type

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@208866 13f79535-47bb-0310-9956-ffa450edef68
---
 scripts/sanityTest_ExpectedResult.log | 14 +++++++-------
 tests/src/DOM/TypeInfo/TypeInfo.cpp   | 10 +++++-----
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/scripts/sanityTest_ExpectedResult.log b/scripts/sanityTest_ExpectedResult.log
index ad9b51af0..3fe46eccc 100644
--- a/scripts/sanityTest_ExpectedResult.log
+++ b/scripts/sanityTest_ExpectedResult.log
@@ -984,7 +984,7 @@ Create Reason:	Declared
 ContentType:	
 Content Model:	(person,)
 ComplexType:
-	TypeName:	,C0
+	TypeName:	,__AnonC0
 	ContentType:	
 --------------------------------------------
 Name:			person
@@ -993,7 +993,7 @@ Create Reason:	Declared
 ContentType:	
 Content Model:	((name,email,url),link)
 ComplexType:
-	TypeName:	,C1
+	TypeName:	,__AnonC1
 	ContentType:	
 Attributes:
 	Name:			id
@@ -1030,21 +1030,21 @@ Create Reason:	Declared
 ContentType:	All
 Content Model:	All(family,given)
 ComplexType:
-	TypeName:	,C2
+	TypeName:	,__AnonC2
 	ContentType:	All
 --------------------------------------------
 Name:			family
 Model Type:		Simple
 Create Reason:	Declared
 ComplexType:
-	TypeName:	,C3
+	TypeName:	,__AnonC3
 Base Datatype:		string
 --------------------------------------------
 Name:			given
 Model Type:		Simple
 Create Reason:	Declared
 ComplexType:
-	TypeName:	,C4
+	TypeName:	,__AnonC4
 Base Datatype:		string
 --------------------------------------------
 Name:			email
@@ -1057,7 +1057,7 @@ Model Type:		Empty
 Create Reason:	Declared
 Content Model:	EMPTY
 ComplexType:
-	TypeName:	,C5
+	TypeName:	,__AnonC5
 Attributes:
 	Name:			href
 	Type:			CDATA
@@ -1071,7 +1071,7 @@ Model Type:		Empty
 Create Reason:	Declared
 Content Model:	EMPTY
 ComplexType:
-	TypeName:	,C6
+	TypeName:	,__AnonC6
 Attributes:
 	Name:			manager
 	Type:			IDREF
diff --git a/tests/src/DOM/TypeInfo/TypeInfo.cpp b/tests/src/DOM/TypeInfo/TypeInfo.cpp
index f23bd2b9a..b68d34bf8 100644
--- a/tests/src/DOM/TypeInfo/TypeInfo.cpp
+++ b/tests/src/DOM/TypeInfo/TypeInfo.cpp
@@ -541,19 +541,19 @@ bool TypeInfo::testAnonymous() {
 
     //element anonymousTest
     DOMElement *testEle = findElement(X("anonymousTest"));
-    DOMTYPEINFOTEST(testEle->getTypeInfo(), X("C1"), X(""), __LINE__);
+    DOMTYPEINFOTEST(testEle->getTypeInfo(), X("__AnonC1"), X(""), __LINE__);
 
     testAttr = testEle->getAttributeNodeNS(X(""), X("partNum"));
-    DOMTYPEINFOTEST(testAttr->getTypeInfo(), X("S7"), X(""), __LINE__);
+    DOMTYPEINFOTEST(testAttr->getTypeInfo(), X("__AnonS7"), X(""), __LINE__);
 
     testEle = (DOMElement *)testEle->getFirstChild()->getNextSibling();
-    DOMTYPEINFOTEST(testEle->getTypeInfo(), X("S2"), X(""), __LINE__);
+    DOMTYPEINFOTEST(testEle->getTypeInfo(), X("__AnonS2"), X(""), __LINE__);
 
     testEle = (DOMElement *)testEle->getNextSibling()->getNextSibling();
-    DOMTYPEINFOTEST(testEle->getTypeInfo(), X("S4"), X(""), __LINE__);
+    DOMTYPEINFOTEST(testEle->getTypeInfo(), X("__AnonS4"), X(""), __LINE__);
 
     testEle = (DOMElement *)testEle->getNextSibling()->getNextSibling();
-    DOMTYPEINFOTEST(testEle->getTypeInfo(), X("S6"), X(""), __LINE__);
+    DOMTYPEINFOTEST(testEle->getTypeInfo(), X("__AnonS6"), X(""), __LINE__);
 
     return passed;
 }
-- 
GitLab