ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject [1/2] incubator-ponymail git commit: elaborate test a bit
Date Fri, 02 Sep 2016 11:26:43 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/coffee-and-cake e3d0fc756 -> a9040b3cb


elaborate test a bit


Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/7569231b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/7569231b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/7569231b

Branch: refs/heads/coffee-and-cake
Commit: 7569231b474dc0697c3c5ca283a11929d6e54203
Parents: e3d0fc7
Author: Daniel Gruno <humbedooh@apache.org>
Authored: Fri Sep 2 13:22:38 2016 +0200
Committer: Daniel Gruno <humbedooh@apache.org>
Committed: Fri Sep 2 13:22:38 2016 +0200

----------------------------------------------------------------------
 site/js/coffee/test.coffee | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/7569231b/site/js/coffee/test.coffee
----------------------------------------------------------------------
diff --git a/site/js/coffee/test.coffee b/site/js/coffee/test.coffee
index 30a7cb1..bff04c4 100644
--- a/site/js/coffee/test.coffee
+++ b/site/js/coffee/test.coffee
@@ -2,10 +2,18 @@ testCoffee = () ->
     ### Get main div from HTML ###
     parent = get('testdiv')
     # Make a paragraph with some text in it
-    p = mk('p', { onclick: 'testToggle(this);', class: "fooclass", style: { textAlign: 'center'}},
"Text goes here")
+    p = mk('p', { class: "fooclass", style: { textAlign: 'center'}}, "Text goes here")
+    
     # Inject paragraph into div
     parent.inject(p)
-    p.inject(". More text here")
+    
+    # Add some plain text and a break
+    p.inject([". Here's a textNode added afterwards", mk('br')])
+    
+    # Make an object we can hide when clicked on, using the show() prototype
+    hider = mk('b', { onclick: 'testToggle(this);'}, "Click here to hide this text!")
+    p.inject(hider)
+    
     
 testToggle = (div) ->
     div.show()
\ No newline at end of file


Mime
View raw message