Revision 5d3d98450ed243074ead60b3dd06c94c8608bc77 authored by Chris Nardi on 08 April 2018, 02:03:44 UTC, committed by Chris Nardi on 08 April 2018, 02:03:44 UTC
Many tests in variable-presentation-attribute.html went against their relative specs. For most attributes, this change corrects their default values. This change also removes the default value test for font-family, since the default value is implementation-dependent.

This change also removes the tests for `glyph-orientation-horizontal`, `glyph-orientation-vertical`, and `kerning`, as these properties have been removed by Chrome and Firefox as they are obsolete.
1 parent d0d6224
Raw File
interfaces.html
<!doctype html>
<meta charset=utf-8>
<title>XMLHttpRequest IDL tests</title>
<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>XMLHttpRequest IDL tests</h1>
<div id=log></div>

<script type=text/plain class=untested>
[TreatNonCallableAsNull]
callback EventHandlerNonNull = any (Event event);
typedef EventHandlerNonNull? EventHandler;
</script>
<script>
"use strict";
var form = document.createElement("form");
var idlArray = new IdlArray();

function doTest([domIdl, xhrIdl]) {
  idlArray.add_untested_idls(domIdl);
  var untestedIdl = document.querySelector("script.untested").textContent;
  idlArray.add_untested_idls(untestedIdl);
  idlArray.add_idls(xhrIdl);
  idlArray.add_objects({
    XMLHttpRequest: ['new XMLHttpRequest()'],
    XMLHttpRequestUpload: ['(new XMLHttpRequest()).upload'],
    FormData: ['new FormData()', 'new FormData(form)']
  });
  idlArray.test();
}

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

promise_test(() => {
  return Promise.all(["/interfaces/dom.idl",
                      "/interfaces/xhr.idl"].map(fetchText))
    .then(doTest);
}, "Test driver");
</script>
back to top