Bug 1551728 - Fix jest tests for SourcesTreeItem r=jlast
authorDavid Walsh <dwalsh@mozilla.com>
Tue, 14 May 2019 23:55:19 +0000
changeset 532711 f907a581ad2bb61427e69dcc99e7bb72085f3fcd
parent 532710 9c251c872a3370203295a8196c970195abc3bcca
child 532712 b2bd4ee26110bb05115a37fa6affd756b048ee46
push id11270
push userrgurzau@mozilla.com
push dateWed, 15 May 2019 15:07:19 +0000
treeherdermozilla-beta@571bc76da583 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjlast
bugs1551728
milestone68.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 1551728 - Fix jest tests for SourcesTreeItem r=jlast Fixes a portion of the broken jest tests. Differential Revision: https://phabricator.services.mozilla.com/D31155
devtools/client/debugger/src/components/PrimaryPanes/tests/__snapshots__/SourcesTreeItem.spec.js.snap
--- a/devtools/client/debugger/src/components/PrimaryPanes/tests/__snapshots__/SourcesTreeItem.spec.js.snap
+++ b/devtools/client/debugger/src/components/PrimaryPanes/tests/__snapshots__/SourcesTreeItem.spec.js.snap
@@ -24,17 +24,16 @@ Object {
           "relativeUrl": "http://mdn.com/one.js",
           "url": "http://mdn.com/one.js",
         }
       }
     />
     <span
       className="label"
     >
-       
       one.js
        
     </span>
   </div>,
   "defaultState": null,
   "instance": SourceTreeItem {
     "addCollapseExpandAllOptions": [Function],
     "context": Object {},
@@ -160,17 +159,16 @@ Object {
                 "relativeUrl": "http://mdn.com/one.js",
                 "url": "http://mdn.com/one.js",
               }
             }
           />
           <span
             className="label"
           >
-             
             one.js
              
           </span>
         </div>,
         "_rendering": false,
         "_updater": [Circular],
       },
     },
@@ -244,17 +242,16 @@ Object {
           "relativeUrl": "http://mdn.com/one.js",
           "url": "http://mdn.com/one.js",
         }
       }
     />
     <span
       className="label"
     >
-       
       one.js
        
       <span
         className="suffix"
       >
         (mapped)
       </span>
     </span>
@@ -389,17 +386,16 @@ Object {
                 "relativeUrl": "http://mdn.com/one.js",
                 "url": "http://mdn.com/one.js",
               }
             }
           />
           <span
             className="label"
           >
-             
             one.js
              
             <span
               className="suffix"
             >
               (mapped)
             </span>
           </span>
@@ -480,17 +476,16 @@ Object {
           "relativeUrl": "http://mdn.com/one.js",
           "url": "http://mdn.com/one.js",
         }
       }
     />
     <span
       className="label"
     >
-       
       root
        
     </span>
   </div>,
   "defaultState": null,
   "instance": SourceTreeItem {
     "addCollapseExpandAllOptions": [Function],
     "context": Object {},
@@ -620,17 +615,16 @@ Object {
                 "relativeUrl": "http://mdn.com/one.js",
                 "url": "http://mdn.com/one.js",
               }
             }
           />
           <span
             className="label"
           >
-             
             root
              
           </span>
         </div>,
         "_rendering": false,
         "_updater": [Circular],
       },
     },
@@ -694,17 +688,16 @@ Object {
       className="arrow"
     />
     <AccessibleImage
       className="folder"
     />
     <span
       className="label"
     >
-       
       http://mdn.com
        
     </span>
   </div>,
   "defaultState": null,
   "instance": SourceTreeItem {
     "addCollapseExpandAllOptions": [Function],
     "context": Object {},
@@ -802,17 +795,16 @@ Object {
             className="arrow"
           />
           <AccessibleImage
             className="folder"
           />
           <span
             className="label"
           >
-             
             http://mdn.com
              
           </span>
         </div>,
         "_rendering": false,
         "_updater": [Circular],
       },
     },
@@ -866,17 +858,16 @@ Object {
       className="arrow"
     />
     <AccessibleImage
       className="folder"
     />
     <span
       className="label"
     >
-       
       http://mdn.com
        
     </span>
   </div>,
   "defaultState": null,
   "instance": SourceTreeItem {
     "addCollapseExpandAllOptions": [Function],
     "context": Object {},
@@ -976,17 +967,16 @@ Object {
             className="arrow"
           />
           <AccessibleImage
             className="folder"
           />
           <span
             className="label"
           >
-             
             http://mdn.com
              
           </span>
         </div>,
         "_rendering": false,
         "_updater": [Circular],
       },
     },
@@ -1041,17 +1031,16 @@ Object {
       className="arrow expanded"
     />
     <AccessibleImage
       className="globe-small"
     />
     <span
       className="label"
     >
-       
       folder
        
     </span>
   </div>,
   "defaultState": null,
   "instance": SourceTreeItem {
     "addCollapseExpandAllOptions": [Function],
     "context": Object {},
@@ -1129,17 +1118,16 @@ Object {
             className="arrow expanded"
           />
           <AccessibleImage
             className="globe-small"
           />
           <span
             className="label"
           >
-             
             folder
              
           </span>
         </div>,
         "_rendering": false,
         "_updater": [Circular],
       },
     },
@@ -1184,17 +1172,16 @@ Object {
       className="arrow"
     />
     <AccessibleImage
       className="angular"
     />
     <span
       className="label"
     >
-       
       Angular
        
     </span>
   </div>,
   "defaultState": null,
   "instance": SourceTreeItem {
     "addCollapseExpandAllOptions": [Function],
     "context": Object {},
@@ -1290,17 +1277,16 @@ Object {
             className="arrow"
           />
           <AccessibleImage
             className="angular"
           />
           <span
             className="label"
           >
-             
             Angular
              
           </span>
         </div>,
         "_rendering": false,
         "_updater": [Circular],
       },
     },
@@ -1353,17 +1339,16 @@ Object {
       className="arrow"
     />
     <AccessibleImage
       className="folder"
     />
     <span
       className="label"
     >
-       
       folder
        
     </span>
   </div>,
   "defaultState": null,
   "instance": SourceTreeItem {
     "addCollapseExpandAllOptions": [Function],
     "context": Object {},
@@ -1437,17 +1422,16 @@ Object {
             className="arrow"
           />
           <AccessibleImage
             className="folder"
           />
           <span
             className="label"
           >
-             
             folder
              
           </span>
         </div>,
         "_rendering": false,
         "_updater": [Circular],
       },
     },
@@ -1490,17 +1474,16 @@ Object {
       className="arrow expanded"
     />
     <AccessibleImage
       className="globe-small"
     />
     <span
       className="label"
     >
-       
       folder
        
     </span>
   </div>,
   "defaultState": null,
   "instance": SourceTreeItem {
     "addCollapseExpandAllOptions": [Function],
     "context": Object {},
@@ -1578,17 +1561,16 @@ Object {
             className="arrow expanded"
           />
           <AccessibleImage
             className="globe-small"
           />
           <span
             className="label"
           >
-             
             folder
              
           </span>
         </div>,
         "_rendering": false,
         "_updater": [Circular],
       },
     },
@@ -1633,17 +1615,16 @@ Object {
       className="arrow"
     />
     <AccessibleImage
       className="folder"
     />
     <span
       className="label"
     >
-       
       moz-extension://e37c3c08-beac-a04b-8032-c4f699a1a856
        
     </span>
   </div>,
   "defaultState": null,
   "instance": SourceTreeItem {
     "addCollapseExpandAllOptions": [Function],
     "context": Object {},
@@ -1741,17 +1722,16 @@ Object {
             className="arrow"
           />
           <AccessibleImage
             className="folder"
           />
           <span
             className="label"
           >
-             
             moz-extension://e37c3c08-beac-a04b-8032-c4f699a1a856
              
           </span>
         </div>,
         "_rendering": false,
         "_updater": [Circular],
       },
     },
@@ -1805,17 +1785,16 @@ Object {
       className="arrow"
     />
     <AccessibleImage
       className="webpack"
     />
     <span
       className="label"
     >
-       
       Webpack
        
     </span>
   </div>,
   "defaultState": null,
   "instance": SourceTreeItem {
     "addCollapseExpandAllOptions": [Function],
     "context": Object {},
@@ -1911,17 +1890,16 @@ Object {
             className="arrow"
           />
           <AccessibleImage
             className="webpack"
           />
           <span
             className="label"
           >
-             
             Webpack
              
           </span>
         </div>,
         "_rendering": false,
         "_updater": [Circular],
       },
     },
@@ -1986,17 +1964,16 @@ Object {
           "relativeUrl": "http://mdn.com/one.js",
           "url": "http://mdn.com/one.js",
         }
       }
     />
     <span
       className="label"
     >
-       
       one.js
        
     </span>
   </div>,
   "defaultState": null,
   "instance": SourceTreeItem {
     "addCollapseExpandAllOptions": [Function],
     "context": Object {},
@@ -2124,17 +2101,16 @@ Object {
                 "relativeUrl": "http://mdn.com/one.js",
                 "url": "http://mdn.com/one.js",
               }
             }
           />
           <span
             className="label"
           >
-             
             one.js
              
           </span>
         </div>,
         "_rendering": false,
         "_updater": [Circular],
       },
     },
@@ -2209,17 +2185,16 @@ Object {
           "relativeUrl": "http://mdn.com/one.js",
           "url": "http://mdn.com/one.js",
         }
       }
     />
     <span
       className="label"
     >
-       
       one.js
        
     </span>
   </div>,
   "defaultState": null,
   "instance": SourceTreeItem {
     "addCollapseExpandAllOptions": [Function],
     "context": Object {},
@@ -2349,17 +2324,16 @@ Object {
                 "relativeUrl": "http://mdn.com/one.js",
                 "url": "http://mdn.com/one.js",
               }
             }
           />
           <span
             className="label"
           >
-             
             one.js
              
           </span>
         </div>,
         "_rendering": false,
         "_updater": [Circular],
       },
     },
@@ -2435,17 +2409,16 @@ Object {
           "relativeUrl": "http://mdn.com/one.js",
           "url": "http://mdn.com/one.js",
         }
       }
     />
     <span
       className="label"
     >
-       
       external file
        
     </span>
   </div>,
   "defaultState": null,
   "instance": SourceTreeItem {
     "addCollapseExpandAllOptions": [Function],
     "context": Object {},
@@ -2573,17 +2546,16 @@ Object {
                 "relativeUrl": "http://mdn.com/one.js",
                 "url": "http://mdn.com/one.js",
               }
             }
           />
           <span
             className="label"
           >
-             
             external file
              
           </span>
         </div>,
         "_rendering": false,
         "_updater": [Circular],
       },
     },