testing/web-platform/tests/resources/webidl2/test/syntax/idl/extended-attributes.widl
author Geoffrey Sneddon <me@gsnedders.com>
Tue, 01 May 2018 15:02:42 +0000
changeset 472676 21a5a8d11df33df8681ed3468f6b67b11e411d66
parent 448379 6a65a1dcc6447e76191a24ea679c1927d862fefa
permissions -rw-r--r--
Bug 1457047 [wpt PR 10645] - Update webidl2.js to v10.2.1, a=testonly Automatic update from web-platform-testsMerge pull request #10645 from csnardi/update-webidl2 Update webidl2.js to v10.2.1 -- wpt-commits: 9f5c74dc3a633802acaa93ac325b11fff8c739f1 wpt-pr: 10645

// Extracted from http://www.w3.org/TR/2015/WD-service-workers-20150205/

[Global=(Worker,ServiceWorker), Exposed=ServiceWorker]
interface ServiceWorkerGlobalScope : WorkerGlobalScope {

};

// Conformance with ExtendedAttributeList grammar in http://www.w3.org/TR/WebIDL/#idl-extended-attributes
// Section 3.11
[IntAttr=0, FloatAttr=3.14, StringAttr="abc"]
interface IdInterface {};

// Extracted from http://www.w3.org/TR/2016/REC-WebIDL-1-20161215/#Constructor on 2017-5-18 with whitespace differences
[
  Constructor,
  Constructor(double radius)
]
interface Circle {
  attribute double r;
  attribute double cx;
  attribute double cy;
  readonly attribute double circumference;
};

// Extracted from https://heycam.github.io/webidl/#idl-annotated-types on 2017-12-15
[Exposed=Window]
interface I {
    attribute [XAttr] (long or Node) attrib;
};