Coverage Report

Created: 2025-09-05 06:52

/src/serenity/Userland/Libraries/LibWeb/HTML/TimeRanges.cpp
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
3
 *
4
 * SPDX-License-Identifier: BSD-2-Clause
5
 */
6
7
#include <LibJS/Runtime/Realm.h>
8
#include <LibWeb/Bindings/Intrinsics.h>
9
#include <LibWeb/Bindings/TimeRangesPrototype.h>
10
#include <LibWeb/HTML/TimeRanges.h>
11
12
namespace Web::HTML {
13
14
JS_DEFINE_ALLOCATOR(TimeRanges);
15
16
TimeRanges::TimeRanges(JS::Realm& realm)
17
0
    : Base(realm)
18
0
{
19
0
}
20
21
void TimeRanges::initialize(JS::Realm& realm)
22
0
{
23
0
    Base::initialize(realm);
24
0
    WEB_SET_PROTOTYPE_FOR_INTERFACE(TimeRanges);
25
0
}
26
27
// https://html.spec.whatwg.org/multipage/media.html#dom-timeranges-length
28
size_t TimeRanges::length() const
29
0
{
30
    // FIXME: The length IDL attribute must return the number of ranges represented by the object.
31
0
    return 0;
32
0
}
33
34
// https://html.spec.whatwg.org/multipage/media.html#dom-timeranges-start
35
double TimeRanges::start(u32) const
36
0
{
37
    // FIXME: The start(index) method must return the position of the start of the indexth range represented by the object,
38
    //        in seconds measured from the start of the timeline that the object covers.
39
0
    return 0.0;
40
0
}
41
42
// https://html.spec.whatwg.org/multipage/media.html#dom-timeranges-end
43
double TimeRanges::end(u32) const
44
0
{
45
    // FIXME: The end(index) method must return the position of the end of the indexth range represented by the object,
46
    //        in seconds measured from the start of the timeline that the object covers.
47
0
    return 0.0;
48
0
}
49
50
}