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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Window/window-legacy-event-listener.html

Issue 1461993002: Make addEventListener/removeEventListener arguments non-optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: drop the use counters Created 5 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/Window/window-legacy-event-listener-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
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("Test addEventListener() and removeEventListener() fail silently if arguments are missing."); 8 description("Test addEventListener() and removeEventListener() fail silently if arguments are missing.");
9 9
10 shouldBe('window.addEventListener("foo")', 'undefined'); 10 shouldThrow('window.addEventListener("foo")');
11 shouldBe('window.removeEventListener("bar")', 'undefined'); 11 shouldThrow('window.removeEventListener("bar")');
12 12
13 shouldBe('window.addEventListener()', 'undefined'); 13 shouldThrow('window.addEventListener()');
14 shouldBe('window.removeEventListener()', 'undefined'); 14 shouldThrow('window.removeEventListener()');
15 </script> 15 </script>
16 </body> 16 </body>
17 </html> 17 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/Window/window-legacy-event-listener-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698