| 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-helpers.js"></script> | 4 <script src="../resources/bluetooth/bluetooth-helpers.js"></script> |
| 5 <script> | 5 <script> |
| 6 'use strict'; | 6 'use strict'; |
| 7 | 7 |
| 8 test(t => { assert_true(window.testRunner instanceof Object); t.done(); }, | 8 test(t => { assert_true(window.testRunner instanceof Object); t.done(); }, |
| 9 'window.testRunner is required for the following tests.'); | 9 'window.testRunner is required for the following tests.'); |
| 10 // Tests that we are handling values returned from the underlying platform | 10 // Tests that we are handling values returned from the underlying platform |
| 11 // correctly. Only meant to be used by chromium. | 11 // correctly. Only meant to be used by chromium. |
| 12 [{ | 12 [{ |
| 13 name: 'Tx Power too low must result in nulled txPower.', | 13 name: 'Tx Power too low must result in nulled txPower.', |
| 14 tx_power: -128, | 14 tx_power: -128, |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 : null; | 109 : null; |
| 110 let expected_rssi = power_test.rssi_present ? | 110 let expected_rssi = power_test.rssi_present ? |
| 111 -51 /* power at 1m from device broadcasting at 0.1mW *
/ | 111 -51 /* power at 1m from device broadcasting at 0.1mW *
/ |
| 112 : null; | 112 : null; |
| 113 assert_equals(adv_data.txPower, expected_tx_power); | 113 assert_equals(adv_data.txPower, expected_tx_power); |
| 114 assert_equals(adv_data.rssi, expected_rssi); | 114 assert_equals(adv_data.rssi, expected_rssi); |
| 115 }); | 115 }); |
| 116 }, power_test.name) | 116 }, power_test.name) |
| 117 }); | 117 }); |
| 118 </script> | 118 </script> |
| OLD | NEW |