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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/idl-BluetoothDevice.html

Issue 2544513004: Fix WebBluetooth generator to distinguish between different methods. (Closed)
Patch Set: Remove TL;DR in README Created 4 years 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/idl-BluetoothDevice.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/idl-BluetoothDevice.html b/third_party/WebKit/LayoutTests/bluetooth/idl-BluetoothDevice.html
deleted file mode 100644
index 70c8c35ca6e6ad75354c7f783863bb5522392876..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/bluetooth/idl-BluetoothDevice.html
+++ /dev/null
@@ -1,32 +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>
-test(() => {
- assert_throws(null, () => new BluetoothDevice(),
- 'the constructor should not be callable with "new"');
- assert_throws(null, () => BluetoothDevice(),
- 'the constructor should not be callable');
-}, 'BluetoothDevice IDL test');
-
-test(t => { assert_true(window.testRunner instanceof Object); t.done(); },
- 'window.testRunner is required for the following tests.');
-
-promise_test(() => {
- return setBluetoothFakeAdapter('GlucoseHeartRateAdapter')
- .then(() => requestDeviceWithKeyDown({
- filters: [{services: ['heart_rate']}]}))
- .then(device => {
- assert_equals(device.constructor.name, 'BluetoothDevice');
-
- // Attempt (and fail) to overwrite all members, verifying they are
- // readonly.
- var old_device_id = device.id;
- device.id = 'overwritten';
- device.name = 'overwritten';
- assert_equals(device.id, old_device_id);
- assert_equals(device.name, 'Heart Rate Device');
- });
-}, 'BluetoothDevice attributes.');
-</script>

Powered by Google App Engine
This is Rietveld 408576698