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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/connectGATT.html

Issue 1527853002: bluetooth: Add disconnect function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-device-identifier
Patch Set: Fix test that fails after upstream change. Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/bluetooth/connectGATT.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/connectGATT.html b/third_party/WebKit/LayoutTests/bluetooth/connectGATT.html
index 28a46a8c4b1b95137b5ea2b0e8b1dcf8727f9790..55c695bcdc297cbd79adcad08441a28f32e2fa27 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/connectGATT.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/connectGATT.html
@@ -123,4 +123,17 @@ promise_test(() => {
.then(device => device.connectGATT())
.then(gattServer => assert_true(gattServer.connected));
}, 'Device will connect');
+
+promise_test(() => {
+ testRunner.setBluetoothMockDataSet('');
+ testRunner.setBluetoothMockDataSet('HeartRateAdapter');
+ return requestDeviceWithKeyDown({filters: [{services: ['heart_rate']}]})
+ .then(device => {
+ return Promise.all([device.connectGATT(), device.connectGATT()])
+ }).then(gattServers => {
+ // connectGATT should return the same object if it was created earlier.
+ // TODO(ortuno): change to assert_equals.
+ assert_not_equals(gattServers[0], gattServers[1]);
+ });
+});
</script>
« no previous file with comments | « content/renderer/bluetooth/web_bluetooth_impl.cc ('k') | third_party/WebKit/LayoutTests/bluetooth/disconnect.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698