Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 <!doctype html>
2 <meta charset=utf-8>
3 <link rel=stylesheet href=../css/reset.css>
4 <title>HTML editing conformance tests</title>
5 <p>See the <a href=editing.html#tests>Tests</a> section of the specification
6 for documentation.
8 <p id=timing></p>
10 <div id=log></div>
12 <div id=test-container></div>
14 <script src=../implementation.js></script>
15 <script>var testsJsLibraryOnly = true</script>
16 <script src=../tests.js></script>
17 <script src=data.js></script>
18 <script src=/resources/testharness.js></script>
19 <script src=/resources/testharnessreport.js></script>
20 <script>
21 "use strict";
23 runTests();
25 function runTests() {
26 var startTime = Date.now();
28 // Make document.body.innerHTML more tidy by removing unnecessary things.
29 // We can't remove the testharness.js script, because at the time of this
30 // writing, for some reason that stops it from adding appropriate CSS.
31 [].forEach.call(document.querySelectorAll("script"), function(node) {
32 if (!/testharness\.js$/.test(node.src)) {
33 node.parentNode.removeChild(node);
34 }
35 });
37 browserTests.forEach(runConformanceTest);
39 document.getElementById("test-container").parentNode
40 .removeChild(document.getElementById("test-container"));
42 var elapsed = Math.round(Date.now() - startTime)/1000;
43 document.getElementById("timing").textContent =
44 "Time elapsed: " + Math.floor(elapsed/60) + ":"
45 + ((elapsed % 60) < 10 ? "0" : "")
46 + (elapsed % 60).toFixed(3) + " min.";
47 }
48 </script>