OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description("This tests the length property of constructors."); | 8 description("This tests the length property of constructors."); |
9 | 9 |
10 shouldBe('ArrayBuffer.length', '1'); | 10 shouldBe('ArrayBuffer.length', '1'); |
11 shouldBe('AudioContext.length', '0'); | 11 shouldBe('AudioContext.length', '0'); |
12 shouldBe('AutocompleteErrorEvent.length', '1'); | |
13 shouldBe('Blob.length', '0'); | 12 shouldBe('Blob.length', '0'); |
14 shouldBe('CloseEvent.length', '1'); | 13 shouldBe('CloseEvent.length', '1'); |
15 // TODO(bashi): CustomEvent.length == 0 since it uses custom constructor. | 14 // TODO(bashi): CustomEvent.length == 0 since it uses custom constructor. |
16 // Fix this regression once http://crbug.com/529941 is fixed. | 15 // Fix this regression once http://crbug.com/529941 is fixed. |
17 shouldBe('CustomEvent.length', '1'); | 16 shouldBe('CustomEvent.length', '1'); |
18 shouldBe('DOMFormData.length', '0'); | 17 shouldBe('DOMFormData.length', '0'); |
19 shouldBe('DOMParser.length', '0'); | 18 shouldBe('DOMParser.length', '0'); |
20 shouldBe('DataView.length', '3'); | 19 shouldBe('DataView.length', '3'); |
21 shouldBe('ErrorEvent.length', '1'); | 20 shouldBe('ErrorEvent.length', '1'); |
22 shouldBe('Event.length', '1'); | 21 shouldBe('Event.length', '1'); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 shouldBe('Worker.length', '1'); | 54 shouldBe('Worker.length', '1'); |
56 shouldBe('URL.length', '1'); | 55 shouldBe('URL.length', '1'); |
57 shouldBe('XMLHttpRequest.length', '0'); | 56 shouldBe('XMLHttpRequest.length', '0'); |
58 shouldBe('XMLSerializer.length', '0'); | 57 shouldBe('XMLSerializer.length', '0'); |
59 shouldBe('XPathEvaluator.length', '0'); | 58 shouldBe('XPathEvaluator.length', '0'); |
60 shouldBe('XSLTProcessor.length', '0'); | 59 shouldBe('XSLTProcessor.length', '0'); |
61 | 60 |
62 </script> | 61 </script> |
63 </body> | 62 </body> |
64 </html> | 63 </html> |
OLD | NEW |