Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / constructor-length.html
blob56f1c991b291dde265427404cc106ab8a3a85300
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script>
8 description("This tests the length property of constructors.");
10 shouldBe('ArrayBuffer.length', '1');
11 shouldBe('AudioContext.length', '0');
12 shouldBe('AutocompleteErrorEvent.length', '1');
13 shouldBe('Blob.length', '0');
14 shouldBe('CloseEvent.length', '1');
15 shouldBe('CustomEvent.length', '1');
16 shouldBe('DOMFormData.length', '0');
17 shouldBe('DOMParser.length', '0');
18 shouldBe('DataView.length', '3');
19 shouldBe('ErrorEvent.length', '1');
20 shouldBe('Event.length', '1');
21 shouldBe('EventSource.length', '1');
22 shouldBe('Float32Array.length', '3');
23 shouldBe('Float64Array.length', '3');
24 shouldBe('FileReader.length', '0');
25 shouldBe('FileReaderSync.length', '0');
26 shouldBe('HashChangeEvent.length', '1');
27 shouldBe('Int16Array.length', '3');
28 shouldBe('Int32Array.length', '3');
29 shouldBe('Int8Array.length', '3');
30 shouldBe('Intent.length', '3');
31 shouldBe('MediaController.length', '0');
32 shouldBe('MediaStream.length', '0');
33 shouldBe('MessageChannel.length', '0');
34 shouldBe('MessageEvent.length', '1');
35 shouldBe('PageTransitionEvent.length', '1');
36 shouldBe('PeerConnection.length', '2');
37 shouldBe('PopStateEvent.length', '1');
38 shouldBe('ProgressEvent.length', '1');
39 shouldBe('ShadowRoot.length', '0');
40 shouldBe('SharedWorker.length', '1');
41 shouldBe('StorageEvent.length', '1');
42 shouldBe('TrackEvent.length', '1');
43 shouldBe('Uint16Array.length', '3');
44 shouldBe('Uint32Array.length', '3');
45 shouldBe('Uint8Array.length', '3');
46 shouldBe('Uint8ClampedArray.length', '3');
47 shouldBe('VTTCue.length', '3');
48 shouldBe('WebGLContextEvent.length', '1');
49 shouldBe('WebKitAnimationEvent.length', '1');
50 shouldBe('WebKitCSSMatrix.length', '0');
51 shouldBe('WebKitMutationObserver.length', '1');
52 shouldBe('WebKitTransitionEvent.length', '1');
53 shouldBe('WebSocket.length', '1');
54 shouldBe('Worker.length', '1');
55 shouldBe('URL.length', '1');
56 shouldBe('XMLHttpRequest.length', '0');
57 shouldBe('XMLSerializer.length', '0');
58 shouldBe('XPathEvaluator.length', '0');
59 shouldBe('XSLTProcessor.length', '0');
61 </script>
62 </body>
63 </html>