[Pkg-javascript-commits] [backbone] 01/05: Add patch cherry-picked upstream to fix testsuite to pass with Underscore 1.5.0 and newer. Closes: bug#770060. Thanks to Daniel Schepler and Matt Kraai.

Jonas Smedegaard dr at jones.dk
Wed Nov 19 16:43:19 UTC 2014


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

js pushed a commit to branch master-experimental
in repository backbone.

commit 655ac2cae7366507ac2465730246c31108050bcb
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Wed Nov 19 17:09:14 2014 +0100

    Add patch cherry-picked upstream to fix testsuite to pass with Underscore 1.5.0 and newer. Closes: bug#770060. Thanks to Daniel Schepler and Matt Kraai.
---
 debian/patches/020130217~0a085bd.patch | 33 +++++++++++++++++++++++++++++++++
 debian/patches/series                  |  1 +
 2 files changed, 34 insertions(+)

diff --git a/debian/patches/020130217~0a085bd.patch b/debian/patches/020130217~0a085bd.patch
new file mode 100644
index 0000000..b04cca5
--- /dev/null
+++ b/debian/patches/020130217~0a085bd.patch
@@ -0,0 +1,33 @@
+Description: Fix testsuite to pass with Underscore 1.5.0 and newer
+ Due to changes in
+ <https://github.com/documentcloud/underscore/commit/0ab5bdc> need to
+ fix Backbone.Model test.  It would be helpful because some people may
+ use Backbone's unit tests in their Backbone-related projects (plugins
+ for example).
+Origin: upstream, https://github.com/jashkenas/backbone/commit/0a085bd
+Author: Dmytro Nemoga <Dmytro.Nemoga at gmail.com>
+Reviewed-By: Jonas Smedegaard <dr at jones.dk>
+Forwarded: yes
+Bug-Debian: https://bugs.debian.org/770060
+Last-Update: 2013-02-17
+
+--- a/test/model.js
++++ b/test/model.js
+@@ -324,7 +324,7 @@
+         "two": 2
+       }
+     });
+-    var model = new Defaulted({two: null});
++    var model = new Defaulted();
+     equal(model.get('one'), 1);
+     equal(model.get('two'), 2);
+     Defaulted = Backbone.Model.extend({
+@@ -335,7 +335,7 @@
+         };
+       }
+     });
+-    model = new Defaulted({two: null});
++    model = new Defaulted();
+     equal(model.get('one'), 3);
+     equal(model.get('two'), 4);
+   });
diff --git a/debian/patches/series b/debian/patches/series
index b269c20..eb4cbad 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+020130217~0a085bd.patch
 2001_use_system_js.patch

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