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

Side by Side Diff: third_party/WebKit/LayoutTests/media/remoteplayback/watch-availability-throws-low-end-device.html

Issue 2677563003: Remote Playback API: move tests that can be moved to WPT. (Closed)
Patch Set: rebase Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/LayoutTests/media/remoteplayback/watch-availability-initial-callback.html ('k') | no next file » | 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> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Test that watchAvailability() throws on low-end devices.</title> 4 <title>Test that watchAvailability() throws on low-end devices.</title>
5 <script src="../../resources/testharness.js"></script> 5 <script src="../../resources/testharness.js"></script>
6 <script src="../../resources/testharnessreport.js"></script> 6 <script src="../../resources/testharnessreport.js"></script>
7 <script src="../media-file.js"></script> 7 <script src="../media-file.js"></script>
8 </head> 8 </head>
9 <body> 9 <body>
10 <script> 10 <script>
11 // WPT: this test can't be moved to WPT because of its usage of:
12 // - internals.setIsLowEndDevice()
11 async_test(function(t) 13 async_test(function(t)
12 { 14 {
13 var v = document.createElement('video'); 15 var v = document.createElement('video');
14 v.src = findMediaFile('video', 'content/test'); 16 v.src = findMediaFile('video', 'content/test');
15 document.body.appendChild(v); 17 document.body.appendChild(v);
16 internals.setIsLowEndDevice(true); 18 internals.setIsLowEndDevice(true);
17 v.remote.watchAvailability(t.unreached_func()).then( 19 v.remote.watchAvailability(t.unreached_func()).then(
18 t.unreached_func(), 20 t.unreached_func(),
19 t.step_func_done(function(e) { 21 t.step_func_done(function(e) {
20 assert_equals(e.name, 'NotSupportedError'); 22 assert_equals(e.name, 'NotSupportedError');
21 assert_equals(e.message, 23 assert_equals(e.message,
22 'Availability monitoring is not supported on this dev ice.'); 24 'Availability monitoring is not supported on this dev ice.');
23 internals.setIsLowEndDevice(false); 25 internals.setIsLowEndDevice(false);
24 })); 26 }));
25 }, 'Test that watchAvailability() throws on low-end devices.'); 27 }, 'Test that watchAvailability() throws on low-end devices.');
26 </script> 28 </script>
27 </body> 29 </body>
28 </html> 30 </html>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/media/remoteplayback/watch-availability-initial-callback.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698