File tree 2 files changed +14
-6
lines changed
2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -116,12 +116,18 @@ module.exports = function (b, opts) {
116
116
var text = msg . text ( ) ;
117
117
if ( msg . type ( ) !== 'log' ) {
118
118
// Swallow SSL vertificate warning that occurs on navigation before
119
- // the script is injected.
119
+ // the script is injected. Also swallow deprecation notices about
120
+ // window.webkitStorageInfo.
120
121
text . split ( '\n' ) . forEach ( function ( line ) {
121
- if ( line . indexOf ( 'SSL certificate' ) === - 1 ) {
122
- process . stderr . write ( line ) ;
123
- process . stderr . write ( '\n' ) ;
122
+ var skipLine = line . indexOf ( 'SSL certificate' ) >= 0
123
+ || line . indexOf (
124
+ '\'window.webkitStorageInfo\' is deprecated'
125
+ ) >= 0 ;
126
+ if ( skipLine ) {
127
+ return ;
124
128
}
129
+ process . stderr . write ( line ) ;
130
+ process . stderr . write ( '\n' ) ;
125
131
} ) ;
126
132
return ;
127
133
}
Original file line number Diff line number Diff line change @@ -139,15 +139,17 @@ describe('chromium', function () {
139
139
140
140
assert . equal ( code , 0 ) ;
141
141
assert . equal ( stdout , '# chromium:\n' ) ;
142
-
143
142
// The sub-set lines actually relating to the console output. Other
144
143
// lines may relate to internal Chrome errors, such as
145
144
// '[0322/162300.874805:ERROR:command_buffer_proxy_impl.cc(125)]
146
145
// ContextResult::kTransientFailure: Failed to send
147
146
// GpuChannelMsg_CreateCommandBuffer.'
148
147
var stderrLines = stderr
149
148
. split ( '\n' )
150
- . filter ( function ( l ) { return l . indexOf ( 'INFO:CONSOLE' ) >= 0 ; } ) ;
149
+ . filter ( function ( l ) {
150
+ return l . indexOf ( 'INFO:CONSOLE' ) >= 0
151
+ && l . indexOf ( 'window.webkitStorageInfo' ) === - 1 ;
152
+ } ) ;
151
153
var expectedLines = [
152
154
'ok 1 test passes' ,
153
155
'# tests 1' ,
You can’t perform that action at this time.
0 commit comments