Revision 071e621564bc4af04a04e8b8e515bfb306a6613e authored by Darren Shen on 13 April 2018, 06:23:04 UTC, committed by Blink WPT Bot on 13 April 2018, 06:52:44 UTC
Known failures: - all: computed value is always "", it should compute to something... - animation-name: <custom-ident> not mentioned in typed om spec. - cursor: 'grab' and 'grabbing' are still webkit prefixed. - list-style-type: Blink implements something different to the spec. - page: computed value is always "", <custom-ident> not mentioned in typedom spec - perspective: '0' seems to compute to none. - perspective-origin: Blink doesn't support 'none' keyword - quotes: computed value is always "" - size: computed value is always "" - speak: Blink implements something different to the spec. - transform-box: Blink doesn't support 'border-box' keyword - z-index: computed value is always 'auto' (might be something to do with stacking context) Bug: 820299 Change-Id: I629dda1c4bcac92f59cae3bddf11bd375f98e5c2 Reviewed-on: https://chromium-review.googlesource.com/1003434 Commit-Queue: Darren Shen <shend@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#550527}
1 parent 96bceca
usbIsochronousInTransferResult.https.html
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
'use strict';
test(t => {
let data_view = new DataView(Uint8Array.from([1, 2, 3, 4]).buffer);
let packet_data_view = new DataView(data_view.buffer);
let packets = [
new USBIsochronousInTransferPacket('ok', packet_data_view),
new USBIsochronousInTransferPacket('stall')
];
let result = new USBIsochronousInTransferResult(packets, data_view);
assert_equals(result.data.getInt32(0), 16909060);
assert_equals(result.packets.length, 2);
assert_equals(result.packets[0].status, 'ok');
assert_equals(result.packets[0].data.getInt32(0), 16909060);
assert_equals(result.packets[1].status, 'stall');
assert_equals(result.packets[1].data, null);
}, 'Can construct a USBIsochronousInTransferResult');
test(t => {
let packets = [
new USBIsochronousInTransferPacket('stall'),
new USBIsochronousInTransferPacket('stall')
];
let result = new USBIsochronousInTransferResult(packets);
assert_equals(result.data, null);
assert_equals(result.packets.length, 2);
assert_equals(result.packets[0].status, 'stall');
assert_equals(result.packets[0].data, null);
assert_equals(result.packets[1].status, 'stall');
assert_equals(result.packets[1].data, null);
}, 'Can construct a USBIsochronousInTransferResult without a DataView');
test(t => {
assert_throws(TypeError(), () => new USBIsochronousInTransferResult());
}, 'Cannot construct a USBIsochronousInTransferResult without packets');
</script>
Computing file changes ...