Bug 712871. (Dv1) Port bug 677463 ('Item w/ textContent'). r=neil.
authorSerge Gautherie <sgautherie.bz@free.fr>
Thu, 22 Dec 2011 17:34:47 +0100
changeset 10281 24729d88b962d3b1f33e20df1ec7b60c87092ae5
parent 10280 abb5e5bbbcd3e5bab55fb62ac1e01cb0fa0bf06c
child 10282 8f98ccdf3d9b61e889a6593f580e005c17e80277
push id402
push userbugzilla@standard8.plus.com
push dateTue, 13 Mar 2012 21:17:18 +0000
treeherdercomm-beta@d080a8ebf16a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersneil
bugs712871, 677463
Bug 712871. (Dv1) Port bug 677463 ('Item w/ textContent'). r=neil.
suite/browser/test/mochitest/subtst_contextmenu.html
suite/browser/test/mochitest/test_contextmenu.html
--- a/suite/browser/test/mochitest/subtst_contextmenu.html
+++ b/suite/browser/test/mochitest/subtst_contextmenu.html
@@ -23,16 +23,17 @@ Browser context menu subtest.
 <textarea id="test-textarea">chssseesbbbie</textarea> <!-- a weird word which generates only one suggestion -->
 <div id="test-contenteditable" contenteditable="true">chssseefsbbbie</div> <!-- a more weird word which generates no suggestions -->
 <input id="test-input-spellcheck" type="text" spellcheck="true" autofocus value="prodkjfgigrty"> <!-- this one also generates one suggestion -->
 +<div contextmenu="myMenu">
   <p id="test-pagemenu" hopeless="true">I've got a context menu!</p>
   <menu id="myMenu" type="context">
     <menuitem label="Plain item" onclick="document.getElementById('test-pagemenu').removeAttribute('hopeless');"></menuitem>
     <menuitem label="Disabled item" disabled></menuitem>
+    <menuitem> Item w/ textContent</menuitem>
     <menu>
       <menuitem type="checkbox" label="Checkbox" checked></menuitem>
     </menu>
     <menu>
       <menuitem type="radio" label="Radio1" checked></menuitem>
       <menuitem type="radio" label="Radio2"></menuitem>
       <menuitem type="radio" label="Radio3"></menuitem>
     </menu>
--- a/suite/browser/test/mochitest/test_contextmenu.html
+++ b/suite/browser/test/mochitest/test_contextmenu.html
@@ -589,16 +589,17 @@ function runTest(testNum) {
         closeContextMenu();
         openContextMenuFor(pagemenu); // Invoke context menu for next test.
         break;
 
     case 18:
         // Context menu for element with assigned content context menu
         checkContextMenu(["+Plain item",          {type: "", icon: "", checked: false, disabled: false},
                           "+Disabled item",       {type: "", icon: "", checked: false, disabled: true},
+                          "+Item w/ textContent", {type: "", icon: "", checked: false, disabled: false},
                           "---",                  null,
                           "+Checkbox",            {type: "checkbox", icon: "", checked: true, disabled: false},
                           "---",                  null,
                           "+Radio1",              {type: "checkbox", icon: "", checked: true, disabled: false},
                           "+Radio2",              {type: "checkbox", icon: "", checked: false, disabled: false},
                           "+Radio3",              {type: "checkbox", icon: "", checked: false, disabled: false},
                           "---",                  null,
                           "+Item w/ icon",        {type: "", icon: "favicon.ico", checked: false, disabled: false},