• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Build has been canceled!

rokucommunity / brs / #213

27 Jan 2025 05:30PM UTC coverage: 86.996% (-2.2%) from 89.205%
#213

push

web-flow
Implemented several improvements to SceneGraph (#87)

* Implemented several improvements to SceneGraph

* Fixed most test cases

* Reduced unnecessary code

* Fixed typo

* Added Warning when trying to create a non-existent Node

* Fixed parser

* Fixed unit tests

* Implemented support for `infoFields`

* Prettier fix

* Simplified execute callback code and matched behavior with Roku

* Adding comment to clarify the exception

2240 of 2807 branches covered (79.8%)

Branch coverage included in aggregate %.

139 of 304 new or added lines in 18 files covered. (45.72%)

2 existing lines in 1 file now uncovered.

6129 of 6813 relevant lines covered (89.96%)

27562.41 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

33.33
/src/brsTypes/components/RoSGScreenEvent.ts
1
import { BrsComponent } from "./BrsComponent";
143✔
2
import { ValueKind, BrsValue, BrsBoolean } from "../BrsType";
143✔
3
import { Callable } from "../Callable";
143✔
4
import { Interpreter } from "../../interpreter";
5
import { BrsType } from "..";
6

7
export class RoSGScreenEvent extends BrsComponent implements BrsValue {
143✔
NEW
8
    readonly kind = ValueKind.Object;
×
9

NEW
10
    constructor(readonly closed: BrsBoolean) {
×
NEW
11
        super("roSGScreenEvent");
×
NEW
12
        this.appendMethods([this.isScreenClosed]);
×
13
    }
14

15
    equalTo(other: BrsType) {
16
        // RBI doesn't allow events to be compared.
NEW
17
        return BrsBoolean.False;
×
18
    }
19

20
    toString() {
NEW
21
        return "<Component: roSGScreenEvent>";
×
22
    }
23

24
    /** Checks whether the screen has been closed and is no longer displayed to the user. */
NEW
25
    private isScreenClosed = new Callable("isScreenClosed", {
×
26
        signature: {
27
            args: [],
28
            returns: ValueKind.Dynamic,
29
        },
30
        impl: (_: Interpreter) => {
NEW
31
            return this.closed;
×
32
        },
33
    });
34
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc