mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 10:57:34 +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
35
dom/tests/mochitest/ajax/lib/AJAX_setup.js
Normal file
35
dom/tests/mochitest/ajax/lib/AJAX_setup.js
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
var AJAXtests = [];
|
||||
|
||||
function runAJAXTest() {
|
||||
if (AJAXtests.length == 0) {
|
||||
SimpleTest.finish();
|
||||
return;
|
||||
}
|
||||
|
||||
var test = AJAXtests.shift();
|
||||
var testframe = document.getElementById("testframe");
|
||||
testframe.src = test;
|
||||
}
|
||||
|
||||
function onManifestLoad(manifest) {
|
||||
if (manifest.testcases) {
|
||||
AJAXtests = manifest.testcases;
|
||||
runAJAXTest();
|
||||
} else {
|
||||
ok(false, "manifest check", "no manifest!?!");
|
||||
SimpleTest.finish();
|
||||
}
|
||||
}
|
||||
|
||||
function fetchManifest() {
|
||||
var d = loadJSONDoc("manifest.json");
|
||||
d.addBoth(onManifestLoad);
|
||||
}
|
||||
|
||||
// Double timeout duration. Since this test case takes longer than 300 seconds
|
||||
// on B2G emulator.
|
||||
// See bug 968783.
|
||||
SimpleTest.requestLongerTimeout(2);
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
addLoadEvent(fetchManifest);
|
||||
28
dom/tests/mochitest/ajax/lib/test.css
Normal file
28
dom/tests/mochitest/ajax/lib/test.css
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
.test_ok {
|
||||
color: green;
|
||||
display: none;
|
||||
}
|
||||
.test_not_ok {
|
||||
color: red;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.test_ok, .test_not_ok {
|
||||
border-bottom-width: 2px;
|
||||
border-bottom-style: solid;
|
||||
border-bottom-color: black;
|
||||
}
|
||||
|
||||
.all_pass {
|
||||
background-color: lime;
|
||||
}
|
||||
|
||||
.some_fail {
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
.tests_report {
|
||||
border-width: 2px;
|
||||
border-style: solid;
|
||||
width: 20em;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue