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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/budget/interfaces-in-service-worker.html

Issue 2600733002: Convert budget LayoutTests to use promise_test. (Closed)
Patch Set: Changed then scoping and removed unnecessary rejection. Created 3 years, 11 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 <title>Budget interfaces available in a Service Worker</title> 4 <title>Budget interfaces available in a Service Worker</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="../serviceworker/resources/test-helpers.js"></script> 7 <script src="../serviceworker/resources/test-helpers.js"></script>
8 <script src="../notifications/resources/test-helpers.js"></script> 8 <script src="../notifications/resources/test-helpers.js"></script>
9 </head> 9 </head>
10 <body> 10 <body>
(...skipping 12 matching lines...) Expand all
23 assert_unreached('Invalid message from the service worker'); 23 assert_unreached('Invalid message from the service worker');
24 24
25 assert_equals(event.data.command, 'checkInterfaces'); 25 assert_equals(event.data.command, 'checkInterfaces');
26 assert_true(event.data.success, 26 assert_true(event.data.success,
27 'checkInterfaces should succeed but failed with error: ' + 27 'checkInterfaces should succeed but failed with error: ' +
28 event.data.message); 28 event.data.message);
29 }); 29 });
30 30
31 return sendCommand(port, { command: 'checkInterfaces' }); 31 return sendCommand(port, { command: 'checkInterfaces' });
32 }) 32 })
33 .catch(unreached_rejection(test));
34 }, 'Budget interfaces should be available in a Service Worker'); 33 }, 'Budget interfaces should be available in a Service Worker');
35 </script> 34 </script>
36 </body> 35 </body>
37 </html> 36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698