Skip to content

Commit

Permalink
Split up editing/run/delete.html with variant
Browse files Browse the repository at this point in the history
Part of #11269.
  • Loading branch information
zcorpan committed Jun 8, 2018
1 parent 7684fe3 commit c2e314a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 4 additions & 4 deletions editing/include/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -5607,7 +5607,7 @@ function runConformanceTest(browserTest) {
format_value(browserTest[1][i][1]) + ") " +
(browserTest[1][i][2] ? browserTest[1][i][2] + " " : "") +
"return value"
test(function() {
subsetTest(test, function() {
assert_equals(exception, null, "Setup must not throw an exception");

assert_equals(document.execCommand(browserTest[1][i][0], false, browserTest[1][i][1]),
Expand Down Expand Up @@ -5640,7 +5640,7 @@ function runConformanceTest(browserTest) {
}
}

test(function() {
subsetTest(test, function() {
assert_equals(exception, null, "Setup must not throw an exception");

// Now test for modifications to non-editable content. First just
Expand All @@ -5664,7 +5664,7 @@ function runConformanceTest(browserTest) {
"Everything outside the editable div must be unchanged, but some change did occur");
}, testName + " checks for modifications to non-editable content");

test(function() {
subsetTest(test, function() {
assert_equals(exception, null, "Setup must not throw an exception");

assert_equals(testDiv.innerHTML,
Expand All @@ -5682,7 +5682,7 @@ function runConformanceTest(browserTest) {
'queryCommandValue("' + command + '") after',
];
for (var i = 0; i < 6; i++) {
test(function() {
subsetTest(test, function() {
assert_equals(exception, null, "Setup must not throw an exception");

if (expectedQueryResults[command][i] === null) {
Expand Down
8 changes: 8 additions & 0 deletions editing/run/delete.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<!doctype html>
<meta charset=utf-8>
<meta name="variant" content="?1-1000">
<meta name="variant" content="?1001-2000">
<meta name="variant" content="?2001-3000">
<meta name="variant" content="?3001-4000">
<meta name="variant" content="?4001-5000">
<meta name="variant" content="?5001-6000">
<meta name="variant" content="?6001-last">
<link rel=stylesheet href=../include/reset.css>
<title>delete - HTML editing conformance tests</title>

Expand All @@ -15,6 +22,7 @@
<script src=../data/delete.js></script>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src="/common/subset-tests.js"></script>
<script>
"use strict";

Expand Down

0 comments on commit c2e314a

Please sign in to comment.