Update web-platform-tests to revision cf261625e2d230ab219eec966f4abe26e3401b64

This commit is contained in:
WPT Sync Bot 2018-05-29 21:17:45 -04:00
parent 11a89bcc47
commit 8f98acd0e7
297 changed files with 3396 additions and 1555 deletions

View file

@ -0,0 +1,31 @@
// GENERATED CONTENT - DO NOT EDIT
// Content of this file was automatically extracted from the DOM Parsing and Serialization spec.
// See https://w3c.github.io/DOM-Parsing/
[Constructor, Exposed=Window]
interface DOMParser {
[NewObject] Document parseFromString(DOMString str, SupportedType type);
};
enum SupportedType {
"text/html",
"text/xml",
"application/xml",
"application/xhtml+xml",
"image/svg+xml"
};
[Constructor, Exposed=Window]
interface XMLSerializer {
DOMString serializeToString(Node root);
};
partial interface Element {
[CEReactions, TreatNullAs=EmptyString] attribute DOMString innerHTML;
[CEReactions, TreatNullAs=EmptyString] attribute DOMString outerHTML;
[CEReactions] void insertAdjacentHTML(DOMString position, DOMString text);
};
partial interface Range {
[CEReactions, NewObject] DocumentFragment createContextualFragment(DOMString fragment);
};

View file

@ -1,10 +1,14 @@
// GENERATED CONTENT - DO NOT EDIT
// Content of this file was automatically extracted from the Indexed Database API spec.
// See https://w3c.github.io/IndexedDB/
[Exposed=(Window,Worker)]
interface IDBRequest : EventTarget {
readonly attribute any result;
readonly attribute DOMException? error;
readonly attribute any result;
readonly attribute DOMException? error;
readonly attribute (IDBObjectStore or IDBIndex or IDBCursor)? source;
readonly attribute IDBTransaction? transaction;
readonly attribute IDBRequestReadyState readyState;
readonly attribute IDBTransaction? transaction;
readonly attribute IDBRequestReadyState readyState;
// Event handlers:
attribute EventHandler onsuccess;
@ -26,12 +30,12 @@ interface IDBOpenDBRequest : IDBRequest {
[Exposed=(Window,Worker),
Constructor(DOMString type, optional IDBVersionChangeEventInit eventInitDict)]
interface IDBVersionChangeEvent : Event {
readonly attribute unsigned long long oldVersion;
readonly attribute unsigned long long oldVersion;
readonly attribute unsigned long long? newVersion;
};
dictionary IDBVersionChangeEventInit : EventInit {
unsigned long long oldVersion = 0;
unsigned long long oldVersion = 0;
unsigned long long? newVersion = null;
};
@ -41,26 +45,26 @@ partial interface WindowOrWorkerGlobalScope {
[Exposed=(Window,Worker)]
interface IDBFactory {
IDBOpenDBRequest open(DOMString name,
optional [EnforceRange] unsigned long long version);
IDBOpenDBRequest deleteDatabase(DOMString name);
[NewObject] IDBOpenDBRequest open(DOMString name,
optional [EnforceRange] unsigned long long version);
[NewObject] IDBOpenDBRequest deleteDatabase(DOMString name);
short cmp(any first, any second);
};
[Exposed=(Window,Worker)]
interface IDBDatabase : EventTarget {
readonly attribute DOMString name;
readonly attribute DOMString name;
readonly attribute unsigned long long version;
readonly attribute DOMStringList objectStoreNames;
readonly attribute DOMStringList objectStoreNames;
IDBTransaction transaction((DOMString or sequence<DOMString>) storeNames,
optional IDBTransactionMode mode = "readonly");
void close();
[NewObject] IDBTransaction transaction((DOMString or sequence<DOMString>) storeNames,
optional IDBTransactionMode mode = "readonly");
void close();
IDBObjectStore createObjectStore(DOMString name,
optional IDBObjectStoreParameters options);
void deleteObjectStore(DOMString name);
[NewObject] IDBObjectStore createObjectStore(DOMString name,
optional IDBObjectStoreParameters options);
void deleteObjectStore(DOMString name);
// Event handlers:
attribute EventHandler onabort;
@ -71,40 +75,40 @@ interface IDBDatabase : EventTarget {
dictionary IDBObjectStoreParameters {
(DOMString or sequence<DOMString>)? keyPath = null;
boolean autoIncrement = false;
boolean autoIncrement = false;
};
[Exposed=(Window,Worker)]
interface IDBObjectStore {
attribute DOMString name;
readonly attribute any keyPath;
readonly attribute DOMStringList indexNames;
readonly attribute IDBTransaction transaction;
readonly attribute boolean autoIncrement;
attribute DOMString name;
readonly attribute any keyPath;
readonly attribute DOMStringList indexNames;
[SameObject] readonly attribute IDBTransaction transaction;
readonly attribute boolean autoIncrement;
IDBRequest put(any value, optional any key);
IDBRequest add(any value, optional any key);
IDBRequest delete(any query);
IDBRequest clear();
IDBRequest get(any query);
IDBRequest getKey(any query);
IDBRequest getAll(optional any query,
[EnforceRange] optional unsigned long count);
IDBRequest getAllKeys(optional any query,
[EnforceRange] optional unsigned long count);
IDBRequest count(optional any query);
[NewObject] IDBRequest put(any value, optional any key);
[NewObject] IDBRequest add(any value, optional any key);
[NewObject] IDBRequest delete(any query);
[NewObject] IDBRequest clear();
[NewObject] IDBRequest get(any query);
[NewObject] IDBRequest getKey(any query);
[NewObject] IDBRequest getAll(optional any query,
optional [EnforceRange] unsigned long count);
[NewObject] IDBRequest getAllKeys(optional any query,
optional [EnforceRange] unsigned long count);
[NewObject] IDBRequest count(optional any query);
IDBRequest openCursor(optional any query,
optional IDBCursorDirection direction = "next");
IDBRequest openKeyCursor(optional any query,
optional IDBCursorDirection direction = "next");
[NewObject] IDBRequest openCursor(optional any query,
optional IDBCursorDirection direction = "next");
[NewObject] IDBRequest openKeyCursor(optional any query,
optional IDBCursorDirection direction = "next");
IDBIndex index(DOMString name);
IDBIndex index(DOMString name);
IDBIndex createIndex(DOMString name,
(DOMString or sequence<DOMString>) keyPath,
optional IDBIndexParameters options);
void deleteIndex(DOMString indexName);
[NewObject] IDBIndex createIndex(DOMString name,
(DOMString or sequence<DOMString>) keyPath,
optional IDBIndexParameters options);
void deleteIndex(DOMString name);
};
dictionary IDBIndexParameters {
@ -114,58 +118,58 @@ dictionary IDBIndexParameters {
[Exposed=(Window,Worker)]
interface IDBIndex {
attribute DOMString name;
readonly attribute IDBObjectStore objectStore;
readonly attribute any keyPath;
readonly attribute boolean multiEntry;
readonly attribute boolean unique;
attribute DOMString name;
[SameObject] readonly attribute IDBObjectStore objectStore;
readonly attribute any keyPath;
readonly attribute boolean multiEntry;
readonly attribute boolean unique;
IDBRequest get(any query);
IDBRequest getKey(any query);
IDBRequest getAll(optional any query,
[EnforceRange] optional unsigned long count);
IDBRequest getAllKeys(optional any query,
[EnforceRange] optional unsigned long count);
IDBRequest count(optional any query);
[NewObject] IDBRequest get(any query);
[NewObject] IDBRequest getKey(any query);
[NewObject] IDBRequest getAll(optional any query,
optional [EnforceRange] unsigned long count);
[NewObject] IDBRequest getAllKeys(optional any query,
optional [EnforceRange] unsigned long count);
[NewObject] IDBRequest count(optional any query);
IDBRequest openCursor(optional any query,
optional IDBCursorDirection direction = "next");
IDBRequest openKeyCursor(optional any query,
optional IDBCursorDirection direction = "next");
[NewObject] IDBRequest openCursor(optional any query,
optional IDBCursorDirection direction = "next");
[NewObject] IDBRequest openKeyCursor(optional any query,
optional IDBCursorDirection direction = "next");
};
[Exposed=(Window,Worker)]
interface IDBKeyRange {
readonly attribute any lower;
readonly attribute any upper;
readonly attribute any lower;
readonly attribute any upper;
readonly attribute boolean lowerOpen;
readonly attribute boolean upperOpen;
// Static construction methods:
static IDBKeyRange only(any value);
static IDBKeyRange lowerBound(any lower, optional boolean open = false);
static IDBKeyRange upperBound(any upper, optional boolean open = false);
static IDBKeyRange bound(any lower,
any upper,
optional boolean lowerOpen = false,
optional boolean upperOpen = false);
[NewObject] static IDBKeyRange only(any value);
[NewObject] static IDBKeyRange lowerBound(any lower, optional boolean open = false);
[NewObject] static IDBKeyRange upperBound(any upper, optional boolean open = false);
[NewObject] static IDBKeyRange bound(any lower,
any upper,
optional boolean lowerOpen = false,
optional boolean upperOpen = false);
boolean includes(any key);
boolean _includes(any key);
};
[Exposed=(Window,Worker)]
interface IDBCursor {
readonly attribute (IDBObjectStore or IDBIndex) source;
readonly attribute IDBCursorDirection direction;
readonly attribute any key;
readonly attribute any primaryKey;
readonly attribute IDBCursorDirection direction;
readonly attribute any key;
readonly attribute any primaryKey;
void advance([EnforceRange] unsigned long count);
void continue(optional any key);
void continuePrimaryKey(any key, any primaryKey);
IDBRequest update(any value);
IDBRequest delete();
[NewObject] IDBRequest update(any value);
[NewObject] IDBRequest delete();
};
enum IDBCursorDirection {
@ -182,13 +186,13 @@ interface IDBCursorWithValue : IDBCursor {
[Exposed=(Window,Worker)]
interface IDBTransaction : EventTarget {
readonly attribute DOMStringList objectStoreNames;
readonly attribute DOMStringList objectStoreNames;
readonly attribute IDBTransactionMode mode;
readonly attribute IDBDatabase db;
readonly attribute DOMException error;
[SameObject] readonly attribute IDBDatabase db;
readonly attribute DOMException error;
IDBObjectStore objectStore(DOMString name);
void abort();
void abort();
// Event handlers:
attribute EventHandler onabort;

View file

@ -170,7 +170,7 @@ enum CSSMathOperator {
};
// FIXME: Uncomment this when IDLHarness supports CSS namespaces:
// https://github.com/w3c/web-platform-tests/issues/7583
// https://github.com/web-platform-tests/wpt/issues/7583
/*
partial namespace CSS {
CSSUnitValue number(double value);

View file

@ -39,6 +39,7 @@ interface Request {
readonly attribute DOMString integrity;
readonly attribute boolean keepalive;
readonly attribute boolean isReloadNavigation;
readonly attribute boolean isHistoryNavigation;
readonly attribute AbortSignal signal;
[NewObject] Request clone();

View file

@ -0,0 +1,53 @@
// GENERATED CONTENT - DO NOT EDIT
// Content of this file was automatically extracted from the Pointer Events spec.
// See https://w3c.github.io/pointerevents/
dictionary PointerEventInit : MouseEventInit {
long pointerId = 0;
double width = 1;
double height = 1;
float pressure = 0;
float tangentialPressure = 0;
long tiltX = 0;
long tiltY = 0;
long twist = 0;
DOMString pointerType = "";
boolean isPrimary = false;
};
[Constructor(DOMString type, optional PointerEventInit eventInitDict), Exposed=Window]
interface PointerEvent : MouseEvent {
readonly attribute long pointerId;
readonly attribute double width;
readonly attribute double height;
readonly attribute float pressure;
readonly attribute float tangentialPressure;
readonly attribute long tiltX;
readonly attribute long tiltY;
readonly attribute long twist;
readonly attribute DOMString pointerType;
readonly attribute boolean isPrimary;
};
partial interface Element {
void setPointerCapture (long pointerId);
void releasePointerCapture (long pointerId);
boolean hasPointerCapture (long pointerId);
};
partial interface GlobalEventHandlers {
attribute EventHandler ongotpointercapture;
attribute EventHandler onlostpointercapture;
attribute EventHandler onpointerdown;
attribute EventHandler onpointermove;
attribute EventHandler onpointerup;
attribute EventHandler onpointercancel;
attribute EventHandler onpointerover;
attribute EventHandler onpointerout;
attribute EventHandler onpointerenter;
attribute EventHandler onpointerleave;
};
partial interface Navigator {
readonly attribute long maxTouchPoints;
};

View file

@ -0,0 +1,27 @@
// GENERATED CONTENT - DO NOT EDIT
// Content of this file was automatically extracted from the Pointer Lock spec.
// See https://w3c.github.io/pointerlock/
partial interface Element {
void requestPointerLock();
};
partial interface Document {
attribute EventHandler onpointerlockchange;
attribute EventHandler onpointerlockerror;
void exitPointerLock();
};
partial interface DocumentOrShadowRoot {
readonly attribute Element ? pointerLockElement;
};
partial interface MouseEvent {
readonly attribute long movementX;
readonly attribute long movementY;
};
partial dictionary MouseEventInit {
long movementX = 0;
long movementY = 0;
};

View file

@ -0,0 +1,31 @@
// GENERATED CONTENT - DO NOT EDIT
// Content of this file was automatically extracted from the Remote Playback API spec.
// See https://w3c.github.io/remote-playback/
[Exposed=Window]
interface RemotePlayback : EventTarget {
Promise<long> watchAvailability(RemotePlaybackAvailabilityCallback callback);
Promise<void> cancelWatchAvailability(optional long id);
readonly attribute RemotePlaybackState state;
attribute EventHandler onconnecting;
attribute EventHandler onconnect;
attribute EventHandler ondisconnect;
Promise<void> prompt();
};
enum RemotePlaybackState {
"connecting",
"connected",
"disconnected"
};
callback RemotePlaybackAvailabilityCallback = void(boolean available);
partial interface HTMLMediaElement {
[SameObject] readonly attribute RemotePlayback remote;
[CEReactions] attribute boolean disableRemotePlayback;
};

View file

@ -1,29 +0,0 @@
[Exposed=Window]
interface RemotePlayback : EventTarget {
Promise<long> watchAvailability(RemotePlaybackAvailabilityCallback callback);
Promise<void> cancelWatchAvailability(optional long id);
readonly attribute RemotePlaybackState state;
attribute EventHandler onconnecting;
attribute EventHandler onconnect;
attribute EventHandler ondisconnect;
Promise<void> prompt();
};
enum RemotePlaybackState {
"connecting",
"connected",
"disconnected"
};
callback RemotePlaybackAvailabilityCallback = void (boolean available);
partial interface HTMLMediaElement {
[SameObject]
readonly attribute RemotePlayback remote;
[CEReactions]
attribute boolean disableRemotePlayback;
};

View file

@ -0,0 +1,24 @@
// GENERATED CONTENT - DO NOT EDIT
// Content of this file was automatically extracted from the Static Range spec.
// See https://w3c.github.io/staticrange/
dictionary StaticRangeInit {
required Node startContainer;
required unsigned long startOffset;
required Node endContainer;
required unsigned long endOffset;
};
[Constructor(StaticRangeInit initDict),
Exposed=Window]
interface StaticRange {
attribute Node startContainer;
attribute unsigned long startOffset;
attribute Node endContainer;
attribute unsigned long endOffset;
readonly attribute boolean collapsed;
[NewObject] Range toRange();
};