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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/get-same-characteristics.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/getCharacteristics/get-same-characteristics.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/get-same-characteristics.html b/third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/get-same-characteristics.html
deleted file mode 100644
index b4f16492bf006e9e537f0e1711147481bf144135..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/get-same-characteristics.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']}]}))
- .then(device => device.gatt.connect())
- .then(gattServer => gattServer.getPrimaryService('heart_rate'))
- .then(service => Promise.all([
- service.getCharacteristics('body_sensor_location'),
- service.getCharacteristics('body_sensor_location')]))
- .then(characteristics => {
- let chars1 = characteristics[0];
- let chars2 = characteristics[1];
- assert_equals(chars1.length, chars2.length);
- // TODO(ortuno): getCharacteristics should return the same objects
- // if they were created earlier.
- // https://crbug.com/495270
- for (let i = 0; i < chars1.length; i++) {
- assert_not_equals(chars1[i], chars2[i]);
- }
- });
-}, 'Calls to get the same characteristics should return the same objects.');
-</script>

Powered by Google App Engine
This is Rietveld 408576698