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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/worker-testharness.js

Issue 2415873002: Import w3c tests for the service workers (Closed)
Patch Set: Rebase Created 4 years, 2 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 /* 1 /*
2 * worker-test-harness should be considered a temporary polyfill around 2 * worker-test-harness should be considered a temporary polyfill around
3 * testharness.js for supporting Service Worker based tests. It should not be 3 * testharness.js for supporting Service Worker based tests. It should not be
4 * necessary once the test harness is able to drive worker based tests natively. 4 * necessary once the test harness is able to drive worker based tests natively.
5 * See https://github.com/w3c/testharness.js/pull/82 for status of effort to 5 * See https://github.com/w3c/testharness.js/pull/82 for status of effort to
6 * update upstream testharness.js. Once the upstreaming is complete, tests that 6 * update upstream testharness.js. Once the upstreaming is complete, tests that
7 * reference worker-test-harness should be updated to directly import 7 * reference worker-test-harness should be updated to directly import
8 * testharness.js. 8 * testharness.js.
9 */ 9 */
10 10
(...skipping 29 matching lines...) Expand all
40 // E.g.: 40 // E.g.:
41 // cache_test(function(cache) { 41 // cache_test(function(cache) {
42 // // Do something with |cache|, which is a Cache object. 42 // // Do something with |cache|, which is a Cache object.
43 // }, "Some Cache test"); 43 // }, "Some Cache test");
44 function cache_test(test_function, description) { 44 function cache_test(test_function, description) {
45 promise_test(function(test) { 45 promise_test(function(test) {
46 return create_temporary_cache(test) 46 return create_temporary_cache(test)
47 .then(test_function); 47 .then(test_function);
48 }, description); 48 }, description);
49 } 49 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698