You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by jk...@apache.org on 2015/10/21 11:25:29 UTC
tapestry-5 git commit: try to debug that test
Repository: tapestry-5
Updated Branches:
refs/heads/master 36aee89df -> 4978906db
try to debug that test
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/4978906d
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/4978906d
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/4978906d
Branch: refs/heads/master
Commit: 4978906dba6aa4db5d7c617123f5ded83d5485aa
Parents: 36aee89
Author: Jochen Kemnade <jo...@eddyson.de>
Authored: Wed Oct 21 11:24:57 2015 +0200
Committer: Jochen Kemnade <jo...@eddyson.de>
Committed: Wed Oct 21 11:25:23 2015 +0200
----------------------------------------------------------------------
.../org/apache/tapestry5/integration/app1/MiscTests.groovy | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/4978906d/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/MiscTests.groovy
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/MiscTests.groovy b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/MiscTests.groovy
index ba92efa..0cbdea2 100644
--- a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/MiscTests.groovy
+++ b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/MiscTests.groovy
@@ -78,8 +78,10 @@ class MiscTests extends App1TestCase {
@Test
void timeinterval_component() {
openLinks "TimeInterval Demo", "English"
+ def timeSincePrevRenderText = getText("time-since-prev-render")
+ def timeSincePrevRenderIntervalEnd = getAttribute("time-since-prev-render@data-timeinterval-end")
- assert getText("time-since-prev-render").endsWith(" ago")
+ assert timeSincePrevRenderText.endsWith(" ago"), "Time since previous render ($timeSincePrevRenderText) does not end with ' ago', the interval ends at $timeSincePrevRenderIntervalEnd"
assert getText("jacob-age").contains("years")
assert getText("jacob-vote").startsWith("in ")
}