Author: bblfish
Date: Thu May 19 18:17:39 2011
New Revision: 1125036
URL: http://svn.apache.org/viewvc?rev=1125036&view=rev
Log:
Improved look of WebID test suite so that it fits in with the look of the rest
of ZZ, as part of a step towards documentation, as required by CLEREZZA-479
Modified:
incubator/clerezza/trunk/parent/platform.security.foafssl/test/src/main/scala/org/apache/clerezza/foafssl/test/WebIDTester.scala
incubator/clerezza/trunk/parent/platform.security.foafssl/test/src/main/scala/org/apache/clerezza/foafssl/test/pages/WebIDClaimPg.scala
Modified:
incubator/clerezza/trunk/parent/platform.security.foafssl/test/src/main/scala/org/apache/clerezza/foafssl/test/WebIDTester.scala
URL:
http://svn.apache.org/viewvc/incubator/clerezza/trunk/parent/platform.security.foafssl/test/src/main/scala/org/apache/clerezza/foafssl/test/WebIDTester.scala?rev=1125036&r1=1125035&r2=1125036&view=diff
==============================================================================
---
incubator/clerezza/trunk/parent/platform.security.foafssl/test/src/main/scala/org/apache/clerezza/foafssl/test/WebIDTester.scala
(original)
+++
incubator/clerezza/trunk/parent/platform.security.foafssl/test/src/main/scala/org/apache/clerezza/foafssl/test/WebIDTester.scala
Thu May 19 18:17:39 2011
@@ -60,7 +60,7 @@ object WebIDTester {
@Path("/test/WebId")
class WebIDTester {
- import WebIDTester._
+ import WebIDTester._
protected def activate(componentContext: ComponentContext) = {
@@ -77,6 +77,7 @@ class WebIDTester {
def getTestMe(): GraphNode = {
val resultNode: GraphNode = new GraphNode(new BNode(),new SimpleMGraph())
resultNode.addProperty(RDF.`type`, testCls)
+ resultNode.addProperty(RDF.`type`,PLATFORM.HeadedPage)
return resultNode
}
Modified:
incubator/clerezza/trunk/parent/platform.security.foafssl/test/src/main/scala/org/apache/clerezza/foafssl/test/pages/WebIDClaimPg.scala
URL:
http://svn.apache.org/viewvc/incubator/clerezza/trunk/parent/platform.security.foafssl/test/src/main/scala/org/apache/clerezza/foafssl/test/pages/WebIDClaimPg.scala?rev=1125036&r1=1125035&r2=1125036&view=diff
==============================================================================
---
incubator/clerezza/trunk/parent/platform.security.foafssl/test/src/main/scala/org/apache/clerezza/foafssl/test/pages/WebIDClaimPg.scala
(original)
+++
incubator/clerezza/trunk/parent/platform.security.foafssl/test/src/main/scala/org/apache/clerezza/foafssl/test/pages/WebIDClaimPg.scala
Thu May 19 18:17:39 2011
@@ -69,8 +69,11 @@ object XhtmlWebIDClaimPg {
class XhtmlWebIDClaimPg(arguments: XmlResult.Arguments, webIdGraphsService:
WebIdGraphsService) extends XmlResult(arguments ) {
import XhtmlWebIDClaimPg._
+ resultDocModifier.setTitle("WebId Tests");
+ resultDocModifier.addNodes2Elem("tx-module", <h1>Test Panel</h1>);
+ resultDocModifier.addNodes2Elem("tx-module-tabs-ol", <li
class="tx-active"><a href="#">WebId Tester</a></li>);
- override def content = <span>
+ override def content = <div id="tx-content"> <h2>WebID Login Test Page</h2>
<p>The TLS connection was established. We do not test the basic TLS
connection.</p>
{
val subj = UserUtil.getCurrentSubject();
@@ -78,8 +81,8 @@ class XhtmlWebIDClaimPg(arguments: XmlRe
if (creds.size==0) <p>No X509 credentials available.</p>
else for (cred <- creds) yield describeX509Claim(cred)
}
- <p>For very detailed test information to send to support download
this <a href="WebId/n3">n3</a> file.</p>
- </span>
+ <p>For very detailed test information to send to support <a
href="WebId/n3">download this n3 file</a>.</p>
+ </div>
def describeX509Claim(claim: X509Claim) = {