https://github.com/web-platform-tests/wpt
Revision a87d0554fa57fcb63a689971fbe13177e6ff030a authored by Kenichi Ishibashi on 29 March 2018, 08:11:29 UTC, committed by Blink WPT Bot on 29 March 2018, 08:21:08 UTC
This function isn't used.

Bug: 658997,402387
Change-Id: I01d751dfebaafd1580beaeb12ebcd124df132b26
Reviewed-on: https://chromium-review.googlesource.com/984919
Commit-Queue: Kenichi Ishibashi <bashi@chromium.org>
Reviewed-by: Matt Falkenhagen <falken@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Cr-Commit-Position: refs/heads/master@{#546765}
1 parent 55846d5
Raw File
Tip revision: a87d0554fa57fcb63a689971fbe13177e6ff030a authored by Kenichi Ishibashi on 29 March 2018, 08:11:29 UTC
Remove create_file_system_file()
Tip revision: a87d055
usbIsochronousOutTransferResult.https.html
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
'use strict';

test(t => {
  let packets = [
      new USBIsochronousOutTransferPacket('ok', 42),
      new USBIsochronousOutTransferPacket('stall')
  ];

  let result = new USBIsochronousOutTransferResult(packets);
  assert_equals(result.packets.length, 2);
  assert_equals(result.packets[0].status, 'ok');
  assert_equals(result.packets[0].bytesWritten, 42);
  assert_equals(result.packets[1].status, 'stall');
  assert_equals(result.packets[1].bytesWritten, 0);
}, 'Can construct a USBIsochronousOutTransferResult');

test(t => {
  assert_throws(TypeError(), () => new USBIsochronousOutTransferResult());
}, 'Cannot construct a USBIsochronousOutTransferResult without packets');
</script>
back to top