Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / test / media_router / resources / fail_create_route.html
blobd2a00c15a927bca72cd9b2223a506e0416d19c0f
1 <!DOCTYPE HTML>
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <title>MR Integration Fail startSession Test</title>
5 <script type="text/javascript" src="common.js"></script>
6 <script>
7 /**
8 * Checks if the session has NOT been started successfully.
9 */
10 function checkSessionFailedToStart() {
11 if (!startSessionPromise) {
12 sendResult(false, 'Failed to start session');
13 } else {
14 startSessionPromise.then(
15 function (session) {
16 sendResult(false, 'Session should not be started successfully.');
17 }).catch(function(e) {
18 if (e.message.indexOf('Unknown sink') > -1) {
19 sendResult(true, '');
21 sendResult(false,
22 'Error message is not correct, it should contain "Unknown sink"');
26 </script>
27 </head>
28 <body>
29 </body>
30 </html>