[mb-commits] branch, beta, updated. Merge remote-tracking branch 'bitmap/mbs-5663' into beta MBS-5663: validDate ...
MusicBrainz Git Server <[email protected]> Thu, 03 Jan 2013 12:14:15 +0000
| Newsgroups | gmane.comp.audio.musicbrainz.cvs |
|---|---|
| Message-ID | <E1Tqjgd-0001bu-Ir@wiley> |
The branch, beta has been updated
via http://git.musicbrainz.org/gitweb/?p=musicbrainz-server/core.git;a=commit;h=1ad47499b71a7f4bdeecc251e801fe2f1dfa06f5 (commit)
via http://git.musicbrainz.org/gitweb/?p=musicbrainz-server/core.git;a=commit;h=eb678bfc33b4f35207c2589f64bf46c3f2d5e046 (commit)
from http://git.musicbrainz.org/gitweb/?p=musicbrainz-server/core.git;a=commit;h=327239dfc98d1fbf39061685e1238727042c27e1 (commit)
Summary of changes:
root/static/scripts/common/MB/utility.js | 4 ++--
root/static/scripts/tests/utility.js | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 1ad47499b71a7f4bdeecc251e801fe2f1dfa06f5
Merge: 327239d eb678bf
Author: Oliver Charles <[email protected]>
Date: Thu Jan 3 12:14:00 2013 +0000
Merge remote-tracking branch 'bitmap/mbs-5663' into beta
* bitmap/mbs-5663:
MBS-5663: validDate should handle leap years
commit eb678bfc33b4f35207c2589f64bf46c3f2d5e046
Author: Michael Wiencek <[email protected]>
Date: Tue Dec 11 14:57:40 2012 +0000
MBS-5663: validDate should handle leap years
diff --git a/root/static/scripts/common/MB/utility.js b/root/static/scripts/common/MB/utility.js
index 51b7758..d0eb2e9 100644
--- a/root/static/scripts/common/MB/utility.js
+++ b/root/static/scripts/common/MB/utility.js
@@ -266,8 +266,8 @@ MB.utility.beget = function(o) {
MB.utility.validDate = (function() {
var daysInMonth = {
- "true": [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
- "false": [0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
+ "true": [0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
+ "false": [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
};
return function(y, m, d) {
diff --git a/root/static/scripts/tests/utility.js b/root/static/scripts/tests/utility.js
index 058f82c..674e6ac 100644
--- a/root/static/scripts/tests/utility.js
+++ b/root/static/scripts/tests/utility.js
@@ -64,6 +64,8 @@ MB.tests.utility.All = function() {
QUnit.equal (MB.utility.unformatTrackLength ('59:00'), 59 * minutes, 'unformatTrackLength');
QUnit.equal (MB.utility.unformatTrackLength ('01:00:00'), 60 * minutes, 'unformatTrackLength');
QUnit.equal (MB.utility.unformatTrackLength ('14:15:16'), 14 * hours + 15 * minutes + 16 * seconds, 'unformatTrackLength');
+
+ QUnit.equal (MB.utility.validDate(1960, 2, 29), true, 'MBS-5663: validDate should handle leap years');
});
};
-----------------------------------------------------------------------
hooks/post-receive
--
mb_server