Revision 069680cf1da5c762e912246dbcc2d82a280cd48d authored by Morten Stenshorne on 10 April 2018, 10:57:45 UTC, committed by Blink WPT Bot on 10 April 2018, 11:06:35 UTC
We used to rely on this taking place lazily via
MinPreferredLogicalWidth(), but that method won't necessarily be called
if the table is a flex/grid item.

Bug: 810327
Change-Id: Ic817bd109544d4b9e961552d0a3a38f127e6e548
Reviewed-on: https://chromium-review.googlesource.com/1000781
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Reviewed-by: David Grogan <dgrogan@chromium.org>
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#549479}
1 parent 429e62e
Raw File
interfaces.html
<!doctype html>
<meta charset=utf-8>
<title>UI Events IDL tests</title>
<meta name=timeout content=long>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=/resources/WebIDLParser.js></script>
<script src=/resources/idlharness.js></script>

<h1>UI Events IDL tests</h1>
<div id=log></div>

<script>
"use strict";
function doTest([dom, uievents]) {
  var idlArray = new IdlArray();
  idlArray.add_untested_idls(dom);
  idlArray.add_idls(uievents);

  idlArray.add_objects({
    FocusEvent: ['new FocusEvent("event")'],
    MouseEvent: ['new MouseEvent("event")'],
    WheelEvent: ['new WheelEvent("event")'],
    KeyboardEvent: ['new KeyboardEvent("event")'],
    CompositionEvent: ['new CompositionEvent("event")'],
    UIEvent: ['new UIEvent("event")'],
    InputEvent: ['new InputEvent("event")'],
  });
  idlArray.test();
};

function fetchData(url) {
  return fetch(url).then((response) => response.text());
}

function waitForLoad() {
  return new Promise(function(resolve) {
    addEventListener("load", resolve);
  });
}

promise_test(function() {
  return Promise.all([fetchData("/interfaces/dom.idl"),
                      fetchData("/interfaces/uievents.idl")])
                .then(doTest);
}, "Test driver");

</script>
back to top