tests/shared/app/views/static_pages/click_on.html.haml in spreewald-1.3.3 vs tests/shared/app/views/static_pages/click_on.html.haml in spreewald-1.4.0
- old
+ new
@@ -1,7 +1,28 @@
-.outer
- .inner
- Nested
+.clickables
-.button
- %span.icon +
- Button
+ .outer
+ .inner
+ Nested
+
+ .button
+ %span.icon +
+ Button
+
+ .panel
+ Panel
+
+ .timeline
+ Timeline
+
+#message
+
+:javascript
+ $(function() {
+ $('.clickables *').click(function(event) {
+ $('#message').text('You clicked on .' + this.className);
+ // Don't propagate since the whole point of the test
+ // is that the correct tree node is clicked
+ return false;
+ });
+ });
+