Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(906)

Side by Side Diff: third_party/WebKit/LayoutTests/bluetooth/iframeRequestDevice.html

Issue 1815483003: bluetooth: Create Mojo equivalent of SetBluetoothMockDataSet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-mojo
Patch Set: MMerge with ToT Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698