https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 43fb02d8f7895c551a4274c54e7dc0cc777537a2 authored by Domenic Denicola on 27 June 2017, 16:07:06 UTC
Remove redundant statements per code review
Tip revision: 43fb02d
idl-Bluetooth.html
<!DOCTYPE html>
<title>Bluetooth interface</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
'use strict';

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);
}, 'Bluetooth IDL test');

</script>
back to top