зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1159378 - Part 4: Add a unit test for periodic updates of service workers on HTTPS origins; r=nsm
The reason why this test is interesting here is that it tests the code path added in the part 2 of this bug. --HG-- extra : rebase_source : 0742186497adfc4bafb5a9073b13736efb14d78e
This commit is contained in:
Родитель
33bf6126a9
Коммит
a26860eed6
|
@ -109,3 +109,4 @@ support-files =
|
|||
[test_workerupdatefoundevent.html]
|
||||
[test_empty_serviceworker.html]
|
||||
[test_periodic_update.html]
|
||||
[test_periodic_https_update.html]
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Bug 1159378 - Test the periodic update of service workers</title>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" src="periodic_update_test.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
||||
</head>
|
||||
<body>
|
||||
<p id="display"></p>
|
||||
<div id="content" style="display: none"></div>
|
||||
<pre id="test"></pre>
|
||||
<script class="testbody" type="text/javascript">
|
||||
|
||||
gPrefix = "https://example.com/tests/dom/workers/test/serviceworkers/";
|
||||
runTheTest();
|
||||
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
|
Загрузка…
Ссылка в новой задаче