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

Side by Side Diff: third_party/WebKit/LayoutTests/presentation/presentationconnectionavailableevent-ctor.html

Issue 2491693003: Add tests for PresentationConnectionAvailable constructor. (Closed)
Patch Set: review comments Created 4 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/presentation/presentationconnectionavailableevent-ctor-mock.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../resources/testharness.js"></script>
5 <script src="../resources/testharnessreport.js"></script>
6 <script>
7
8 test(function() {
9 assert_true('PresentationConnectionAvailableEvent' in window);
10 }, "Test that the PresentationConnectionAvailableEvent interface is present.")
11
12 test(function() {
13 assert_throws(new TypeError, () => {
14 new PresentationConnectionAvailableEvent('connectionavailable')
15 });
16 assert_throws(new TypeError, () => {
17 new PresentationConnectionAvailableEvent('connectionavailable', {})
18 });
19 assert_throws(new TypeError, () => {
20 new PresentationConnectionAvailableEvent('connectionavailable', { connection : null })
21 });
22 }, "Test that the PresentationConnectionAvailableEvent ctor requires connection parameter.")
23
24 // It is not possible to check that passing a valid constructor works in this
25 // test because some mocking is required in order to get a
26 // PresentationConnection.
27
28 </script>
29 </body>
30 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/presentation/presentationconnectionavailableevent-ctor-mock.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698