Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(777)

Side by Side Diff: LayoutTests/fast/js/function-length.html

Issue 14244017: Make length property return useful values for DOM bindings functions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Replace [Optional] by optional Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW
« no previous file with comments | « LayoutTests/fast/js/constructor-length-expected.txt ('k') | LayoutTests/fast/js/function-length-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698