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

Brightspace / react-valence-ui-fileviewer / 7111280825

06 Dec 2023 07:04AM CUT coverage: 56.35% (-32.8%) from 89.198%
7111280825

push

github

web-flow
Merge pull request #114 from Brightspace/venkata/node-sass-update-2

adding npm i in release.yml

604 of 1444 branches covered (0.0%)

1624 of 2882 relevant lines covered (56.35%)

11.45 hits per line

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

60.17
/src/plugins/pdf/native/nativeViewer.js
1
'use strict';
2

3
var React = require('react'),
22!
4
        GenericViewer = require('../../generic/viewer.js'),
5
        ImportedNativeViewer = require('react-valence-ui-iframe');
2✔
6

2✔
7
var NativeViewer = React.createClass({
2✔
8
        propTypes: {
9
                resizeCallback: React.PropTypes.func,
2✔
10
                progressCallback: React.PropTypes.func,
11
                srcdownload: React.PropTypes.string,
12
                locale: React.PropTypes.string,
13
                src: React.PropTypes.string
14
        },
15
        componentWillMount: function() {
16
                this.updateProgress(0);
17
                if (this.props.resizeCallback) {
18
                        this.props.resizeCallback('100%', false);
10✔
19
                }
10✔
20
        },
2✔
21
        componentDidMount: function() {
22
                this.updateProgress(100);
23
        },
24
        updateProgress: function(progress) {
10✔
25
                if (this.props.progressCallback) {
26
                        this.props.progressCallback(progress, 'none');
27
                }
20✔
28
        },
12✔
29
        render: function() {
30
                return <div className="vui-fileviewer-pdf-native">
31
                        <ImportedNativeViewer {...this.props} />
32
                        <GenericViewer srcdownload={this.props.srcdownload} locale={this.props.locale} />
10✔
33
                </div>;
34
        }
35
});
36

37
module.exports = NativeViewer;
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