Bug 1411687 - part 3: Add webplatform-test for testing "insertParagraph" command when user-defined element is the editing host r=m_kato
authorMasayuki Nakano <masayuki@d-toybox.com>
Fri, 27 Oct 2017 16:01:59 +0900
changeset 388995 777f76d30950ec0607b644c6c8c6d6af0651ebca
parent 388994 eeec327a40fa19e2741a0349ca317375a609fac0
child 388996 7e750211e314c6ad0df7269e633b78d6f518db58
push id32777
push userarchaeopteryx@coole-files.de
push dateMon, 30 Oct 2017 22:44:45 +0000
treeherdermozilla-central@dd0f265a1300 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersm_kato
bugs1411687
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1411687 - part 3: Add webplatform-test for testing "insertParagraph" command when user-defined element is the editing host r=m_kato MozReview-Commit-ID: 4h53PBCGlU2
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/editing/data/insertparagraph.js
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -535905,17 +535905,17 @@
    "ba0a0f2eda2703c742dd71b3106a3c78da27e677",
    "support"
   ],
   "editing/data/insertorderedlist.js": [
    "9387d479a52fd5146d5d708eb1244250f3dd02b6",
    "support"
   ],
   "editing/data/insertparagraph.js": [
-   "5cc4cee5d1ba32775a3a940e11ce46215b276466",
+   "7e5061611c18e53d67329ebd32bc078bcce4c73d",
    "support"
   ],
   "editing/data/inserttext.js": [
    "be6f17c7af88382808ee574d9291fbc606ab7ec4",
    "support"
   ],
   "editing/data/insertunorderedlist.js": [
    "ed8c92ce7bc902a5125e082798ad9abfef469f18",
--- a/testing/web-platform/tests/editing/data/insertparagraph.js
+++ b/testing/web-platform/tests/editing/data/insertparagraph.js
@@ -1594,10 +1594,30 @@ var browserTests = [
     [["defaultparagraphseparator","div"],["insertparagraph",""]],
     "<div class=\"a\" id=\"x\"><p class=\"b\" id=\"y\">foo</p><p class=\"b\">{}bar</p></div>",
     [true,true],
     {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"insertparagraph":[false,false,"",false,false,""]}],
 ["<div class=a id=x><p class=b id=y>foo[]bar</div>",
     [["defaultparagraphseparator","p"],["insertparagraph",""]],
     "<div class=\"a\" id=\"x\"><p class=\"b\" id=\"y\">foo</p><p class=\"b\">{}bar</p></div>",
     [true,true],
-    {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"insertparagraph":[false,false,"",false,false,""]}]
+    {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"insertparagraph":[false,false,"",false,false,""]}],
+["<div contenteditable=false><foo-bar contenteditable><p>foo[]bar</p></foo-bar></div>",
+    [["defaultparagraphseparator","div"],["insertparagraph",""]],
+    "<div contenteditable=\"false\"><foo-bar contenteditable=\"\"><p>foo</p><p>bar</p></foo-bar></div>",
+    [true,true],
+    {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"insertparagraph":[false,false,"",false,false,""]}],
+["<div contenteditable=false><foo-bar contenteditable><p>foo[]bar</p></foo-bar></div>",
+    [["defaultparagraphseparator","p"],["insertparagraph",""]],
+    "<div contenteditable=\"false\"><foo-bar contenteditable=\"\"><p>foo</p><p>bar</p></foo-bar></div>",
+    [true,true],
+    {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"insertparagraph":[false,false,"",false,false,""]}],
+["<div contenteditable=false><foo-bar contenteditable><div>foo[]bar</div></foo-bar></div>",
+    [["defaultparagraphseparator","div"],["insertparagraph",""]],
+    "<div contenteditable=\"false\"><foo-bar contenteditable=\"\"><div>foo</div><div>bar</div></foo-bar></div>",
+    [true,true],
+    {"defaultparagraphseparator":[false,false,"p",false,false,"div"],"insertparagraph":[false,false,"",false,false,""]}],
+["<div contenteditable=false><foo-bar contenteditable><div>foo[]bar</div></foo-bar></div>",
+    [["defaultparagraphseparator","p"],["insertparagraph",""]],
+    "<div contenteditable=\"false\"><foo-bar contenteditable=\"\"><div>foo</div><div>bar</div></foo-bar></div>",
+    [true,true],
+    {"defaultparagraphseparator":[false,false,"div",false,false,"p"],"insertparagraph":[false,false,"",false,false,""]}],
 ]