2 <html xmlns=
"http://www.w3.org/1999/xhtml">
4 <title>MR Integration Basic Test
</title>
5 <link href=
"https://www.google.com/cast?__testprovider__=true" rel=
"default-presentation">
6 <script type=
"text/javascript" src=
"common.js"></script>
9 * Checks if the session has NOT been started successfully.
11 function checkSessionFailedToStart() {
12 if (!startSessionPromise
) {
13 sendResult(false, 'Failed to start session');
15 startSessionPromise
.then(
16 function (currentSession
) {
17 sendResult(false, 'Session should not be started successfully.');
18 }).catch(function(e
) {
19 if (e
.message
.indexOf('Unknown sink') > -1) {
23 'Error message is not correct, it should contain "Unknown sink"');