File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed
Tests/WebViewJavascriptBridgeTests Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -61,23 +61,6 @@ static void loadEchoSample(id webView) {
6161
6262const NSTimeInterval timeoutSec = 5 ;
6363
64- - (void )testInitialization {
65- [self classSpecificTestInitialization: _uiWebView];
66- [self classSpecificTestInitialization: _wkWebView];
67- [self waitForExpectationsWithTimeout: timeoutSec handler: NULL ];
68- }
69- - (void )classSpecificTestInitialization : (id )webView {
70- XCTestExpectation *startup = [self expectationWithDescription: @" Startup completed" ];
71- WebViewJavascriptBridge *bridge = [self bridgeForWebView: webView];
72- [bridge registerHandler: @" Greet" handler: ^(id data, WVJBResponseCallback responseCallback) {
73- XCTAssertEqualObjects (data, @" Hello world" );
74- [startup fulfill ];
75- }];
76- XCTAssertNotNil (bridge);
77-
78- loadEchoSample (webView);
79- }
80-
8164- (void )testEchoHandler {
8265 [self classSpecificTestEchoHandler: _uiWebView];
8366 [self classSpecificTestEchoHandler: _wkWebView];
Original file line number Diff line number Diff line change 1515 }
1616
1717 setupWebViewJavascriptBridge ( function ( bridge ) {
18- bridge . callHandler ( 'Greet' , 'Hello world' ) ;
1918 bridge . registerHandler ( 'echoHandler' , function ( data , responseCallback ) {
2019 responseCallback ( data )
2120 } )
You can’t perform that action at this time.
0 commit comments