Revision e5478286b1bd4e84889619e4c75f017f6021a2d9 authored by Darren Shen on 12 April 2018, 11:59:24 UTC, committed by Chromium WPT Sync on 12 April 2018, 11:59:24 UTC
Introduces the <angle> data type. Test fails because we compute offset-rotate to a pair rather than 'as specified' had to rebaseline all the tests. Bug: 820299 Change-Id: Ifdc192550b0b544b9887af80c259b3bfeede556b Reviewed-on: https://chromium-review.googlesource.com/1003433 Commit-Queue: Darren Shen <shend@chromium.org> Reviewed-by: nainar <nainar@chromium.org> Cr-Commit-Position: refs/heads/master@{#550146}
1 parent 19a42b9
usbConnectionEvent.https.html
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/fake-devices.js"></script>
<script src="resources/usb-helpers.js"></script>
<script>
'use strict';
usb_test(() => {
return getFakeDevice().then(({ device }) => {
let evt = new USBConnectionEvent('connect', { device: device });
assert_equals(evt.type, 'connect');
assert_equals(evt.device, device);
});
}, 'Can construct a USBConnectionEvent with a device');
test(t => {
assert_throws(TypeError(), () =>
new USBConnectionEvent('connect', { device: null }));
assert_throws(TypeError(), () => new USBConnectionEvent('connect', {}));
}, 'Cannot construct a USBConnectionEvent without a device');
</script>
Computing file changes ...