mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 09:18:42 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
|
|
@ -0,0 +1,40 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Offline Application Cache</title>
|
||||
<link rel="stylesheet" href="../resources/css/result.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>navigator_online_event</h1>
|
||||
|
||||
<ol>
|
||||
<li>Change the 'work offline' mode.</li>
|
||||
<li>If actual result and expected result are same, then test is <span class="manualpass">Pass</span>, otherwise <span class="manualfail">Fail</span>.</li>
|
||||
</ol>
|
||||
|
||||
<hr>
|
||||
|
||||
<h2>Actual Result</h2>
|
||||
<div id="actualResult">
|
||||
<span id="actualMsg"></span>
|
||||
</div>
|
||||
|
||||
<h2>Expected Result</h2>
|
||||
<div id="expectedResult">
|
||||
<span id="expectedMsg">apply 'work offline': offline event is raised.<p>release 'work offline': online event is raised.</span>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
function showOnline() {
|
||||
document.getElementById('actualMsg').innerHTML = 'online event is raised.';
|
||||
}
|
||||
|
||||
function showOffline() {
|
||||
document.getElementById('actualMsg').innerHTML = 'offline event is raised.';
|
||||
}
|
||||
|
||||
window.addEventListener("online", showOnline, false);
|
||||
window.addEventListener("offline", showOffline, false);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Offline Application Cache - navigator_online_online</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="log"></div>
|
||||
|
||||
<script>
|
||||
test(function() {
|
||||
assert_true(navigator.onLine, "onLine test");
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue