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

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

Issue 2755773002: Make Window#open arguments optional to match the spec
Patch Set: Updated layout tests for window.open Created 3 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
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 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', '0');
12 shouldBe('window.setTimeout.length', '1'); 12 shouldBe('window.setTimeout.length', '1');
13 shouldBe('window.clearTimeout.length', '0'); 13 shouldBe('window.clearTimeout.length', '0');
14 shouldBe('window.addEventListener.length', '2'); 14 shouldBe('window.addEventListener.length', '2');
15 shouldBe('window.removeEventListener.length', '2'); 15 shouldBe('window.removeEventListener.length', '2');
16 shouldBe('window.postMessage.length', '2'); 16 shouldBe('window.postMessage.length', '2');
17 shouldBe('window.dispatchEvent.length', '1'); 17 shouldBe('window.dispatchEvent.length', '1');
18 shouldBe('window.openDatabase.length', '4'); 18 shouldBe('window.openDatabase.length', '4');
19 shouldBe('window.history.pushState.length', '2'); 19 shouldBe('window.history.pushState.length', '2');
20 shouldBe('window.history.length', '1'); 20 shouldBe('window.history.length', '1');
21 shouldBe('window.URL.createObjectURL.length', '1'); 21 shouldBe('window.URL.createObjectURL.length', '1');
(...skipping 23 matching lines...) Expand all
45 shouldBe('Math.min.length', '2'); 45 shouldBe('Math.min.length', '2');
46 shouldBe('Function.prototype.apply.length', '2'); 46 shouldBe('Function.prototype.apply.length', '2');
47 shouldBe('Function.prototype.call.length', '1'); 47 shouldBe('Function.prototype.call.length', '1');
48 shouldBe('String.prototype.split.length', '2'); 48 shouldBe('String.prototype.split.length', '2');
49 shouldBe('String.prototype.substring.length', '2'); 49 shouldBe('String.prototype.substring.length', '2');
50 50
51 51
52 </script> 52 </script>
53 </body> 53 </body>
54 </html> 54 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698