2002/ws/desc/test-suite assertion-coverage.xsl,1.2,1.3 assertions-report.xsl,1.9,1.10 assertion-coverage.xml,1.5,1.6 Assertion-coverage.html,1.5,1.6

Update of /sources/public/2002/ws/desc/test-suite
In directory hutz:/tmp/cvs-serv5126/test-suite

Modified Files:
	assertion-coverage.xsl assertions-report.xsl 
	assertion-coverage.xml Assertion-coverage.html 
Log Message:
Added test to assertions report flagging unknown assertion numbers.


Index: assertion-coverage.xml
===================================================================
RCS file: /sources/public/2002/ws/desc/test-suite/assertion-coverage.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -C 2 -d -r1.5 -r1.6
*** assertion-coverage.xml	28 Nov 2006 04:16:54 -0000	1.5
--- assertion-coverage.xml	28 Nov 2006 05:11:28 -0000	1.6
***************
*** 796,798 ****
--- 796,802 ----
  <test id="RPC-27B" href="http://dev.w3.org/cvsweb/2002/ws/desc/test-suite/documents/bad/RPC-27B"/>
  </assertion>
+ <unknown-assertion-ids>
+ <assertion origin="http://dev.w3.org/cvsweb/2002/ws/desc/test-suite/documents/bad/Binding-4B" id="Binding-0061"/>
+ <assertion origin="http://dev.w3.org/cvsweb/2002/ws/desc/test-suite/documents/bad/HTTPBinding-1B" id="HTTPBinding-2600001"/>
+ </unknown-assertion-ids>
  </assertions>

Index: assertion-coverage.xsl
===================================================================
RCS file: /sources/public/2002/ws/desc/test-suite/assertion-coverage.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C 2 -d -r1.2 -r1.3
*** assertion-coverage.xsl	28 Nov 2006 04:16:53 -0000	1.2
--- assertion-coverage.xsl	28 Nov 2006 05:11:28 -0000	1.3
***************
*** 12,16 ****
  					0.5ex } .border th { background: #ccc } .good { background: green } .bad {
  					background: red } .class, .count { text-align: center } .bar { font-weight:
! 					bold; } .synopsis { font-size: small } </style>
  			</head>
  			<body>
--- 12,17 ----
  					0.5ex } .border th { background: #ccc } .good { background: green } .bad {
  					background: red } .class, .count { text-align: center } .bar { font-weight:
! 					bold; } .synopsis { font-size: small } 
! 					.warning {background-color:yellow}</style>
  			</head>
  			<body>
***************
*** 46,49 ****
--- 47,60 ----
  					<xsl:value-of select="assertions/@message"/> message). 
  				</p>
+ 				<xsl:if test="assertions/unknown-assertion-ids/assertion">
+ 					<p class="warning">
+ 						<xsl:text>Warning! Unknown assertion numbers: </xsl:text> 
+ 						<xsl:for-each select="assertions/unknown-assertion-ids/assertion">
+ 							<a href="{@origin}"><xsl:value-of select="@id"/></a>
+ 							<xsl:text>, </xsl:text>		
+ 						</xsl:for-each>
+ 						<xsl:text>defined in testcase metadata.</xsl:text>
+ 					</p>
+ 				</xsl:if>
  				<table class="border">
  					<thead>

Index: assertions-report.xsl
===================================================================
RCS file: /sources/public/2002/ws/desc/test-suite/assertions-report.xsl,v
retrieving revision 1.9
retrieving revision 1.10
diff -C 2 -d -r1.9 -r1.10
*** assertions-report.xsl	28 Nov 2006 04:16:54 -0000	1.9
--- assertions-report.xsl	28 Nov 2006 05:11:28 -0000	1.10
***************
*** 37,41 ****
--- 37,50 ----
  					</xsl:for-each>
  				</assertion>
+ 				
  			</xsl:for-each>
+ 
+ 			<unknown-assertion-ids>
+ 				<xsl:for-each select="$ViolatesAssertions/ViolateAssertion">
+ 					<xsl:if test="not(@assertion = $assertions/@id)">
+ 						<assertion id="{@assertion}" origin="{@origin}"/>
+ 					</xsl:if>
+ 				</xsl:for-each>
+ 			</unknown-assertion-ids>
  		</assertions>
  	</xsl:template>

Index: Assertion-coverage.html
===================================================================
RCS file: /sources/public/2002/ws/desc/test-suite/Assertion-coverage.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -C 2 -d -r1.5 -r1.6
*** Assertion-coverage.html	28 Nov 2006 04:16:54 -0000	1.5
--- Assertion-coverage.html	28 Nov 2006 05:11:28 -0000	1.6
***************
*** 8,12 ****
  					0.5ex } .border th { background: #ccc } .good { background: green } .bad {
  					background: red } .class, .count { text-align: center } .bar { font-weight:
! 					bold; } .synopsis { font-size: small } </style>
  </head>
  <body>
--- 8,13 ----
  					0.5ex } .border th { background: #ccc } .good { background: green } .bad {
  					background: red } .class, .count { text-align: center } .bar { font-weight:
! 					bold; } .synopsis { font-size: small } 
! 					.warning {background-color:yellow}</style>
  </head>
  <body>
***************
*** 38,41 ****
--- 39,43 ----
  					3 message). 
  				</p>
+ <p class="warning">Warning! Unknown assertion numbers: <a href="http://dev.w3.org/cvsweb/2002/ws/desc/test-suite/documents/bad/Binding-4B">Binding-0061</a>, <a href="http://dev.w3.org/cvsweb/2002/ws/desc/test-suite/documents/bad/HTTPBinding-1B">HTTPBinding-2600001</a>, defined in testcase metadata.</p>
  <table class="border">
  <thead>

Received on Tuesday, 28 November 2006 05:11:48 UTC