mirror of
https://github.com/servo/servo
synced 2026-05-03 04:42:17 +02:00
Update web-platform-tests to revision 7da6acfd668e66adae5ab4e2d389810d3b1460be
This commit is contained in:
@@ -2,4 +2,6 @@ callback AsyncOperationCallback = void (DOMString status);
|
||||
|
||||
callback interface EventHandler {
|
||||
void eventOccurred(DOMString details);
|
||||
};
|
||||
};
|
||||
|
||||
callback SortCallback = boolean (any a, any b);
|
||||
|
||||
@@ -3,6 +3,10 @@ dictionary PaintOptions {
|
||||
DOMString? fillPattern = "black";
|
||||
DOMString? strokePattern = null;
|
||||
Point position;
|
||||
// https://heycam.github.io/webidl/#dfn-optional-argument-default-value allows sequences to default to "[]".
|
||||
sequence<long> seq = [];
|
||||
// https://heycam.github.io/webidl/#required-dictionary-member
|
||||
required long reqSeq;
|
||||
};
|
||||
|
||||
partial dictionary A {
|
||||
|
||||
@@ -5,4 +5,6 @@ interface Meal {
|
||||
attribute float size; // in grams
|
||||
|
||||
void initialize(MealType type, float size);
|
||||
};
|
||||
};
|
||||
|
||||
enum AltMealType { "rice", "noodles", "other", };
|
||||
@@ -0,0 +1,6 @@
|
||||
// Extracted from http://www.w3.org/TR/2015/WD-service-workers-20150205/
|
||||
|
||||
[Global=(Worker,ServiceWorker), Exposed=ServiceWorker]
|
||||
interface ServiceWorkerGlobalScope : WorkerGlobalScope {
|
||||
|
||||
};
|
||||
@@ -1,5 +1,6 @@
|
||||
interface Foo {
|
||||
Promise<ResponsePromise<sequence<DOMString?>>> bar();
|
||||
readonly attribute Promise<DOMString>[] baz;
|
||||
};
|
||||
|
||||
// Extracted from https://slightlyoff.github.io/ServiceWorker/spec/service_worker/ on 2014-05-08
|
||||
@@ -14,4 +15,3 @@ interface ServiceWorkerClients {
|
||||
interface FetchEvent : Event {
|
||||
ResponsePromise<any> default();
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
interface IterableOne {
|
||||
iterable<long>;
|
||||
};
|
||||
|
||||
interface IterableTwo {
|
||||
iterable<short, double?>;
|
||||
};
|
||||
@@ -0,0 +1,3 @@
|
||||
interface LegacyIterable {
|
||||
legacyiterable<long>;
|
||||
};
|
||||
@@ -0,0 +1,7 @@
|
||||
interface MapLike {
|
||||
maplike<long, float>;
|
||||
};
|
||||
|
||||
interface ReadOnlyMapLike {
|
||||
readonly maplike<long, float>;
|
||||
};
|
||||
@@ -0,0 +1,7 @@
|
||||
interface SetLike {
|
||||
setlike<long>;
|
||||
};
|
||||
|
||||
interface ReadOnlySetLike {
|
||||
readonly setlike<long>;
|
||||
};
|
||||
@@ -0,0 +1,22 @@
|
||||
|
||||
interface Point {
|
||||
attribute float x;
|
||||
attribute float y;
|
||||
};
|
||||
|
||||
|
||||
interface Rect {
|
||||
attribute Point topleft;
|
||||
attribute Point bottomright;
|
||||
};
|
||||
|
||||
interface Widget {
|
||||
typedef sequence<Point> PointSequence;
|
||||
|
||||
readonly attribute Rect bounds;
|
||||
|
||||
boolean pointWithinBounds(Point p);
|
||||
boolean allPointsWithinBounds(PointSequence ps);
|
||||
};
|
||||
|
||||
typedef [Clamp] octet value;
|
||||
Reference in New Issue
Block a user