File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -146,22 +146,6 @@ describe('BrowserContext', function() {
146
146
expect ( popup . mainFrame ( ) ) . toBeTruthy ( ) ;
147
147
}
148
148
} ) ;
149
- it ( 'should not call binding on errored pages' , async ( { browser, server} ) => {
150
- const context = await browser . newContext ( ) ;
151
- let gotBinding = 0 ;
152
- await context . exposeFunction ( 'add' , ( a , b ) => {
153
- gotBinding ++ ;
154
- return a + b ;
155
- } ) ;
156
- const page = await context . newPage ( ) ;
157
- server . setRoute ( '/empty.html' , ( req , res ) => {
158
- res . end ( `<script>window.add(2, 3)</script><a href="${ server . EMPTY_PAGE } " target="_blank">Click me</a>` ) ;
159
- } ) ;
160
- await page . goto ( server . EMPTY_PAGE ) ;
161
- await page . click ( '"Click me"' ) ;
162
- await context . close ( ) ;
163
- expect ( gotBinding ) . toBe ( 1 ) ;
164
- } )
165
149
} ) ;
166
150
167
151
describe ( 'BrowserContext({userAgent})' , function ( ) {
You can’t perform that action at this time.
0 commit comments