mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Auto merge of #5902 - nox:length, r=jdm
Blocked by https://github.com/w3c/testharness.js/pull/124. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5902) <!-- Reviewable:end -->
This commit is contained in:
commit
8faa9f877d
8 changed files with 6 additions and 195 deletions
|
@ -1224,11 +1224,11 @@ class PropertyDefiner:
|
||||||
",\n".join(specs) + "\n" +
|
",\n".join(specs) + "\n" +
|
||||||
"];\n") % (name, specType))
|
"];\n") % (name, specType))
|
||||||
|
|
||||||
# The length of a method is the maximum of the lengths of the
|
# The length of a method is the minimum of the lengths of the
|
||||||
# argument lists of all its overloads.
|
# argument lists of all its overloads.
|
||||||
def methodLength(method):
|
def methodLength(method):
|
||||||
signatures = method.signatures()
|
signatures = method.signatures()
|
||||||
return max([len(arguments) for (retType, arguments) in signatures])
|
return min(len([arg for arg in arguments if not arg.optional and not arg.variadic]) for (_, arguments) in signatures)
|
||||||
|
|
||||||
class MethodDefiner(PropertyDefiner):
|
class MethodDefiner(PropertyDefiner):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -117,6 +117,3 @@
|
||||||
[Newlines should not change when endings is 'native'.]
|
[Newlines should not change when endings is 'native'.]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Blob interface object]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
|
|
|
@ -15,9 +15,6 @@
|
||||||
[Blob interface: attribute isClosed]
|
[Blob interface: attribute isClosed]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Blob interface: operation slice(long long,long long,DOMString)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Blob interface: operation close()]
|
[Blob interface: operation close()]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -21,33 +21,12 @@
|
||||||
[XMLHttpRequest interface object length]
|
[XMLHttpRequest interface object length]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[XMLHttpRequest interface: operation open(ByteString,USVString)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[XMLHttpRequest interface: operation open(ByteString,USVString,boolean,USVString,USVString)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[XMLHttpRequest interface: operation send([object Object\],[object Object\])]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[XMLHttpRequest interface: new XMLHttpRequest() must inherit property "overrideMimeType" with the proper type (20)]
|
[XMLHttpRequest interface: new XMLHttpRequest() must inherit property "overrideMimeType" with the proper type (20)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[FormData interface: operation append(USVString,Blob,USVString)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[FormData interface: operation append(USVString,USVString)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[FormData interface: operation getAll(USVString)]
|
[FormData interface: operation getAll(USVString)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[FormData interface: operation set(USVString,Blob,USVString)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[FormData interface: operation set(USVString,USVString)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[FormData interface: calling getAll(USVString) on new FormData() with too few arguments must throw TypeError]
|
[FormData interface: calling getAll(USVString) on new FormData() with too few arguments must throw TypeError]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -21,12 +21,6 @@
|
||||||
[EventTarget interface object length]
|
[EventTarget interface object length]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[EventTarget interface: operation addEventListener(DOMString,EventListener,boolean)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[EventTarget interface: operation removeEventListener(DOMString,EventListener,boolean)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[NodeList interface object length]
|
[NodeList interface object length]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -99,9 +93,6 @@
|
||||||
[Node interface object length]
|
[Node interface object length]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Node interface: operation cloneNode(boolean)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: existence and properties of interface object]
|
[Document interface: existence and properties of interface object]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -111,15 +102,9 @@
|
||||||
[Document interface: attribute origin]
|
[Document interface: attribute origin]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: operation importNode(Node,boolean)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: operation createNodeIterator(Node,unsigned long,NodeFilter)]
|
[Document interface: operation createNodeIterator(Node,unsigned long,NodeFilter)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: operation createTreeWalker(Node,unsigned long,NodeFilter)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: operation query(DOMString)]
|
[Document interface: operation query(DOMString)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -168,12 +153,6 @@
|
||||||
[DOMImplementation interface object length]
|
[DOMImplementation interface object length]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[DOMImplementation interface: operation createDocument(DOMString,DOMString,DocumentType)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[DOMImplementation interface: operation createHTMLDocument(DOMString)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[DocumentFragment interface: existence and properties of interface object]
|
[DocumentFragment interface: existence and properties of interface object]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -324,9 +303,6 @@
|
||||||
[Comment interface object length]
|
[Comment interface object length]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Range interface: operation collapse(boolean)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Range interface: operation deleteContents()]
|
[Range interface: operation deleteContents()]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -450,9 +426,6 @@
|
||||||
[DOMTokenList interface object length]
|
[DOMTokenList interface object length]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[DOMTokenList interface: operation toggle(DOMString,boolean)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[DOMSettableTokenList interface: existence and properties of interface object]
|
[DOMSettableTokenList interface: existence and properties of interface object]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -474,54 +447,3 @@
|
||||||
[NodeIterator interface object length]
|
[NodeIterator interface object length]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: operation prepend([object Object\],[object Object\])]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: operation append([object Object\],[object Object\])]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[DocumentFragment interface: operation prepend([object Object\],[object Object\])]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[DocumentFragment interface: operation append([object Object\],[object Object\])]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[DocumentType interface: operation before([object Object\],[object Object\])]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[DocumentType interface: operation after([object Object\],[object Object\])]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[DocumentType interface: operation replaceWith([object Object\],[object Object\])]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Element interface: operation prepend([object Object\],[object Object\])]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Element interface: operation append([object Object\],[object Object\])]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Element interface: operation before([object Object\],[object Object\])]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Element interface: operation after([object Object\],[object Object\])]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Element interface: operation replaceWith([object Object\],[object Object\])]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[CharacterData interface: operation before([object Object\],[object Object\])]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[CharacterData interface: operation after([object Object\],[object Object\])]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[CharacterData interface: operation replaceWith([object Object\],[object Object\])]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[DOMTokenList interface: operation add(DOMString)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[DOMTokenList interface: operation remove(DOMString)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
|
|
|
@ -6,15 +6,9 @@
|
||||||
[TextDecoder interface: attribute ignoreBOM]
|
[TextDecoder interface: attribute ignoreBOM]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[TextDecoder interface: operation decode(BufferSource,TextDecodeOptions)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[TextDecoder interface: new TextDecoder() must inherit property "ignoreBOM" with the proper type (2)]
|
[TextDecoder interface: new TextDecoder() must inherit property "ignoreBOM" with the proper type (2)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[TextEncoder interface object length]
|
[TextEncoder interface object length]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[TextEncoder interface: operation encode(USVString)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
|
|
|
@ -5802,9 +5802,6 @@
|
||||||
[HTMLSelectElement interface: operation namedItem(DOMString)]
|
[HTMLSelectElement interface: operation namedItem(DOMString)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[HTMLSelectElement interface: operation add([object Object\],[object Object\],[object Object\],[object Object\])]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[HTMLSelectElement interface: operation remove()]
|
[HTMLSelectElement interface: operation remove()]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -6774,9 +6771,6 @@
|
||||||
[CanvasRenderingContext2D interface: attribute shadowColor]
|
[CanvasRenderingContext2D interface: attribute shadowColor]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[CanvasRenderingContext2D interface: operation fill(CanvasFillRule)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[CanvasRenderingContext2D interface: operation drawSystemFocusRing(Element)]
|
[CanvasRenderingContext2D interface: operation drawSystemFocusRing(Element)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -6795,9 +6789,6 @@
|
||||||
[CanvasRenderingContext2D interface: operation scrollPathIntoView(Path2D)]
|
[CanvasRenderingContext2D interface: operation scrollPathIntoView(Path2D)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[CanvasRenderingContext2D interface: operation clip(CanvasFillRule)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[CanvasRenderingContext2D interface: operation resetClip()]
|
[CanvasRenderingContext2D interface: operation resetClip()]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -6822,24 +6813,12 @@
|
||||||
[CanvasRenderingContext2D interface: operation measureText(DOMString)]
|
[CanvasRenderingContext2D interface: operation measureText(DOMString)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[CanvasRenderingContext2D interface: operation drawImage(CanvasImageSource,unrestricted double,unrestricted double)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[CanvasRenderingContext2D interface: operation drawImage(CanvasImageSource,unrestricted double,unrestricted double,unrestricted double,unrestricted double)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[CanvasRenderingContext2D interface: operation addHitRegion(HitRegionOptions)]
|
[CanvasRenderingContext2D interface: operation addHitRegion(HitRegionOptions)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[CanvasRenderingContext2D interface: operation removeHitRegion(DOMString)]
|
[CanvasRenderingContext2D interface: operation removeHitRegion(DOMString)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[CanvasRenderingContext2D interface: operation createImageData(ImageData)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[CanvasRenderingContext2D interface: operation putImageData(ImageData,double,double)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[CanvasRenderingContext2D interface: operation setLineDash([object Object\])]
|
[CanvasRenderingContext2D interface: operation setLineDash([object Object\])]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -6861,9 +6840,6 @@
|
||||||
[CanvasRenderingContext2D interface: attribute direction]
|
[CanvasRenderingContext2D interface: attribute direction]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[CanvasRenderingContext2D interface: operation arc(unrestricted double,unrestricted double,unrestricted double,unrestricted double,unrestricted double,boolean)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[CanvasRenderingContext2D interface: operation ellipse(unrestricted double,unrestricted double,unrestricted double,unrestricted double,unrestricted double,unrestricted double,unrestricted double,boolean)]
|
[CanvasRenderingContext2D interface: operation ellipse(unrestricted double,unrestricted double,unrestricted double,unrestricted double,unrestricted double,unrestricted double,unrestricted double,boolean)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -8706,9 +8682,6 @@
|
||||||
[WebSocket interface: attribute protocol]
|
[WebSocket interface: attribute protocol]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[WebSocket interface: operation close(unsigned short,DOMString)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[WebSocket interface: attribute onmessage]
|
[WebSocket interface: attribute onmessage]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -8835,24 +8808,6 @@
|
||||||
[WorkerGlobalScope interface: operation createImageBitmap(ImageBitmapSource,long,long,long,long)]
|
[WorkerGlobalScope interface: operation createImageBitmap(ImageBitmapSource,long,long,long,long)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[WorkerGlobalScope interface: operation setTimeout(Function,long,any)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[WorkerGlobalScope interface: operation setTimeout(DOMString,long,any)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[WorkerGlobalScope interface: operation clearTimeout(long)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[WorkerGlobalScope interface: operation setInterval(Function,long,any)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[WorkerGlobalScope interface: operation setInterval(DOMString,long,any)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[WorkerGlobalScope interface: operation clearInterval(long)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[DedicatedWorkerGlobalScope interface: existence and properties of interface object]
|
[DedicatedWorkerGlobalScope interface: existence and properties of interface object]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -9417,21 +9372,15 @@
|
||||||
[Location interface: window.location must have own property "reload"]
|
[Location interface: window.location must have own property "reload"]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[CanvasRenderingContext2D interface: operation fill(Path2D,CanvasFillRule)]
|
[WebSocket interface: operation send(DOMString)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[CanvasRenderingContext2D interface: operation clip(Path2D,CanvasFillRule)]
|
[WebSocket interface: operation send(Blob)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[CanvasRenderingContext2D interface: operation drawImage(CanvasImageSource,unrestricted double,unrestricted double,unrestricted double,unrestricted double,unrestricted double,unrestricted double,unrestricted double,unrestricted double)]
|
[WebSocket interface: operation send(ArrayBuffer)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[CanvasRenderingContext2D interface: operation createImageData(double,double)]
|
[WebSocket interface: operation send(ArrayBufferView)]
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[CanvasRenderingContext2D interface: operation putImageData(ImageData,double,double,double,double,double,double)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[WorkerGlobalScope interface: operation importScripts(DOMString)]
|
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -3,12 +3,6 @@
|
||||||
[EventTarget interface object length]
|
[EventTarget interface object length]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[EventTarget interface: operation addEventListener(DOMString,EventListener,boolean)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[EventTarget interface: operation removeEventListener(DOMString,EventListener,boolean)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[WorkerGlobalScope interface: existence and properties of interface object]
|
[WorkerGlobalScope interface: existence and properties of interface object]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -30,24 +24,6 @@
|
||||||
[WorkerGlobalScope interface: attribute ononline]
|
[WorkerGlobalScope interface: attribute ononline]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[WorkerGlobalScope interface: operation setTimeout(Function,long,any)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[WorkerGlobalScope interface: operation setTimeout(DOMString,long,any)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[WorkerGlobalScope interface: operation clearTimeout(long)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[WorkerGlobalScope interface: operation setInterval(Function,long,any)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[WorkerGlobalScope interface: operation setInterval(DOMString,long,any)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[WorkerGlobalScope interface: operation clearInterval(long)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[DedicatedWorkerGlobalScope interface: existence and properties of interface object]
|
[DedicatedWorkerGlobalScope interface: existence and properties of interface object]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -144,6 +120,3 @@
|
||||||
[WorkerNavigator interface: self.navigator must inherit property "onLine" with the proper type (8)]
|
[WorkerNavigator interface: self.navigator must inherit property "onLine" with the proper type (8)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[WorkerGlobalScope interface: operation importScripts(DOMString)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue