Advertisement
Guest User

Untitled

a guest
Feb 15th, 2017
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 5.73 KB | None | 0 0
  1. diff activation.html activation.https.html
  2. 4,6c4,6
  3. < <script src="../resources/testharness.js"></script>
  4. < <script src="../resources/testharnessreport.js"></script>
  5. < <script src="resources/test-helpers.js"></script>
  6. ---
  7. > <script src="/resources/testharness.js"></script>
  8. > <script src="/resources/testharnessreport.js"></script>
  9. > <script src="resources/test-helpers.sub.js"></script>
  10. 8d7
  11. <
  12. 27d25
  13. <
  14. 35d32
  15. <
  16. 49d45
  17. <
  18. 56d51
  19. <
  20. 63d57
  21. <
  22. 66d59
  23. <
  24. 84d76
  25. <
  26. 87c79
  27. <     var worker_url = 'resources/mint-new-worker.php';
  28. ---
  29. >     var worker_url = 'resources/mint-new-worker.py';
  30. 91d82
  31. <
  32. 96d86
  33. <
  34. 105d94
  35. <
  36. 115d103
  37. <
  38. 118c106
  39. <     var worker_url = 'resources/mint-new-worker.php';
  40. ---
  41. >     var worker_url = 'resources/mint-new-worker.py';
  42. 122d109
  43. <
  44. 127d113
  45. <
  46. 143d128
  47. <
  48. 146c131
  49. <     var worker_url = 'resources/mint-new-worker.php?skip-waiting';
  50. ---
  51. >     var worker_url = 'resources/mint-new-worker.py?skip-waiting';
  52. 149d133
  53. <
  54. 153d136
  55. <
  56. 164a148,178
  57. >
  58. > // This test is not really about activation, but otherwise is very
  59. > // similar to the other tests here.
  60. > promise_test(t => {
  61. >     var scope = 'resources/unregister';
  62. >     var worker_url = 'resources/mint-new-worker.py';
  63. >     var registration;
  64. >     var iframe;
  65. >     var new_worker;
  66. >     return setup_activation_test(t, scope, worker_url)
  67. >       .then(result => {
  68. >           registration = result.registration;
  69. >           iframe = result.iframe;
  70. >           // Remove the iframe.
  71. >           iframe.remove();
  72. >           return registration.unregister();
  73. >         })
  74. >       .then(() => {
  75. >           // The unregister operation should wait for the active worker to
  76. >           // finish processing its events before clearing the registration.
  77. >           new_worker = registration.waiting;
  78. >           var reached_redundant = wait_for_state(t, new_worker, 'redundant');
  79. >           registration.active.postMessage('go');
  80. >           return reached_redundant;
  81. >         })
  82. >       .then(() => {
  83. >           assert_equals(registration.installing, null);
  84. >           assert_equals(registration.waiting, null);
  85. >           assert_equals(registration.active, null);
  86. >         });
  87. >   }, 'finishing a request triggers unregister');
  88. 1
  89. diff activation-after-registration.html activation-after-registration.https.html
  90. 3,5c3,5
  91. < <script src="../resources/testharness.js"></script>
  92. < <script src="../resources/testharnessreport.js"></script>
  93. < <script src="resources/test-helpers.js"></script>
  94. ---
  95. > <script src="/resources/testharness.js"></script>
  96. > <script src="/resources/testharnessreport.js"></script>
  97. > <script src="resources/test-helpers.sub.js"></script>
  98. 1
  99. diff active.html active.https.html
  100. 3,5c3,5
  101. < <script src="../resources/testharness.js"></script>
  102. < <script src="../resources/testharnessreport.js"></script>
  103. < <script src="resources/test-helpers.js"></script>
  104. ---
  105. > <script src="/resources/testharness.js"></script>
  106. > <script src="/resources/testharnessreport.js"></script>
  107. > <script src="resources/test-helpers.sub.js"></script>
  108. 1
  109. diff fetch-event-after-navigation-within-page.html fetch-event-after-navigation-within-page.https.html
  110. 3,5c3,5
  111. < <script src="../resources/testharness.js"></script>
  112. < <script src="../resources/testharnessreport.js"></script>
  113. < <script src="resources/test-helpers.js"></script>
  114. ---
  115. > <script src="/resources/testharness.js"></script>
  116. > <script src="/resources/testharnessreport.js"></script>
  117. > <script src="resources/test-helpers.sub.js"></script>
  118. 1
  119. diff fetch-request-no-freshness-headers.html fetch-request-no-freshness-headers.https.html
  120. 3,5c3,5
  121. < <script src="../resources/testharness.js"></script>
  122. < <script src="../resources/testharnessreport.js"></script>
  123. < <script src="resources/test-helpers.js"></script>
  124. ---
  125. > <script src="/resources/testharness.js"></script>
  126. > <script src="/resources/testharnessreport.js"></script>
  127. > <script src="resources/test-helpers.sub.js?pipe=sub"></script>
  128. 1
  129. diff installing.html installing.https.html
  130. 3,5c3,5
  131. < <script src="../resources/testharness.js"></script>
  132. < <script src="../resources/testharnessreport.js"></script>
  133. < <script src="resources/test-helpers.js"></script>
  134. ---
  135. > <script src="/resources/testharness.js"></script>
  136. > <script src="/resources/testharnessreport.js"></script>
  137. > <script src="resources/test-helpers.sub.js"></script>
  138. 1
  139. diff resources/empty-worker.js resources/empty-worker.js
  140. 0
  141. diff resources/blank.html resources/blank.html
  142. 0
  143. diff resources/simple-intercept-worker.js resources/simple-intercept-worker.js
  144. 0
  145. diff resources/fetch-event-after-navigation-within-page-iframe.html resources/fetch-event-after-navigation-within-page-iframe.html
  146. 0
  147. diff resources/fetch-request-no-freshness-headers-iframe.html resources/fetch-request-no-freshness-headers-iframe.html
  148. 0
  149. diff resources/fetch-request-no-freshness-headers-worker.js resources/fetch-request-no-freshness-headers-worker.js
  150. 0
  151. diff resources/mint-new-worker.php resources/mint-new-worker.py
  152. 1,6c1
  153. < <?php
  154. < // Mint a new worker each load.
  155. < header("Cache-Control: no-cache, must-revalidate");
  156. < header("Pragma: no-cache");
  157. < header('Content-Type:application/javascript');
  158. < echo "// " . microtime() . "\n";
  159. ---
  160. > import time
  161. 8,11c3
  162. < if ($_SERVER['QUERY_STRING'] == 'skip-waiting') {
  163. <   echo "skipWaiting();\n";
  164. < }
  165. < ?>
  166. ---
  167. > body = '''
  168. 13d4
  169. <
  170. 23c14,25
  171. <   };
  172. ---
  173. >   };'''
  174. >
  175. > def main(request, response):
  176. >     headers = [('Cache-Control', 'no-cache, must-revalidate'),
  177. >                ('Pragma', 'no-cache'),
  178. >                ('Content-Type', 'application/javascript')]
  179. >
  180. >     skipWaiting = ''
  181. >     if 'skip-waiting' in request.GET:
  182. >       skipWaiting = 'skipWaiting();'
  183. >
  184. >     return headers, '/* %s %s */ %s %s' % (time.time(), time.clock(), skipWaiting, body)
  185. 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement