You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2013/07/23 17:35:31 UTC
[2/2] git commit: Adjust timing of focus tests to allow for 1/8th
second delay
Adjust timing of focus tests to allow for 1/8th second delay
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/6215227e
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/6215227e
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/6215227e
Branch: refs/heads/master
Commit: 6215227ecbd3dccd5db9748bc7a8458d3671470e
Parents: 341e10d
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Tue Jul 23 08:35:20 2013 -0700
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Tue Jul 23 08:35:20 2013 -0700
----------------------------------------------------------------------
.../tapestry5/integration/app1/FormFieldFocusTest.groovy | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/6215227e/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/FormFieldFocusTest.groovy
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/FormFieldFocusTest.groovy b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/FormFieldFocusTest.groovy
index 3a103eb..d61df0f 100644
--- a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/FormFieldFocusTest.groovy
+++ b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/FormFieldFocusTest.groovy
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, 2012 The Apache Software Foundation
+// Copyright (c) 2011-2013 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -31,6 +31,8 @@ class FormFieldFocusTest extends TapestryCoreTestCase
waitForPageInitialized()
+ sleep 250
+
assertEquals getEval("window.document.activeElement.value"), "But I got the focus!"
}
@@ -42,6 +44,8 @@ class FormFieldFocusTest extends TapestryCoreTestCase
waitForPageInitialized()
+ sleep 250
+
assertEquals getEval("window.document.activeElement.value"), "But I got the focus!"
}