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/19 23:55:28 UTC

[2/4] git commit: Put the message of the alert inside a so that it can be located easily for testing

Put the message of the alert inside a <span> so that it can be located easily for testing


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

Branch: refs/heads/master
Commit: da4f6650fa9574321185eb2537b02bab648e2c20
Parents: 85812ae
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Fri Jul 19 14:35:25 2013 -0700
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Fri Jul 19 14:35:25 2013 -0700

----------------------------------------------------------------------
 .../src/main/coffeescript/META-INF/modules/t5/core/alert.coffee  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/da4f6650/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/alert.coffee
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/alert.coffee b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/alert.coffee
index b0f4076..3ca552b 100644
--- a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/alert.coffee
+++ b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/alert.coffee
@@ -108,13 +108,13 @@ define ["./dom", "./console", "./messages", "./ajax", "underscore"],
       # Note that `data-dismiss=alert` is purposely excluded
       # - we want to handle closes w/ notifications to the server if not transient
       # - we don't want to rely on bootstrap.js, as that will drag jQuery into the application
-
+      # Also, the <span> tag makes it easier to pull out just the content when doing tests.
       element = dom.create "div",
         "data-alert-id": data.id
         class: className
         """
           <button class="close">&times;</button>
-          #{content}
+          <span>#{content}</span>
         """
 
       container.append element