Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <script src="../../resources/testharness.js"></script> | |
| 3 <script src="../../resources/testharnessreport.js"></script> | |
| 4 <script src="../../resources/bluetooth/bluetooth-helpers.js"></script> | |
| 5 <body> | |
| 6 <script> | |
| 7 "use strict"; | |
| 8 async_test(test => { | |
| 9 window.onmessage = messageEvent => test.step(() => { | |
| 10 if (messageEvent.data === 'Ready') { | |
| 11 let iframe = document.querySelector('iframe'); | |
| 12 callWithKeyDown(() => { | |
| 13 iframe.contentWindow.postMessage('Go', '*'); | |
| 14 }); | |
| 15 } else if (messageEvent.data === 'Connected') { | |
| 16 let iframe = document.querySelector('iframe'); | |
| 17 // Hide | |
| 18 testRunner.setPageVisibility('hidden'); | |
| 19 // Detach | |
| 20 iframe.remove(); | |
| 21 test.done(); | |
| 22 } else { | |
| 23 assert_unreached('iframe sent invalid data: ' + messageEvent.data); | |
| 24 } | |
| 25 }); | |
| 26 setBluetoothFakeAdapter('HeartRateAdapter') | |
| 27 .then(() => { | |
| 28 let iframe = document.createElement('iframe'); | |
| 29 iframe.src = '../../resources/bluetooth/connect-iframe.html'; | |
| 30 document.body.appendChild(iframe); | |
| 31 }); | |
| 32 }, 'Hide then detach frame. We shouldn\'t crash.'); | |
|
Jeffrey Yasskin
2016/05/04 00:49:32
This one's just deleted because hiding no longer d
ortuno
2016/05/04 16:41:49
Yup!
| |
| 33 </script> | |
| 34 </body> | |
| OLD | NEW |