You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2012/07/14 01:43:06 UTC

[2/7] git commit: Add test to ensure that aliases exist

Add test to ensure that aliases exist


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/c1cb2229
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/c1cb2229
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/c1cb2229

Branch: refs/heads/5.4-js-rewrite
Commit: c1cb22298f191936bb1156718957e39e7280fd4b
Parents: 8a6f9f6
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Fri Jul 13 16:22:51 2012 -0700
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Fri Jul 13 16:22:51 2012 -0700

----------------------------------------------------------------------
 .../integration/app1/pages/test-pubsub.coffee      |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/c1cb2229/tapestry-core/src/test/coffeescript/org/apache/tapestry5/integration/app1/pages/test-pubsub.coffee
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/coffeescript/org/apache/tapestry5/integration/app1/pages/test-pubsub.coffee b/tapestry-core/src/test/coffeescript/org/apache/tapestry5/integration/app1/pages/test-pubsub.coffee
index 05b28de..bcfbe6e 100644
--- a/tapestry-core/src/test/coffeescript/org/apache/tapestry5/integration/app1/pages/test-pubsub.coffee
+++ b/tapestry-core/src/test/coffeescript/org/apache/tapestry5/integration/app1/pages/test-pubsub.coffee
@@ -2,6 +2,11 @@ module "PubSub"
 
 require ["core/pubsub"], (pubsub) ->
 
+  test "export aliases", ->
+
+    ok pubsub.on is pubsub.respondTo, "on and respondTo"
+    ok pubsub.off is pubsub.stopResponding, "off and stopResponding"
+
   test "simple on/fire", ->
 
     memoValue = null
@@ -10,4 +15,5 @@ require ["core/pubsub"], (pubsub) ->
     pubsub.on "stim", (memo) -> memoValue = memo
     pubsub.fire "stim", expectedMemo
 
-    ok memoValue is expectedMemo, "responder function was invoked"
\ No newline at end of file
+    ok memoValue is expectedMemo, "responder function was invoked"
+