Coveralls logob
Coveralls logo
  • Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jquery / jquery-migrate / 146

5 Aug 2016 - 12:24 coverage: 87.5% (-1.05%) from 88.546%
146

Pull #216

travis-ci

9181eb84f9c35729a3bad740fb7f9d93?size=18&default=identiconweb-flow
squash! Ensure warnings are skipped on non-rAF browsers
Pull Request #216: Effects: Warn and fill jQuery.fx.interval

2 of 5 new or added lines in 2 files covered. (40.0%)

203 of 232 relevant lines covered (87.5%)

8.94 hits per line

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

88.89
/src/effects.js
1
var oldTweenRun = jQuery.Tween.prototype.run;
1×
2

3
jQuery.Tween.prototype.run = function( percent ) {
1×
4
        if ( jQuery.easing[ this.easing ].length > 1 ) {
7×
5
                migrateWarn(
1×
6
                        "easing function " +
7
                        "\"jQuery.easing." + this.easing.toString() +
8
                        "\" should use only first argument"
9
                );
10

11
                jQuery.easing[ this.easing ] = jQuery.easing[ this.easing ].bind(
1×
12
                        jQuery.easing,
13
                        percent, this.options.duration * percent, 0, 1, this.options.duration
14
                );
15
        }
16

17
        oldTweenRun.apply( this, arguments );
7×
18
};
19

20
jQuery.fx.interval = jQuery.fx.interval || 13;
1×
21

22
// Support: IE9, Android <=4.4
23
// Avoid false positives on browsers that lack rAF
24
if ( window.requestAnimationFrame ) {
1×
NEW
25
        migrateWarnProp( jQuery.fx, "interval", jQuery.fx.interval,
!
26
                "jQuery.fx.interval is deprecated" );
27
}
Troubleshooting · Open an Issue · Sales · Support · ENTERPRISE · CAREERS · STATUS
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2023 Coveralls, Inc