Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chrome / test / media_router / resources / no_provider.html
blob223aff02a6d61033d7a026d11ede0385900bfd19
1 <!DOCTYPE HTML>
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <title>MR Integration No Provider 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('No provider supports it') > -1) {
19 sendResult(true, '');
21 sendResult(false,
22 'Error message is not correct, ' +
23 'it should contain "No provider supports it"');
27 </script>
28 </head>
29 <body>
30 </body>
31 </html>