[Pkg-javascript-commits] [backbone] 57/101: stubbing out view test
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 16:58:29 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag 0.1.0
in repository backbone.
commit 07e1b77ded04b70339e167b1435180556fa22560
Author: Jeff Larson <thejefflarson at gmail.com>
Date: Thu Oct 7 20:00:13 2010 -0400
stubbing out view test
---
test/view.js | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/test/view.js b/test/view.js
index e69de29..a64fe0a 100644
--- a/test/view.js
+++ b/test/view.js
@@ -0,0 +1,17 @@
+$(document).ready(function() {
+ module("Backbone View");
+
+ var View = Backbone.View.extend({
+ className : "view",
+ render : function(){
+ $(body).append(this.el);
+ }
+ });
+
+ var view = new View();
+
+ test("view: setMode", function(){
+ view.setMode("active", "test");
+ ok(view.el.hasClass("active_test"), "View should set modes");
+ });
+});
\ 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