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