mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
Update web-platform-tests to revision 3137d1d2d7757366a69f8a449b458b5057e0e81e
This commit is contained in:
parent
81ca858678
commit
d6ba94ca28
2339 changed files with 89274 additions and 9328 deletions
38
tests/wpt/web-platform-tests/input-events/idlharness.html
Normal file
38
tests/wpt/web-platform-tests/input-events/idlharness.html
Normal file
|
@ -0,0 +1,38 @@
|
|||
<title>Input Event IDL tests</title>
|
||||
<link rel="help" href="https://w3c.github.io/input-events/#h-interface-inputevent"/>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/WebIDLParser.js"></script>
|
||||
<script src="/resources/idlharness.js"></script>
|
||||
|
||||
<pre id="untested_idl">
|
||||
interface InputEvent {
|
||||
};
|
||||
</pre>
|
||||
|
||||
<pre id='idl'>
|
||||
partial interface InputEvent {
|
||||
readonly attribute DOMString inputType;
|
||||
readonly attribute DataTransfer? dataTransfer;
|
||||
sequence<StaticRange> getTargetRanges();
|
||||
};
|
||||
|
||||
partial dictionary InputEventInit {
|
||||
DOMString inputType = "";
|
||||
DataTransfer? dataTransfer = null;
|
||||
sequence<StaticRange> targetRanges = [];
|
||||
};
|
||||
</pre>
|
||||
|
||||
<script>
|
||||
(function(){
|
||||
"use strict";
|
||||
const idl_array = new IdlArray();
|
||||
idl_array.add_untested_idls(document.getElementById("untested_idl").textContent);
|
||||
idl_array.add_idls(document.getElementById("idl").textContent);
|
||||
idl_array.add_objects({
|
||||
InputEvent: ['new InputEvent("foo")'],
|
||||
});
|
||||
idl_array.test();
|
||||
})();
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue