mirror of
https://github.com/servo/servo.git
synced 2025-09-06 21:18:20 +01:00
Update web-platform-tests to revision 9817f7f027fe1e92cc2fce31d6002c4d669918e8
This commit is contained in:
parent
8e52f8a523
commit
f3533538ea
2144 changed files with 21364 additions and 11001 deletions
|
@ -5,58 +5,14 @@
|
|||
<script src=/resources/testharnessreport.js></script>
|
||||
<script src=/resources/WebIDLParser.js></script>
|
||||
<script src=/resources/idlharness.js></script>
|
||||
<script type=text/plain>
|
||||
// http://w3c.github.io/selection-api/#selection-interface
|
||||
interface Selection {
|
||||
readonly attribute Node? anchorNode;
|
||||
readonly attribute unsigned long anchorOffset;
|
||||
readonly attribute Node? focusNode;
|
||||
readonly attribute unsigned long focusOffset;
|
||||
readonly attribute boolean isCollapsed;
|
||||
readonly attribute unsigned long rangeCount;
|
||||
readonly attribute DOMString type;
|
||||
Range getRangeAt(unsigned long index);
|
||||
void addRange(Range range);
|
||||
void removeRange(Range range);
|
||||
void removeAllRanges();
|
||||
void empty();
|
||||
void collapse(Node? node, optional unsigned long offset = 0);
|
||||
void setPosition(Node? node, optional unsigned long offset = 0);
|
||||
void collapseToStart();
|
||||
void collapseToEnd();
|
||||
void extend(Node node, optional unsigned long offset = 0);
|
||||
void setBaseAndExtent(Node anchorNode,
|
||||
unsigned long anchorOffset,
|
||||
Node focusNode,
|
||||
unsigned long focusOffset);
|
||||
void selectAllChildren(Node node);
|
||||
[CEReactions]
|
||||
void deleteFromDocument();
|
||||
boolean containsNode(Node node,
|
||||
optional boolean allowPartialContainment = false);
|
||||
stringifier DOMString ();
|
||||
};
|
||||
|
||||
partial interface Document {
|
||||
Selection? getSelection();
|
||||
};
|
||||
|
||||
partial interface Window {
|
||||
Selection? getSelection();
|
||||
};
|
||||
|
||||
partial interface GlobalEventHandlers {
|
||||
attribute EventHandler onselectstart;
|
||||
attribute EventHandler onselectionchange;
|
||||
};
|
||||
</script>
|
||||
<script>
|
||||
"use strict";
|
||||
|
||||
function doTest([dom, cssom, touchevents, uievents, html]) {
|
||||
function doTest([selection, dom, cssom, touchevents, uievents, html]) {
|
||||
var idlArray = new IdlArray();
|
||||
idlArray.add_untested_idls('interface SVGElement {};');
|
||||
idlArray.add_untested_idls(dom + cssom + touchevents + uievents + html);
|
||||
idlArray.add_idls(document.querySelector("script[type=text\\/plain]").textContent);
|
||||
idlArray.add_idls(selection);
|
||||
idlArray.add_objects({Selection: ['getSelection()']});
|
||||
idlArray.test();
|
||||
}
|
||||
|
@ -66,7 +22,8 @@ function fetchData(url) {
|
|||
}
|
||||
|
||||
promise_test(function() {
|
||||
return Promise.all([fetchData("/interfaces/dom.idl"),
|
||||
return Promise.all([fetchData("/interfaces/selection-api.idl"),
|
||||
fetchData("/interfaces/dom.idl"),
|
||||
fetchData("/interfaces/cssom.idl"),
|
||||
fetchData("/interfaces/touchevents.idl"),
|
||||
fetchData("/interfaces/uievents.idl"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue