Update CSS tests to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab

This commit is contained in:
James Graham
2015-03-27 09:18:12 +00:00
parent 1a81b18b9f
commit 2c9faf5363
91915 changed files with 5979820 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
interface B {
void g();
void g(B b);
void g([AllowAny] DOMString s);
};

View File

@@ -0,0 +1,5 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
[Constructor]
interface LotteryResults {
readonly attribute unsigned short[][] numbers;
};

View File

@@ -0,0 +1,14 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
exception InvalidName {
DOMString reason;
};
exception NoSuchPet { };
interface Person {
// A simple attribute that can be set to any value the range an unsigned
// short can take.
attribute unsigned short age;
};

View File

@@ -0,0 +1,5 @@
callback AsyncOperationCallback = void (DOMString status);
callback interface EventHandler {
void eventOccurred(DOMString details);
};

View File

@@ -0,0 +1,5 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
interface NumberQuadrupler {
// This operation simply returns four times the given number x.
legacycaller float compute(float x);
};

View File

@@ -0,0 +1,18 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
interface Util {
const boolean DEBUG = false;
const short negative = -1;
const octet LF = 10;
const unsigned long BIT_MASK = 0x0000fc00;
const float AVOGADRO = 6.022e23;
const unrestricted float sobig = Infinity;
const unrestricted double minusonedividedbyzero = -Infinity;
const short notanumber = NaN;
};
exception Error {
const short ERR_UNKNOWN = 0;
const short ERR_OUT_OF_MEMORY = 1;
short errorCode;
};

View File

@@ -0,0 +1,9 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
[Constructor,
Constructor(float radius)]
interface Circle {
attribute float r;
attribute float cx;
attribute float cy;
readonly attribute float circumference;
};

View File

@@ -0,0 +1,9 @@
dictionary PaintOptions {
DOMString? fillPattern = "black";
DOMString? strokePattern = null;
Point position;
};
dictionary WetPaintOptions : PaintOptions {
float hydrometry;
};

View File

@@ -0,0 +1,11 @@
// Extracted from Web IDL editors draft May 31 2011
dictionary PaintOptions {
DOMString? fillPattern = "black";
DOMString? strokePattern = null;
Point position;
};
partial dictionary A {
long h;
long d;
};

View File

@@ -0,0 +1,33 @@
/**
* \brief Testing documentation features
*
* This is a
* single paragraph
*
* <p>This is valid.</p>
* <p>This is <em>valid</em>.</p>
* <p>This is <b>valid</b>.</p>
* <p>This is <a href=''>valid</a>.</p>
* <ul>
* <li>This</li>
* <li>is</li>
* <li>valid</li>
* </ul>
* <dl>
* <dt>This</dt>
* <dd>valid</dd>
* </dl>
* <table>
* <tr>
* <td>this</td>
* <td>is</td>
* </tr>
* <tr>
* <td>valid</td>
* </tr>
* </table>
* <p>This is <br> valid.</p>
* <p>This is <br /> valid.</p>
* <p>This is <br/> valid.</p>
*/
interface Documentation {};

View File

@@ -0,0 +1,34 @@
/**
* \brief Testing documentation features
*
* This is a
* single paragraph
*
* <p>This is valid.</p>
* <p>This is <em>valid</em>.</p>
* <p>This is <b>valid</b>.</p>
* <p>This is <a href=''>valid</a>.</p>
* <ul>
* <li>This</li>
* <li>is</li>
* <li>valid</li>
* </ul>
* <dl>
* <dt>This</dt>
* <dd>valid</dd>
* </dl>
* <table>
* <tr>
* <td>this</td>
* <td>is</td>
* </tr>
* <tr>
* <td>valid</td>
* </tr>
* </table>
* <p>This is <br> valid.</p>
* <p>This is <br /> valid.</p>
* <p>This is <br/> valid.</p>
* <p><img src="foo.png" alt="Valid"/></p>
*/
interface Documentation {};

View File

@@ -0,0 +1,8 @@
enum MealType { "rice", "noodles", "other" };
interface Meal {
attribute MealType type;
attribute float size; // in grams
void initialize(MealType type, float size);
};

View File

@@ -0,0 +1,18 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
interface Dictionary {
readonly attribute unsigned long propertyCount;
getter float getProperty(DOMString propertyName);
setter void setProperty(DOMString propertyName, float propertyValue);
};
interface Dictionary {
readonly attribute unsigned long propertyCount;
float getProperty(DOMString propertyName);
void setProperty(DOMString propertyName, float propertyValue);
getter float (DOMString propertyName);
setter void (DOMString propertyName, float propertyValue);
};

View File

@@ -0,0 +1,7 @@
// from http://lists.w3.org/Archives/Public/public-script-coord/2010OctDec/0112.html
exception DOMException {
unsigned short code;
};
exception HierarchyRequestError : DOMException { };
exception NoModificationAllowedError : DOMException { };

View File

@@ -0,0 +1,8 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
interface Dahut {
attribute DOMString type;
};
exception SomeException {
};

View File

@@ -0,0 +1,17 @@
interface Foo {
Promise<ResponsePromise<sequence<DOMString?>>> bar();
};
// Extracted from https://slightlyoff.github.io/ServiceWorker/spec/service_worker/ on 2014-05-08
interface ServiceWorkerClients {
Promise<Client[]?> getServiced();
Promise<any> reloadAll();
};
// Extracted from https://slightlyoff.github.io/ServiceWorker/spec/service_worker/ on 2014-05-13
interface FetchEvent : Event {
ResponsePromise<any> default();
};

View File

@@ -0,0 +1,7 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
interface Dictionary {
readonly attribute unsigned long propertyCount;
getter float (DOMString propertyName);
setter void (DOMString propertyName, float propertyValue);
};

View File

@@ -0,0 +1,44 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
// Typedef identifier: "number"
// Qualified name: "::framework::number"
typedef float number;
// Exception identifier: "FrameworkException"
// Qualified name: "::framework::FrameworkException"
exception FrameworkException {
// Constant identifier: "ERR_NOT_FOUND"
// Qualified name: "::framework::FrameworkException::ERR_NOT_FOUND"
const long ERR_NOT_FOUND = 1;
// Exception field identifier: "code"
long code;
};
// Interface identifier: "System"
// Qualified name: "::framework::System"
interface System {
// Operation identifier: "createObject"
// Operation argument identifier: "interface"
object createObject(DOMString _interface);
// Operation has no identifier; it declares a getter.
getter DOMString (DOMString keyName);
};
// Interface identifier: "TextField"
// Qualified name: "::framework::gui::TextField"
interface TextField {
// Attribute identifier: "const"
attribute boolean _const;
// Attribute identifier: "value"
attribute DOMString? _value;
};
interface Foo {
void op(object interface);
};

View File

@@ -0,0 +1,14 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
interface Node {
readonly attribute unsigned short nodeType;
// ...
};
interface EventTarget {
void addEventListener(DOMString type,
EventListener listener,
boolean useCapture);
// ...
};
Node implements EventTarget;

View File

@@ -0,0 +1,12 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
interface OrderedMap {
readonly attribute unsigned long size;
getter any getByIndex(unsigned long index);
setter void setByIndex(unsigned long index, any value);
deleter void removeByIndex(unsigned long index);
getter any get(DOMString name);
setter creator void set(DOMString name, any value);
deleter void remove(DOMString name);
};

View File

@@ -0,0 +1,16 @@
interface Animal {
// A simple attribute that can be set to any string value.
readonly attribute DOMString name;
};
interface Person : Animal {
// An attribute whose value cannot be assigned to.
readonly attribute unsigned short age;
// An attribute that can raise an exception if it is set to an invalid value.
// Its getter behavior is inherited from Animal, and need not be specified
// the description of Person.
inherit attribute DOMString name;
};

View File

@@ -0,0 +1,12 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
interface Animal {
attribute DOMString name;
};
interface Human : Animal {
attribute Dog pet;
};
interface Dog : Animal {
attribute Human owner;
};

View File

@@ -0,0 +1,35 @@
interface SessionManager {
Session getSessionForUser(DOMString username);
readonly attribute unsigned long sessionCount;
Session iterator;
};
interface Session {
readonly attribute DOMString username;
// ...
};
interface SessionManager2 {
Session2 getSessionForUser(DOMString username);
readonly attribute unsigned long sessionCount;
Session2 iterator = SessionIterator;
};
interface Session2 {
readonly attribute DOMString username;
// ...
};
interface SessionIterator {
readonly attribute unsigned long remainingSessions;
};
interface NodeList {
Node iterator = NodeIterator;
};
interface NodeIterator {
Node iterator object;
};

View File

@@ -0,0 +1,5 @@
// Extracted from https://slightlyoff.github.io/ServiceWorker/spec/service_worker/ on 2014-05-06
[MapClass(DOMString, DOMString)]
interface HeaderMap {
};

View File

@@ -0,0 +1,6 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
[NamedConstructor=Audio,
NamedConstructor=Audio(DOMString src)]
interface HTMLAudioElement : HTMLMediaElement {
// ...
};

View File

@@ -0,0 +1,5 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
[NoInterfaceObject]
interface Query {
any lookupEntry(unsigned long key);
};

View File

@@ -0,0 +1,9 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
interface MyConstants {
const boolean? ARE_WE_THERE_YET = false;
};
interface Node {
readonly attribute DOMString? namespaceURI;
// ...
};

View File

@@ -0,0 +1,13 @@
// Extracted from WebIDL spec 2011-05-23
interface A {
// ...
};
interface B {
// ...
};
interface C {
void f(A? x);
void f(B? x);
};

View File

@@ -0,0 +1,4 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
interface ColorCreator {
object createColor(float v1, float v2, float v3, optional float alpha = 3.5);
};

View File

@@ -0,0 +1,20 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
interface A {
// ...
};
interface B {
// ...
};
interface C {
void f(A x);
void f(B x);
};
interface A {
/* f1 */ void f(DOMString a);
/* f2 */ void f([AllowAny] DOMString a, DOMString b, float... c);
/* f3 */ void f();
/* f4 */ void f(long a, DOMString b, optional DOMString c, float... d);
};

View File

@@ -0,0 +1,6 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
[OverrideBuiltins]
interface StringMap2 {
readonly attribute unsigned long length;
getter DOMString lookup(DOMString key);
};

View File

@@ -0,0 +1,7 @@
interface Foo {
attribute DOMString bar;
};
partial interface Foo {
attribute DOMString quux;
};

View File

@@ -0,0 +1,19 @@
interface Primitives {
attribute boolean truth;
attribute byte character;
attribute octet value;
attribute short number;
attribute unsigned short positive;
attribute long big;
attribute unsigned long bigpositive;
attribute long long bigbig;
attribute unsigned long long bigbigpositive;
attribute float real;
attribute double bigreal;
attribute unrestricted float realwithinfinity;
attribute unrestricted double bigrealwithinfinity;
attribute DOMString string;
attribute ByteString bytes;
attribute Date date;
attribute RegExp regexp;
};

View File

@@ -0,0 +1,5 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
[PrototypeRoot]
interface Node {
readonly attribute unsigned short nodeType;
};

View File

@@ -0,0 +1,5 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
interface Person {
[PutForwards=full] readonly attribute Name name;
attribute unsigned short age;
};

View File

@@ -0,0 +1,17 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
interface Dimensions {
attribute unsigned long width;
attribute unsigned long height;
};
exception NoPointerDevice { };
interface Button {
// An operation that takes no arguments, returns a boolean
boolean isMouseOver();
// Overloaded operations.
void setDimensions(Dimensions size);
void setDimensions(unsigned long width, unsigned long height);
};

View File

@@ -0,0 +1,5 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
interface Counter {
[Replaceable] readonly attribute unsigned long value;
void increment();
};

View File

@@ -0,0 +1,12 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
// edited to remove sequence as attributes, now invalid
interface Canvas {
void drawPolygon(sequence<float> coordinates);
sequence<float> getInflectionPoints();
// ...
};
// Make sure sequence can still be registered as a type.
interface Foo {
sequence bar();
};

View File

@@ -0,0 +1,64 @@
interface Transaction {
readonly attribute Account from;
readonly attribute Account to;
readonly attribute float amount;
readonly attribute DOMString description;
readonly attribute unsigned long number;
serializer;
};
interface Account {
attribute DOMString name;
attribute unsigned long number;
serializer DOMString serialize();
};
interface Transaction2 {
readonly attribute Account2 from;
readonly attribute Account2 to;
readonly attribute float amount;
readonly attribute DOMString description;
readonly attribute unsigned long number;
serializer = { from, to, amount, description };
};
interface Account2 {
attribute DOMString name;
attribute unsigned long number;
serializer = number;
};
interface Account3 {
attribute DOMString name;
attribute unsigned long number;
serializer = { attribute };
};
interface Account4 {
getter object getItem(unsigned long index);
serializer = { getter };
};
interface Account5 : Account {
attribute DOMString secondname;
serializer = { inherit, secondname };
};
interface Account6 : Account {
attribute DOMString secondname;
serializer = { inherit, attribute };
};
interface Account7 {
attribute DOMString name;
attribute unsigned long number;
serializer = [ name, number ];
};
interface Account8 {
getter object getItem(unsigned long index);
serializer = [ getter ];
};

View File

@@ -0,0 +1,11 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
interface Point { /* ... */ };
interface Circle {
attribute float cx;
attribute float cy;
attribute float radius;
static readonly attribute long triangulationCount;
static Point triangulate(Circle c1, Circle c2, Circle c3);
};

View File

@@ -0,0 +1,6 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
[Constructor]
interface Student {
attribute unsigned long id;
stringifier attribute DOMString name;
};

View File

@@ -0,0 +1,9 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
[Constructor]
interface Student {
attribute unsigned long id;
attribute DOMString? familyName;
attribute DOMString givenName;
stringifier DOMString ();
};

View File

@@ -0,0 +1,8 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
interface A {
stringifier DOMString ();
};
interface A {
stringifier;
};

View File

@@ -0,0 +1,7 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
interface Dog {
attribute DOMString name;
attribute DOMString owner;
boolean isMemberOfBreed([TreatNullAs=EmptyString] DOMString breedName);
};

View File

@@ -0,0 +1,7 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
interface Cat {
attribute DOMString name;
attribute DOMString owner;
boolean isMemberOfBreed([TreatUndefinedAs=EmptyString] DOMString breedName);
};

View File

@@ -0,0 +1,22 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
interface Point {
attribute float x;
attribute float y;
};
typedef sequence<Point> PointSequence;
interface Rect {
attribute Point topleft;
attribute Point bottomright;
};
interface Widget {
readonly attribute Rect bounds;
boolean pointWithinBounds(Point p);
boolean allPointsWithinBounds(PointSequence ps);
};
typedef [Clamp] octet value;

View File

@@ -0,0 +1,3 @@
interface Suffixes {
void test(sequence<DOMString[]?>? foo);
};

View File

@@ -0,0 +1,3 @@
interface Union {
attribute (float or (Date or Event) or (Node or DOMString)?) test;
};

View File

@@ -0,0 +1,7 @@
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
interface IntegerSet {
readonly attribute unsigned long cardinality;
void union(long... ints);
void intersection(long... ints);
};