mirror of
https://github.com/servo/servo.git
synced 2025-06-30 20:13:39 +01:00
19 lines
660 B
HTML
19 lines
660 B
HTML
<!DOCTYPE html>
|
|
<title>Bluetooth interface</title>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script>
|
|
'use strict';
|
|
const test_desc = 'Bluetooth IDL test';
|
|
|
|
test(() => {
|
|
assert_throws(new TypeError(), () => new Bluetooth(),
|
|
'the constructor should not be callable with "new"');
|
|
assert_throws(new TypeError(), () => Bluetooth(),
|
|
'the constructor should not be callable');
|
|
|
|
// Bluetooth implements BluetoothDiscovery;
|
|
assert_true('requestDevice' in navigator.bluetooth);
|
|
assert_equals(navigator.bluetooth.requestDevice.length, 0);
|
|
}, test_desc);
|
|
</script>
|