| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Budget interfaces available in a Service Worker</title> | 4 <title>Budget interfaces available in a Service Worker</title> |
| 5 <script src="../resources/testharness.js"></script> | 5 <script src="../resources/testharness.js"></script> |
| 6 <script src="../resources/testharnessreport.js"></script> | 6 <script src="../resources/testharnessreport.js"></script> |
| 7 <script src="../serviceworker/resources/test-helpers.js"></script> | 7 <script src="../serviceworker/resources/test-helpers.js"></script> |
| 8 <script src="../notifications/resources/test-helpers.js"></script> | 8 <script src="../notifications/resources/test-helpers.js"></script> |
| 9 </head> | 9 </head> |
| 10 <body> | 10 <body> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 assert_unreached('Invalid message from the service worker'); | 23 assert_unreached('Invalid message from the service worker'); |
| 24 | 24 |
| 25 assert_equals(event.data.command, 'checkInterfaces'); | 25 assert_equals(event.data.command, 'checkInterfaces'); |
| 26 assert_true(event.data.success, | 26 assert_true(event.data.success, |
| 27 'checkInterfaces should succeed but failed with error: ' + | 27 'checkInterfaces should succeed but failed with error: ' + |
| 28 event.data.message); | 28 event.data.message); |
| 29 }); | 29 }); |
| 30 | 30 |
| 31 return sendCommand(port, { command: 'checkInterfaces' }); | 31 return sendCommand(port, { command: 'checkInterfaces' }); |
| 32 }) | 32 }) |
| 33 .catch(unreached_rejection(test)); | |
| 34 }, 'Budget interfaces should be available in a Service Worker'); | 33 }, 'Budget interfaces should be available in a Service Worker'); |
| 35 </script> | 34 </script> |
| 36 </body> | 35 </body> |
| 37 </html> | 36 </html> |
| OLD | NEW |