diff options
Diffstat (limited to 'testing/web-platform/tests/editing/run')
33 files changed, 1685 insertions, 0 deletions
diff --git a/testing/web-platform/tests/editing/run/backcolor.html b/testing/web-platform/tests/editing/run/backcolor.html new file mode 100644 index 000000000..94ca94a77 --- /dev/null +++ b/testing/web-platform/tests/editing/run/backcolor.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>backcolor - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/backcolor.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (false) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/bold.html b/testing/web-platform/tests/editing/run/bold.html new file mode 100644 index 000000000..583428bb0 --- /dev/null +++ b/testing/web-platform/tests/editing/run/bold.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>bold - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/bold.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/createlink.html b/testing/web-platform/tests/editing/run/createlink.html new file mode 100644 index 000000000..a21751697 --- /dev/null +++ b/testing/web-platform/tests/editing/run/createlink.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>createlink - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/createlink.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/delete.html b/testing/web-platform/tests/editing/run/delete.html new file mode 100644 index 000000000..a8c24d283 --- /dev/null +++ b/testing/web-platform/tests/editing/run/delete.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>delete - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/delete.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/fontname.html b/testing/web-platform/tests/editing/run/fontname.html new file mode 100644 index 000000000..3e9b8ad34 --- /dev/null +++ b/testing/web-platform/tests/editing/run/fontname.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>fontname - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/fontname.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/fontsize.html b/testing/web-platform/tests/editing/run/fontsize.html new file mode 100644 index 000000000..cd2e601c9 --- /dev/null +++ b/testing/web-platform/tests/editing/run/fontsize.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>fontsize - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/fontsize.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/forecolor.html b/testing/web-platform/tests/editing/run/forecolor.html new file mode 100644 index 000000000..bb5f35cb3 --- /dev/null +++ b/testing/web-platform/tests/editing/run/forecolor.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>forecolor - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/forecolor.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/formatblock.html b/testing/web-platform/tests/editing/run/formatblock.html new file mode 100644 index 000000000..946061761 --- /dev/null +++ b/testing/web-platform/tests/editing/run/formatblock.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>formatblock - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/formatblock.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/forwarddelete.html b/testing/web-platform/tests/editing/run/forwarddelete.html new file mode 100644 index 000000000..d3b88627b --- /dev/null +++ b/testing/web-platform/tests/editing/run/forwarddelete.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>forwarddelete - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/forwarddelete.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/hilitecolor.html b/testing/web-platform/tests/editing/run/hilitecolor.html new file mode 100644 index 000000000..515b62ba4 --- /dev/null +++ b/testing/web-platform/tests/editing/run/hilitecolor.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>hilitecolor - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/hilitecolor.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/indent.html b/testing/web-platform/tests/editing/run/indent.html new file mode 100644 index 000000000..7be7a53b9 --- /dev/null +++ b/testing/web-platform/tests/editing/run/indent.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>indent - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/indent.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/inserthorizontalrule.html b/testing/web-platform/tests/editing/run/inserthorizontalrule.html new file mode 100644 index 000000000..d3ebc18bc --- /dev/null +++ b/testing/web-platform/tests/editing/run/inserthorizontalrule.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>inserthorizontalrule - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/inserthorizontalrule.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/inserthtml.html b/testing/web-platform/tests/editing/run/inserthtml.html new file mode 100644 index 000000000..17e74e74e --- /dev/null +++ b/testing/web-platform/tests/editing/run/inserthtml.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>inserthtml - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/inserthtml.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/insertimage.html b/testing/web-platform/tests/editing/run/insertimage.html new file mode 100644 index 000000000..50730f426 --- /dev/null +++ b/testing/web-platform/tests/editing/run/insertimage.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>insertimage - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/insertimage.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/insertlinebreak.html b/testing/web-platform/tests/editing/run/insertlinebreak.html new file mode 100644 index 000000000..34af7701d --- /dev/null +++ b/testing/web-platform/tests/editing/run/insertlinebreak.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>insertlinebreak - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/insertlinebreak.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/insertorderedlist.html b/testing/web-platform/tests/editing/run/insertorderedlist.html new file mode 100644 index 000000000..c762693c4 --- /dev/null +++ b/testing/web-platform/tests/editing/run/insertorderedlist.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>insertorderedlist - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/insertorderedlist.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/insertparagraph.html b/testing/web-platform/tests/editing/run/insertparagraph.html new file mode 100644 index 000000000..bc13953c8 --- /dev/null +++ b/testing/web-platform/tests/editing/run/insertparagraph.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>insertparagraph - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/insertparagraph.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/inserttext.html b/testing/web-platform/tests/editing/run/inserttext.html new file mode 100644 index 000000000..54134569c --- /dev/null +++ b/testing/web-platform/tests/editing/run/inserttext.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>inserttext - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/inserttext.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/insertunorderedlist.html b/testing/web-platform/tests/editing/run/insertunorderedlist.html new file mode 100644 index 000000000..9a5c1e163 --- /dev/null +++ b/testing/web-platform/tests/editing/run/insertunorderedlist.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>insertunorderedlist - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/insertunorderedlist.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/italic.html b/testing/web-platform/tests/editing/run/italic.html new file mode 100644 index 000000000..b94658ec5 --- /dev/null +++ b/testing/web-platform/tests/editing/run/italic.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>italic - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/italic.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/justifycenter.html b/testing/web-platform/tests/editing/run/justifycenter.html new file mode 100644 index 000000000..f2d98b934 --- /dev/null +++ b/testing/web-platform/tests/editing/run/justifycenter.html @@ -0,0 +1,52 @@ +<!doctype html> +<meta charset=utf-8> +<meta name=timeout content=long> +<link rel=stylesheet href=../include/reset.css> +<title>justifycenter - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/justifycenter.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/justifyfull.html b/testing/web-platform/tests/editing/run/justifyfull.html new file mode 100644 index 000000000..1de99d73a --- /dev/null +++ b/testing/web-platform/tests/editing/run/justifyfull.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>justifyfull - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/justifyfull.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/justifyleft.html b/testing/web-platform/tests/editing/run/justifyleft.html new file mode 100644 index 000000000..207da21d4 --- /dev/null +++ b/testing/web-platform/tests/editing/run/justifyleft.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>justifyleft - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/justifyleft.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/justifyright.html b/testing/web-platform/tests/editing/run/justifyright.html new file mode 100644 index 000000000..bf4954e54 --- /dev/null +++ b/testing/web-platform/tests/editing/run/justifyright.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>justifyright - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/justifyright.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/misc.html b/testing/web-platform/tests/editing/run/misc.html new file mode 100644 index 000000000..e0d62f33b --- /dev/null +++ b/testing/web-platform/tests/editing/run/misc.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>misc - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/misc.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/multitest.html b/testing/web-platform/tests/editing/run/multitest.html new file mode 100644 index 000000000..f8fa41c9c --- /dev/null +++ b/testing/web-platform/tests/editing/run/multitest.html @@ -0,0 +1,52 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<meta name=timeout content=long> +<title>multitest - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/multitest.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/outdent.html b/testing/web-platform/tests/editing/run/outdent.html new file mode 100644 index 000000000..4582bf0d1 --- /dev/null +++ b/testing/web-platform/tests/editing/run/outdent.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>outdent - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/outdent.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/removeformat.html b/testing/web-platform/tests/editing/run/removeformat.html new file mode 100644 index 000000000..2437cd05f --- /dev/null +++ b/testing/web-platform/tests/editing/run/removeformat.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>removeformat - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/removeformat.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/strikethrough.html b/testing/web-platform/tests/editing/run/strikethrough.html new file mode 100644 index 000000000..9aa671ad7 --- /dev/null +++ b/testing/web-platform/tests/editing/run/strikethrough.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>strikethrough - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/strikethrough.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/subscript.html b/testing/web-platform/tests/editing/run/subscript.html new file mode 100644 index 000000000..bd5a66b26 --- /dev/null +++ b/testing/web-platform/tests/editing/run/subscript.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>subscript - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/subscript.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/superscript.html b/testing/web-platform/tests/editing/run/superscript.html new file mode 100644 index 000000000..890960ad0 --- /dev/null +++ b/testing/web-platform/tests/editing/run/superscript.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>superscript - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/superscript.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/underline.html b/testing/web-platform/tests/editing/run/underline.html new file mode 100644 index 000000000..bcf9e3229 --- /dev/null +++ b/testing/web-platform/tests/editing/run/underline.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>underline - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/underline.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> diff --git a/testing/web-platform/tests/editing/run/unlink.html b/testing/web-platform/tests/editing/run/unlink.html new file mode 100644 index 000000000..d61200b95 --- /dev/null +++ b/testing/web-platform/tests/editing/run/unlink.html @@ -0,0 +1,51 @@ +<!doctype html> +<meta charset=utf-8> +<link rel=stylesheet href=../include/reset.css> +<title>unlink - HTML editing conformance tests</title> + +<p id=timing></p> + +<div id=log></div> + +<div id=test-container></div> + +<script src=../include/implementation.js></script> +<script>var testsJsLibraryOnly = true</script> +<script src=../include/tests.js></script> +<script src=../data/unlink.js></script> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> +"use strict"; + +(function() { + var startTime = Date.now(); + + // Make document.body.innerHTML more tidy by removing unnecessary things. + [].forEach.call(document.querySelectorAll("script"), function(node) { + node.parentNode.removeChild(node); + }); + + if (true) { + // Silly hack: the CSS styling flag should be true, not false, to match + // expected results. This is because every group of tests except the + // last (multitest) sets styleWithCSS automatically, and it sets it + // first to false and then to true. Thus it's left at true at the end + // of each group of tests, so in gentest.html it will be true when + // starting each group of tests other than the first. But browsers are + // supposed to default it to false when the page loads, so flip it. + try { document.execCommand("styleWithCSS", false, "true") } catch(e) {} + } + + browserTests.forEach(runConformanceTest); + + document.getElementById("test-container").parentNode + .removeChild(document.getElementById("test-container")); + + var elapsed = Math.round(Date.now() - startTime)/1000; + document.getElementById("timing").textContent = + "Time elapsed: " + Math.floor(elapsed/60) + ":" + + ((elapsed % 60) < 10 ? "0" : "") + + (elapsed % 60).toFixed(3) + " min."; +})(); +</script> |