| 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-helpers.js"></script> | 
| 5 <body> | 5 <body> | 
| 6   <script> | 6   <script> | 
| 7   "use strict"; | 7   "use strict"; | 
| 8 | 8 | 
| 9   const numIframes = 5; | 9   const numIframes = 5; | 
| 10 | 10 | 
| (...skipping 18 matching lines...) Expand all  Loading... | 
| 29         } | 29         } | 
| 30       }); | 30       }); | 
| 31 | 31 | 
| 32       Array.prototype.forEach.call(document.querySelectorAll('iframe'), iframe =
    > { | 32       Array.prototype.forEach.call(document.querySelectorAll('iframe'), iframe =
    > { | 
| 33         callWithKeyDown(() => { | 33         callWithKeyDown(() => { | 
| 34           iframe.contentWindow.postMessage('Go', '*'); | 34           iframe.contentWindow.postMessage('Go', '*'); | 
| 35         }); | 35         }); | 
| 36       }); | 36       }); | 
| 37     }); | 37     }); | 
| 38 | 38 | 
| 39     testRunner.setBluetoothMockDataSet('HeartRateAdapter'); | 39     return setBluetoothFakeAdapter('HeartRateAdapter') | 
| 40     for (let i = 0; i < numIframes; i++) { | 40       .then(() => { | 
| 41       let iframe = document.createElement('iframe'); | 41         for (let i = 0; i < numIframes; i++) { | 
| 42       iframe.src = 'resources/requestDevice-in-iframe.html'; | 42           let iframe = document.createElement('iframe'); | 
| 43       document.body.appendChild(iframe); | 43           iframe.src = 'resources/requestDevice-in-iframe.html'; | 
| 44     } | 44           document.body.appendChild(iframe); | 
|  | 45         } | 
|  | 46       }); | 
| 45   }, 'Concurrent requestDevice calls in iframes work.'); | 47   }, 'Concurrent requestDevice calls in iframes work.'); | 
| 46   </script> | 48   </script> | 
| 47 </body> | 49 </body> | 
| OLD | NEW | 
|---|