Skip to content

Commit

Permalink
test(smokehouse): Passive event listener violation doesn't report on …
Browse files Browse the repository at this point in the history
…passive:false now (#3498)
  • Loading branch information
paulirish authored Oct 6, 2017
1 parent f7a3a27 commit c56c97b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lighthouse-cli/test/fixtures/dobetterweb/dbw_tester.html
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ <h2>Do better web tester page</h2>
console.log('touchstart');
});

// FAIL
// PASS - passive:false doesn't get a warning now. crbug.com/770208
window.addEventListener('mousewheel', function(e) {
console.log('mousewheel');
}, {passive: false});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,11 @@ module.exports = [
score: false,
extendedInfo: {
value: {
// Note: This would normally be 7 but M56 defaults document-level
// Note: Originally this was 7 but M56 defaults document-level
// listeners to passive. See https://www.chromestatus.com/features/5093566007214080
length: 4,
// Note: It was 4, but {passive:false} doesn't get a warning as of M63: crbug.com/770208
// COMPAT: This can be set to 3 when m63 is stable.
length: '>=3',
},
},
},
Expand Down

0 comments on commit c56c97b

Please sign in to comment.