OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="resources/js-test-pre.js"></script> |
| 5 </head> |
| 6 <body> |
| 7 <script> |
| 8 description("This tests the length property of functions."); |
| 9 |
| 10 shouldBe('window.confirm.length', '0'); |
| 11 shouldBe('window.open.length', '2'); |
| 12 shouldBe('window.showModalDialog.length', '1'); |
| 13 shouldBe('window.setTimeout.length', '1'); |
| 14 shouldBe('window.clearTimeout.length', '0'); |
| 15 shouldBe('window.addEventListener.length', '2'); |
| 16 |
| 17 shouldBe('Array.prototype.concat.length', '1'); |
| 18 shouldBe('Array.prototype.join.length', '1'); |
| 19 shouldBe('Array.prototype.push.length', '1'); |
| 20 shouldBe('Array.prototype.slice.length', '2'); |
| 21 shouldBe('Date.UTC.length', '7'); |
| 22 shouldBe('Date.prototype.setSeconds.length', '2'); |
| 23 shouldBe('Date.prototype.setMinutes.length', '3'); |
| 24 shouldBe('Date.prototype.setHours.length', '4'); |
| 25 shouldBe('Date.prototype.setMonth.length', '2'); |
| 26 shouldBe('Date.prototype.setFullYear.length', '3'); |
| 27 shouldBe('Number.prototype.toExponential.length', '1'); |
| 28 shouldBe('Number.prototype.toFixed.length', '1'); |
| 29 shouldBe('Number.prototype.toPrecision.length', '1'); |
| 30 shouldBe('Math.max.length', '2'); |
| 31 shouldBe('Math.min.length', '2'); |
| 32 shouldBe('Function.prototype.apply.length', '2'); |
| 33 shouldBe('Function.prototype.call.length', '1'); |
| 34 shouldBe('String.prototype.split.length', '2'); |
| 35 shouldBe('String.prototype.substring.length', '2'); |
| 36 |
| 37 |
| 38 </script> |
| 39 <script src="resources/js-test-post.js"></script> |
| 40 </body> |
| 41 </html> |
OLD | NEW |