diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-04-14 21:49:04 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-04-14 21:49:04 +0200 |
commit | 39dac57259cff8b61db0b22cb2ad0a8adb02692e (patch) | |
tree | 52a026cc8c22793eb17fd0f5e22adce1ae08a1dd /toolkit/components/microformats/test/interface-tests/index.html | |
parent | a1cce3b2b00bbd9f4983013ddd8934a7bccb9e99 (diff) | |
parent | c2d9ab62f3d097c9e0e00184cab1f546554f5eaa (diff) | |
download | UXP-39dac57259cff8b61db0b22cb2ad0a8adb02692e.tar UXP-39dac57259cff8b61db0b22cb2ad0a8adb02692e.tar.gz UXP-39dac57259cff8b61db0b22cb2ad0a8adb02692e.tar.lz UXP-39dac57259cff8b61db0b22cb2ad0a8adb02692e.tar.xz UXP-39dac57259cff8b61db0b22cb2ad0a8adb02692e.zip |
Merge branch 'redwood' into 28.9-platform
Diffstat (limited to 'toolkit/components/microformats/test/interface-tests/index.html')
-rw-r--r-- | toolkit/components/microformats/test/interface-tests/index.html | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/toolkit/components/microformats/test/interface-tests/index.html b/toolkit/components/microformats/test/interface-tests/index.html deleted file mode 100644 index 61759790e..000000000 --- a/toolkit/components/microformats/test/interface-tests/index.html +++ /dev/null @@ -1,69 +0,0 @@ -<html><head><title>Mocha</title> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<link rel="stylesheet" href="../static/css/mocha.css" /> -<script src="../static/javascript/chai.js"></script> -<script src="../static/javascript/mocha.js"></script> -<link rel="stylesheet" href="../static/css/mocha-custom.css" /> -<link rel="icon" type="image/png" id="favicon" href="chrome://branding/content/icon32.png"/> - -<script src="../static/javascript/DOMParser.js"></script> - -<script data-cover src="../../microformat-shiv.js"></script> - -<script> -var uncaughtError; - -window.addEventListener("error", function(error) { -uncaughtError = error; -}); - -var consoleWarn = console.warn; -var caughtWarnings = []; - -console.warn = function() { -var args = Array.slice(arguments); -caughtWarnings.push(args); -consoleWarn.apply(console, args); -}; -</script> - -<script> -chai.config.includeStack = true; -mocha.setup({ui: 'bdd', timeout: 10000}); -</script> - - -<script src="../interface-tests/get-test.js"></script> -<script src="../interface-tests/getParent-test.js"></script> -<script src="../interface-tests/count-test.js"></script> -<script src="../interface-tests/isMicroformat-test.js"></script> -<script src="../interface-tests/hasMicroformats-test.js"></script> - -<script src="../interface-tests/experimental-test.js"></script> - -</head><body> -<h3 class="capitalize">Microformats-shiv: interface tests</h3> -<div id="mocha"></div> -</body> -<script> -describe("Uncaught Error Check", function() { -it("should load the tests without errors", function() { -chai.expect(uncaughtError && uncaughtError.message).to.be.undefined; -}); -}); - -describe("Unexpected Warnings Check", function() { -it("should long only the warnings we expect", function() { -chai.expect(caughtWarnings.length).to.eql(0); -}); -}); - -mocha.run(function () { -var completeNode = document.createElement("p"); -completeNode.setAttribute("id", "complete"); -completeNode.appendChild(document.createTextNode("Complete")); -document.getElementById("mocha").appendChild(completeNode); -}); - -</script> -</body></html> |