Index: remoting/webapp/unittests/it2me_helper_channel_unittest.js |
diff --git a/remoting/webapp/unittests/it2me_helper_channel_unittest.js b/remoting/webapp/unittests/it2me_helper_channel_unittest.js |
index b5511c33058c9c9a0ef7d3ceb1aea7589e0561d1..f0a0fa230ea08838d45436cb292d28b4daa4812c 100644 |
--- a/remoting/webapp/unittests/it2me_helper_channel_unittest.js |
+++ b/remoting/webapp/unittests/it2me_helper_channel_unittest.js |
@@ -61,6 +61,16 @@ function promiseResolveSynchronous(value) { |
}; |
} |
+test('onHangoutMessage_("hello") should return supportedFeatures', function() { |
+ hangoutPort.onMessage.mock$fire( |
+ { method: remoting.It2MeHelperChannel.HangoutMessageTypes.HELLO }); |
+ |
+ sinon.assert.calledWith(hangoutPort.postMessage, { |
+ method: remoting.It2MeHelperChannel.HangoutMessageTypes.HELLO_RESPONSE, |
+ supportedFeatures: base.values(remoting.It2MeHelperChannel.Features) |
Jamie
2014/08/15 23:30:12
This is testing something stricter than it needs t
|
+ }); |
+}); |
+ |
test('onHangoutMessage_(|connect|) should launch the webapp', |
function() { |
sinon.assert.called(appLauncher.launch); |