[Pkg-javascript-commits] [backbone] 23/34: Adding a test for Issue #33

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 16:58:54 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.2.0
in repository backbone.

commit 089fd5c1a2b0e82521ec73b4770724f4849caedb
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Wed Oct 20 14:43:31 2010 -0400

    Adding a test for Issue #33
---
 test/view.js | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/test/view.js b/test/view.js
index bf7302c..27f610a 100644
--- a/test/view.js
+++ b/test/view.js
@@ -54,4 +54,12 @@ $(document).ready(function() {
     equals(counter, 3);
   });
 
+  test("View: _ensureElement", function() {
+    var ViewClass = Backbone.View.extend({
+      el: document.body
+    });
+    var view = new ViewClass;
+    equals(view.el, document.body);
+  });
+
 });
\ No newline at end of file

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git



More information about the Pkg-javascript-commits mailing list