• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

worktile / slate-angular / 6659122c-e261-4b71-8a4c-31a76811ea45

pending completion
6659122c-e261-4b71-8a4c-31a76811ea45

Pull #226

circleci

pubuzhixing8
chore(core): update note
Pull Request #226: Android input handing

268 of 892 branches covered (30.04%)

Branch coverage included in aggregate %.

46 of 46 new or added lines in 2 files covered. (100.0%)

682 of 1526 relevant lines covered (44.69%)

29.63 hits per line

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

22.22
/packages/src/utils/block-card.ts
1
import { DOMNode, DOMSelection } from './dom';
2

3
export const FAKE_LEFT_BLOCK_CARD_OFFSET = -1;
1✔
4

5
export const FAKE_RIGHT_BLOCK_CARD_OFFSET = -2;
1✔
6

7
export function hasBlockCardWithNode(node: DOMNode) {
8
    return node && (node.parentElement.hasAttribute('card-target') || (node instanceof HTMLElement && node.hasAttribute('card-target')));
×
9
}
10

11
export function hasBlockCard(selection: DOMSelection) {
12
    return hasBlockCardWithNode(selection?.anchorNode) || hasBlockCardWithNode(selection?.focusNode);
×
13
}
14

15
export function getCardTargetAttribute(node: DOMNode) {
16
    return node.parentElement.attributes['card-target'] || (node instanceof HTMLElement && node.attributes['card-target']);
2✔
17
}
18

19
export function isCardLeft(node: DOMNode) {
20
    const cardTarget = getCardTargetAttribute(node);
×
21
    return cardTarget && cardTarget.nodeValue === 'card-left';
×
22
}
23

24
export function isCardLeftByTargetAttr(targetAttr: any) {
25
    return targetAttr && targetAttr.nodeValue === 'card-left';
×
26
}
27

28
export function isCardRightByTargetAttr(targetAttr: any) {
29
    return targetAttr && targetAttr.nodeValue === 'card-right';
×
30
}
31

32
export function isCardCenterByTargetAttr(targetAttr: any) {
33
    return targetAttr && targetAttr.nodeValue === 'card-center';
×
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