/hg/icedtea-web: isDateInRange renamed to isDateInRange_internal...
jvanek at icedtea.classpath.org
jvanek at icedtea.classpath.org
Tue Jun 5 07:11:25 PDT 2012
changeset c87cba6608c6 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=c87cba6608c6
author: Jiri Vanek <jvanek at redhat.com>
date: Tue Jun 05 16:14:42 2012 +0200
isDateInRange renamed to isDateInRange_internallForIcedTeaWebTesting
diffstat:
ChangeLog | 8 ++++++++
netx/net/sourceforge/jnlp/runtime/pac-funcs.js | 16 ++++++++--------
tests/netx/pac/pac-funcs-test.js | 14 +++++++-------
3 files changed, 23 insertions(+), 15 deletions(-)
diffs (82 lines):
diff -r a78024e7139f -r c87cba6608c6 ChangeLog
--- a/ChangeLog Mon Jun 04 15:10:20 2012 -0400
+++ b/ChangeLog Tue Jun 05 16:14:42 2012 +0200
@@ -1,3 +1,11 @@
+2012-06-05 Jiri Vanek <jvanek at redhat.com>
+
+ isDateInRange renamed to isDateInRange_internallForIcedTeaWebTesting
+ * netx/net/sourceforge/jnlp/runtime/pac-funcs.js: and
+ * tests/netx/pac/pac-funcs-test.js:
+ (isDateInRange): Renamed to isDateInRange_internallForIcedTeaWebTesting.
+ (isDateInRange_internallForIcedTeaWebTesting): New function
+
2012-06-04 Saad Mohammad <smohammad at redhat.com>
Added signed jnlp file tests.
diff -r a78024e7139f -r c87cba6608c6 netx/net/sourceforge/jnlp/runtime/pac-funcs.js
--- a/netx/net/sourceforge/jnlp/runtime/pac-funcs.js Mon Jun 04 15:10:20 2012 -0400
+++ b/netx/net/sourceforge/jnlp/runtime/pac-funcs.js Tue Jun 05 16:14:42 2012 +0200
@@ -326,19 +326,19 @@
*/
function dateRange() {
switch (arguments.length) {
- case 1: return isDateInRange(new Date(),arguments[0]);
- case 2: return isDateInRange(new Date(),arguments[0],arguments[1]);
- case 3: return isDateInRange(new Date(),arguments[0],arguments[1],arguments[2]);
- case 4: return isDateInRange(new Date(),arguments[0],arguments[1],arguments[2],arguments[3]);
- case 5: return isDateInRange(new Date(),arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]);
- case 6: return isDateInRange(new Date(),arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);
- case 7: return isDateInRange(new Date(),arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]); //GMT
+ case 1: return isDateInRange_internallForIcedTeaWebTesting(new Date(),arguments[0]);
+ case 2: return isDateInRange_internallForIcedTeaWebTesting(new Date(),arguments[0],arguments[1]);
+ case 3: return isDateInRange_internallForIcedTeaWebTesting(new Date(),arguments[0],arguments[1],arguments[2]);
+ case 4: return isDateInRange_internallForIcedTeaWebTesting(new Date(),arguments[0],arguments[1],arguments[2],arguments[3]);
+ case 5: return isDateInRange_internallForIcedTeaWebTesting(new Date(),arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]);
+ case 6: return isDateInRange_internallForIcedTeaWebTesting(new Date(),arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);
+ case 7: return isDateInRange_internallForIcedTeaWebTesting(new Date(),arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]); //GMT
default:
return false;
}
}
-function isDateInRange() {
+function isDateInRange_internallForIcedTeaWebTesting() {
function isDate(date) {
if (typeof(date) === 'number' && (date <= 31 && date >= 1)) {
diff -r a78024e7139f -r c87cba6608c6 tests/netx/pac/pac-funcs-test.js
--- a/tests/netx/pac/pac-funcs-test.js Mon Jun 04 15:10:20 2012 -0400
+++ b/tests/netx/pac/pac-funcs-test.js Tue Jun 05 16:14:42 2012 +0200
@@ -492,13 +492,13 @@
var aYearFromNow = new Date(current.getFullYear()+1, current.getMonth()+1, current.getDate()+1);
var later = [aYearFromNow.getDate(), aYearFromNow.getMonth(), aYearFromNow.getFullYear()];
- runTest(isDateInRange, [ true, current,
+ runTest(isDateInRange_internallForIcedTeaWebTesting, [ true, current,
today[0], monthToStr(today[1]) , tomorrow[0], monthToStr(tomorrow[1]) ]);
- runTest(isDateInRange, [ true, current,
+ runTest(isDateInRange_internallForIcedTeaWebTesting, [ true, current,
yesterday[0], monthToStr(yesterday[1]) , tomorrow[0], monthToStr(tomorrow[1]) ]);
- runTest(isDateInRange, [ true, current,
+ runTest(isDateInRange_internallForIcedTeaWebTesting, [ true, current,
yesterday[0], monthToStr(yesterday[1]), yesterday[2], tomorrow[0], monthToStr(tomorrow[1]), tomorrow[2] ]);
- runTest(isDateInRange, [ false, current,
+ runTest(isDateInRange_internallForIcedTeaWebTesting, [ false, current,
tomorrow[0], monthToStr(tomorrow[1]), tomorrow[2], later[0], monthToStr(later[1]), later[2] ]);
}
@@ -528,11 +528,11 @@
var yesterday = incDate(current,'day',-1);
var today = incDate(current,'day',0);
var tomorrow = incDate(current,'day',1);
- runTest(isDateInRange, [ true, current,
+ runTest(isDateInRange_internallForIcedTeaWebTesting, [ true, current,
yesterday[0], monthToStr(yesterday[1]) , today[0], monthToStr(today[1]) ]);
- runTest(isDateInRange, [ true, current,
+ runTest(isDateInRange_internallForIcedTeaWebTesting, [ true, current,
yesterday[0], monthToStr(yesterday[1]) , tomorrow[0], monthToStr(tomorrow[1]) ]);
- runTest(isDateInRange, [ true, current,
+ runTest(isDateInRange_internallForIcedTeaWebTesting, [ true, current,
yesterday[0], monthToStr(yesterday[1]), yesterday[2], tomorrow[0], monthToStr(tomorrow[1]), tomorrow[2] ]);
}
}
More information about the distro-pkg-dev
mailing list