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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/getCharacteristic/get-same-characteristic.html

Issue 2474863004: bluetooth: Add characteristics to the device's attribute instance map (Closed)
Patch Set: clean up Created 4 years, 1 month 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/getCharacteristic/get-same-characteristic.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/getCharacteristic/get-same-characteristic.html b/third_party/WebKit/LayoutTests/bluetooth/getCharacteristic/get-same-characteristic.html
deleted file mode 100644
index 3a318ea19be595696c07157f063c734ce3d851c4..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/bluetooth/getCharacteristic/get-same-characteristic.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<script src="../../resources/testharness.js"></script>
-<script src="../../resources/testharnessreport.js"></script>
-<script src="../../resources/bluetooth/bluetooth-helpers.js"></script>
-<script>
-'use strict';
-promise_test(() => {
- return setBluetoothFakeAdapter('HeartRateAdapter')
- .then(() => requestDeviceWithKeyDown({
- filters: [{services: ['heart_rate']}],
- optionalServices: ['generic_access']}))
- .then(device => device.gatt.connect())
- .then(gattServer => gattServer.getPrimaryService('generic_access'))
- .then(services => Promise.all([
- services.getCharacteristic('gap.device_name'),
- services.getCharacteristic('gap.device_name')]))
- .then(characteristics => {
- // TODO(ortuno): getCharacteristic should return the same object
- // if it was created earlier.
- // https://crbug.com/495270
- for (var i = 1; i < characteristics.length; i++) {
- assert_not_equals(
- characteristics[0], characteristics[i],
- 'Should return the same characteristic as the first call.');
- }
- });
-}, 'Calls to get the same characteristic should return the same object.');
-</script>

Powered by Google App Engine
This is Rietveld 408576698