| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../resources/testharness.js"></script> | 2 <script src="../../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> | 3 <script src="../../../resources/testharnessreport.js"></script> |
| 4 <script src="../../resources/bluetooth/bluetooth-helpers.js"></script> | 4 <script src="../../../resources/bluetooth/bluetooth-helpers.js"></script> |
| 5 <script> | 5 <script> |
| 6 'use strict'; | 6 'use strict'; |
| 7 // The following tests make sure the Web Bluetooth implementation | 7 // The following tests make sure the Web Bluetooth implementation |
| 8 // responds correctly to the different types of errors the | 8 // responds correctly to the different types of errors the |
| 9 // underlying platform might throw. | 9 // underlying platform might throw. |
| 10 | 10 |
| 11 // Each implementation maps these devices to specific code paths | 11 // Each implementation maps these devices to specific code paths |
| 12 // that result in different errors thus increasing code coverage | 12 // that result in different errors thus increasing code coverage |
| 13 // when testing. Therefore some of these devices might not be useful | 13 // when testing. Therefore some of these devices might not be useful |
| 14 // for all implementations. | 14 // for all implementations. |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // .then(device => assert_promise_rejects_with_message( | 108 // .then(device => assert_promise_rejects_with_message( |
| 109 // device.gatt.connect(), | 109 // device.gatt.connect(), |
| 110 // testSpec.error, | 110 // testSpec.error, |
| 111 // testSpec.testName)); | 111 // testSpec.testName)); |
| 112 }); | 112 }); |
| 113 return test_promises; | 113 return test_promises; |
| 114 }); | 114 }); |
| 115 }, 'Adapter fails to connect to device. Should reject with the correct ' + | 115 }, 'Adapter fails to connect to device. Should reject with the correct ' + |
| 116 'exception.'); | 116 'exception.'); |
| 117 </script> | 117 </script> |
| OLD | NEW |