VulpesOS/gaia/apps/calendar/test/marionette/lib/views/month.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

50 lines
940 B
JavaScript
Executable file

'use strict';
var View = require('./view');
function Month() {
View.apply(this, arguments);
}
module.exports = Month;
Month.prototype = {
__proto__: View.prototype,
selector: '#month-view',
get activeMonth() {
return this.findElement('.month.active');
},
get currentDay() {
return this.activeMonth.findElement('.present > .day');
},
get busyDots() {
return this.activeMonth.findElements('.icon-calendar-dot');
},
get days() {
return this.activeMonth.findElements('.day');
},
get weekdayHeaders() {
return this
.findElements('.month.active #month-days li')
.map(function(li) {
return li.text();
});
},
get daySquares() {
return this.findElements('.month.active > ol li');
},
get todaySquare() {
return this.activeMonth.findElement('.present');
},
squareDots: function(square) {
return square.findElements('.icon-calendar-dot');
}
};