{"size": 833, "ext": "js", "max_stars_repo_path": "bluetooth/requestDevice/canonicalizeFilter/empty-services-member.https.window.js", "max_stars_repo_name": "qanat/wpt", "max_stars_repo_stars_event_min_datetime": "2015-01-01T01:57:10.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T23:33:32.000Z", "max_issues_repo_path": "bluetooth/requestDevice/canonicalizeFilter/empty-services-member.https.window.js", "max_issues_repo_name": "qanat/wpt", "max_issues_repo_issues_event_min_datetime": "2018-05-28T09:38:03.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T20:55:48.000Z", "max_forks_repo_path": "bluetooth/requestDevice/canonicalizeFilter/empty-services-member.https.window.js", "max_forks_repo_name": "qanat/wpt", "max_forks_repo_forks_event_min_datetime": "2015-01-02T11:32:21.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-31T16:35:46.000Z"}
{"max_stars_count": 14668, "max_issues_count": 7642, "max_forks_count": 5941, "avg_line_length": 39.6666666667, "max_line_length": 74, "alphanum_fraction": 0.7070828331}
// META: script=/resources/testharness.js
// META: script=/resources/testharnessreport.js
// META: script=/resources/testdriver.js
// META: script=/resources/testdriver-vendor.js
// META: script=/bluetooth/resources/bluetooth-test.js
// META: script=/bluetooth/resources/bluetooth-fake-devices.js
'use strict';
const test_desc = 'Services member must contain at least one service.';
const expected = new TypeError();

bluetooth_test(() => {
  let test_promises = Promise.resolve();
  generateRequestDeviceArgsWithServices([]).forEach(
      args => {
          test_promises = test_promises.then(
              () => assert_promise_rejects_with_message(
                  requestDeviceWithTrustedClick(args), expected,
                  'Services member must contain at least one service'))});
  return test_promises;
}, test_desc);
