| 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('Blob.length', '0'); | 12 shouldBe('Blob.length', '0'); |
| 13 shouldBe('CloseEvent.length', '1'); | 13 shouldBe('CloseEvent.length', '1'); |
| 14 // TODO(bashi): CustomEvent.length == 0 since it uses custom constructor. | |
| 15 // Fix this regression once http://crbug.com/529941 is fixed. | |
| 16 shouldBe('CustomEvent.length', '1'); | 14 shouldBe('CustomEvent.length', '1'); |
| 17 shouldBe('DOMFormData.length', '0'); | 15 shouldBe('DOMFormData.length', '0'); |
| 18 shouldBe('DOMParser.length', '0'); | 16 shouldBe('DOMParser.length', '0'); |
| 19 shouldBe('DataView.length', '3'); | 17 shouldBe('DataView.length', '3'); |
| 20 shouldBe('ErrorEvent.length', '1'); | 18 shouldBe('ErrorEvent.length', '1'); |
| 21 shouldBe('Event.length', '1'); | 19 shouldBe('Event.length', '1'); |
| 22 shouldBe('EventSource.length', '1'); | 20 shouldBe('EventSource.length', '1'); |
| 23 shouldBe('Float32Array.length', '3'); | 21 shouldBe('Float32Array.length', '3'); |
| 24 shouldBe('Float64Array.length', '3'); | 22 shouldBe('Float64Array.length', '3'); |
| 25 shouldBe('FileReader.length', '0'); | 23 shouldBe('FileReader.length', '0'); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 54 shouldBe('Worker.length', '1'); | 52 shouldBe('Worker.length', '1'); |
| 55 shouldBe('URL.length', '1'); | 53 shouldBe('URL.length', '1'); |
| 56 shouldBe('XMLHttpRequest.length', '0'); | 54 shouldBe('XMLHttpRequest.length', '0'); |
| 57 shouldBe('XMLSerializer.length', '0'); | 55 shouldBe('XMLSerializer.length', '0'); |
| 58 shouldBe('XPathEvaluator.length', '0'); | 56 shouldBe('XPathEvaluator.length', '0'); |
| 59 shouldBe('XSLTProcessor.length', '0'); | 57 shouldBe('XSLTProcessor.length', '0'); |
| 60 | 58 |
| 61 </script> | 59 </script> |
| 62 </body> | 60 </body> |
| 63 </html> | 61 </html> |
| OLD | NEW |