Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff activation.html activation.https.html
- 4,6c4,6
- < <script src="../resources/testharness.js"></script>
- < <script src="../resources/testharnessreport.js"></script>
- < <script src="resources/test-helpers.js"></script>
- ---
- > <script src="/resources/testharness.js"></script>
- > <script src="/resources/testharnessreport.js"></script>
- > <script src="resources/test-helpers.sub.js"></script>
- 8d7
- <
- 27d25
- <
- 35d32
- <
- 49d45
- <
- 56d51
- <
- 63d57
- <
- 66d59
- <
- 84d76
- <
- 87c79
- < var worker_url = 'resources/mint-new-worker.php';
- ---
- > var worker_url = 'resources/mint-new-worker.py';
- 91d82
- <
- 96d86
- <
- 105d94
- <
- 115d103
- <
- 118c106
- < var worker_url = 'resources/mint-new-worker.php';
- ---
- > var worker_url = 'resources/mint-new-worker.py';
- 122d109
- <
- 127d113
- <
- 143d128
- <
- 146c131
- < var worker_url = 'resources/mint-new-worker.php?skip-waiting';
- ---
- > var worker_url = 'resources/mint-new-worker.py?skip-waiting';
- 149d133
- <
- 153d136
- <
- 164a148,178
- >
- > // This test is not really about activation, but otherwise is very
- > // similar to the other tests here.
- > promise_test(t => {
- > var scope = 'resources/unregister';
- > var worker_url = 'resources/mint-new-worker.py';
- > var registration;
- > var iframe;
- > var new_worker;
- > return setup_activation_test(t, scope, worker_url)
- > .then(result => {
- > registration = result.registration;
- > iframe = result.iframe;
- > // Remove the iframe.
- > iframe.remove();
- > return registration.unregister();
- > })
- > .then(() => {
- > // The unregister operation should wait for the active worker to
- > // finish processing its events before clearing the registration.
- > new_worker = registration.waiting;
- > var reached_redundant = wait_for_state(t, new_worker, 'redundant');
- > registration.active.postMessage('go');
- > return reached_redundant;
- > })
- > .then(() => {
- > assert_equals(registration.installing, null);
- > assert_equals(registration.waiting, null);
- > assert_equals(registration.active, null);
- > });
- > }, 'finishing a request triggers unregister');
- 1
- diff activation-after-registration.html activation-after-registration.https.html
- 3,5c3,5
- < <script src="../resources/testharness.js"></script>
- < <script src="../resources/testharnessreport.js"></script>
- < <script src="resources/test-helpers.js"></script>
- ---
- > <script src="/resources/testharness.js"></script>
- > <script src="/resources/testharnessreport.js"></script>
- > <script src="resources/test-helpers.sub.js"></script>
- 1
- diff active.html active.https.html
- 3,5c3,5
- < <script src="../resources/testharness.js"></script>
- < <script src="../resources/testharnessreport.js"></script>
- < <script src="resources/test-helpers.js"></script>
- ---
- > <script src="/resources/testharness.js"></script>
- > <script src="/resources/testharnessreport.js"></script>
- > <script src="resources/test-helpers.sub.js"></script>
- 1
- diff fetch-event-after-navigation-within-page.html fetch-event-after-navigation-within-page.https.html
- 3,5c3,5
- < <script src="../resources/testharness.js"></script>
- < <script src="../resources/testharnessreport.js"></script>
- < <script src="resources/test-helpers.js"></script>
- ---
- > <script src="/resources/testharness.js"></script>
- > <script src="/resources/testharnessreport.js"></script>
- > <script src="resources/test-helpers.sub.js"></script>
- 1
- diff fetch-request-no-freshness-headers.html fetch-request-no-freshness-headers.https.html
- 3,5c3,5
- < <script src="../resources/testharness.js"></script>
- < <script src="../resources/testharnessreport.js"></script>
- < <script src="resources/test-helpers.js"></script>
- ---
- > <script src="/resources/testharness.js"></script>
- > <script src="/resources/testharnessreport.js"></script>
- > <script src="resources/test-helpers.sub.js?pipe=sub"></script>
- 1
- diff installing.html installing.https.html
- 3,5c3,5
- < <script src="../resources/testharness.js"></script>
- < <script src="../resources/testharnessreport.js"></script>
- < <script src="resources/test-helpers.js"></script>
- ---
- > <script src="/resources/testharness.js"></script>
- > <script src="/resources/testharnessreport.js"></script>
- > <script src="resources/test-helpers.sub.js"></script>
- 1
- diff resources/empty-worker.js resources/empty-worker.js
- 0
- diff resources/blank.html resources/blank.html
- 0
- diff resources/simple-intercept-worker.js resources/simple-intercept-worker.js
- 0
- diff resources/fetch-event-after-navigation-within-page-iframe.html resources/fetch-event-after-navigation-within-page-iframe.html
- 0
- diff resources/fetch-request-no-freshness-headers-iframe.html resources/fetch-request-no-freshness-headers-iframe.html
- 0
- diff resources/fetch-request-no-freshness-headers-worker.js resources/fetch-request-no-freshness-headers-worker.js
- 0
- diff resources/mint-new-worker.php resources/mint-new-worker.py
- 1,6c1
- < <?php
- < // Mint a new worker each load.
- < header("Cache-Control: no-cache, must-revalidate");
- < header("Pragma: no-cache");
- < header('Content-Type:application/javascript');
- < echo "// " . microtime() . "\n";
- ---
- > import time
- 8,11c3
- < if ($_SERVER['QUERY_STRING'] == 'skip-waiting') {
- < echo "skipWaiting();\n";
- < }
- < ?>
- ---
- > body = '''
- 13d4
- <
- 23c14,25
- < };
- ---
- > };'''
- >
- > def main(request, response):
- > headers = [('Cache-Control', 'no-cache, must-revalidate'),
- > ('Pragma', 'no-cache'),
- > ('Content-Type', 'application/javascript')]
- >
- > skipWaiting = ''
- > if 'skip-waiting' in request.GET:
- > skipWaiting = 'skipWaiting();'
- >
- > return headers, '/* %s %s */ %s %s' % (time.time(), time.clock(), skipWaiting, body)
- 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement