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
Raw File
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>
back to top