[Pkg-javascript-commits] [backbone] 144/211: fixing tests for IE / Webkit ... regex, not string match.

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:00:15 UTC 2014


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

js pushed a commit to tag 0.5.0
in repository backbone.

commit a5d01f91fe7d3f438fba7fe1334732f8bea88526
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Mon May 23 09:50:26 2011 -0400

    fixing tests for IE / Webkit ... regex, not string match.
---
 test/view.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/view.js b/test/view.js
index 0eba3ca..6c74d62 100644
--- a/test/view.js
+++ b/test/view.js
@@ -16,8 +16,8 @@ $(document).ready(function() {
 
   test("View: jQuery", function() {
     view.el = document.body;
-    equals(view.$('#qunit-header a').get(0).innerHTML, ' Backbone Test Suite');
-    equals(view.$('#qunit-header a').get(1).innerHTML, 'Backbone Speed Suite');
+    ok(view.$('#qunit-header a').get(0).innerHTML.match(/Backbone Test Suite/));
+    ok(view.$('#qunit-header a').get(1).innerHTML.match(/Backbone Speed Suite/));
   });
 
   test("View: make", function() {

-- 
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