Author: andyhot
Date: Thu Nov 19 16:14:28 2009
New Revision: 882190
URL: http://svn.apache.org/viewvc?rev=882190&view=rev
Log:
TAP5-894: backport fix for unreliable stylesheet_link test
Modified:
tapestry/tapestry5/branches/5.0/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/PartialMarkupDocumentLinkerTest.java
Modified:
tapestry/tapestry5/branches/5.0/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/PartialMarkupDocumentLinkerTest.java
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/branches/5.0/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/PartialMarkupDocumentLinkerTest.java?rev=882190&r1=882189&r2=882190&view=diff
==============================================================================
---
tapestry/tapestry5/branches/5.0/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/PartialMarkupDocumentLinkerTest.java
(original)
+++
tapestry/tapestry5/branches/5.0/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/PartialMarkupDocumentLinkerTest.java
Thu Nov 19 16:14:28 2009
@@ -62,9 +62,11 @@
JSONObject reply = new JSONObject();
linker.commit(reply);
+
+ JSONObject expected = new JSONObject(
+
"{\"stylesheets\":[{\"href\":\"foo.css\",\"media\":\"print\"},{\"href\":\"bar.css\"}]}");
- assertEquals(reply.toString(),
-
"{\"stylesheets\":[{\"href\":\"foo.css\",\"media\":\"print\"},{\"href\":\"bar.css\"}]}");
+ assertEquals(reply, expected);
}
}