VulpesOS/gaia/apps/calendar/test/marionette/lib/views/day.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

25 lines
486 B
JavaScript
Executable file

'use strict';
var WeekView = require('./week'),
DayEvent = require('./day_event');
function Day() {
WeekView.apply(this, arguments);
}
module.exports = Day;
Day.prototype = {
__proto__: WeekView.prototype,
selector: '#day-view',
get activeDay() {
return this.findElement('.md__day[aria-hidden="false"]');
},
get events() {
return this.activeDay.findElements('.md__event').map(function(el) {
return new DayEvent(this.client, el);
}, this);
}
};