mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 09:18:42 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
// https://heycam.github.io/webidl/#required-dictionary-member
|
||||
// "A required dictionary member must not have a default value."
|
||||
dictionary Dict {
|
||||
required long member = 0;
|
||||
};
|
||||
|
|
@ -0,0 +1 @@
|
|||
enum foo { 1, 2, 3};
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
interface MapLikeOneType {
|
||||
maplike<long>;
|
||||
}
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
|
||||
module gfx {
|
||||
|
||||
module geom {
|
||||
interface Shape { /* ... */ };
|
||||
interface Rectangle : Shape { /* ... */ };
|
||||
interface Path : Shape { /* ... */ };
|
||||
};
|
||||
|
||||
interface GraphicsContext {
|
||||
void fillShape(geom::Shape s);
|
||||
void strokeShape(geom::Shape s);
|
||||
};
|
||||
};
|
||||
|
||||
module gui {
|
||||
|
||||
interface Widget { /* ... */ };
|
||||
|
||||
interface Window : Widget {
|
||||
gfx::GraphicsContext getGraphicsContext();
|
||||
};
|
||||
|
||||
interface Button : Widget { /* ... */ };
|
||||
};
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
interface NonNullable {
|
||||
attribute any? foo;
|
||||
};
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
interface Foo {};
|
||||
|
||||
interface NonNullable {
|
||||
attribute Foo?? foo;
|
||||
};
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
// getraises and setraises are not longer valid Web IDL
|
||||
interface Person {
|
||||
|
||||
// An attribute that can raise an exception if it is set to an invalid value.
|
||||
attribute DOMString name setraises (InvalidName);
|
||||
|
||||
// An attribute whose value cannot be assigned to, and which can raise an
|
||||
// exception some circumstances.
|
||||
readonly attribute DOMString petName getraises (NoSuchPet);
|
||||
};
|
||||
|
||||
exception SomeException {
|
||||
};
|
||||
|
||||
interface ExceptionThrower {
|
||||
// This attribute always throws a SomeException and never returns a value.
|
||||
attribute long valueOf getraises(SomeException);
|
||||
};
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
interface ReadonlyIterable {
|
||||
readonly iterable<long>;
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
// scoped names are no longer valid in WebIDL
|
||||
typedef gfx::geom::geom2d::Point Point;
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
interface sequenceAsAttribute {
|
||||
attribute sequence<short> invalid;
|
||||
};
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
interface SetLikeTwoTypes {
|
||||
setlike<long, long>;
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
|
||||
// omittable is no longer a recognized keywoard as of 20110905
|
||||
interface Dictionary {
|
||||
readonly attribute unsigned long propertyCount;
|
||||
|
||||
omittable getter float getProperty(DOMString propertyName);
|
||||
omittable setter void setProperty(DOMString propertyName, float propertyValue);
|
||||
};
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
interface Util {
|
||||
const DOMString hello = "world";
|
||||
};
|
||||
|
|
@ -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;
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"message": "Required member must not have a default"
|
||||
, "line": 4
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"message": "Unexpected value in enum"
|
||||
, "line": 1
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"message": "Missing second type argument in maplike declaration",
|
||||
"line": 2
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"message": "Unrecognised tokens"
|
||||
, "line": 2
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"message": "Type any cannot be made nullable"
|
||||
, "line": 2
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"message": "Can't nullable more than once"
|
||||
, "line": 4
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"message": "Unterminated attribute"
|
||||
, "line": 5
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"message": "Invalid operation",
|
||||
"line": 2
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"message": "No name in typedef"
|
||||
, "line": 2
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"message": "Attributes cannot accept sequence types"
|
||||
, "line": 2
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"message": "Unterminated setlike declaration",
|
||||
"line": 2
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"message": "Invalid operation"
|
||||
, "line": 6
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"message": "No value for const"
|
||||
, "line": 2
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"message": "Invalid operation"
|
||||
, "line": 14
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue