OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |