Bug 1529680 - [release 127] Fix jest SourceTreeItem tests (#8011). r=dwalsh
authorJason Laster <jason.laster.11@gmail.com>
Mon, 25 Feb 2019 10:02:55 -0500
changeset 518970 aadfff067f34a785196322e908c70d254b32698e
parent 518969 4f8f76780ecab209576d28700d0813622f96c2e2
child 518971 a39f7338d97c5368e2ff713b4349e4984e03e01d
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdwalsh
bugs1529680
milestone67.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 1529680 - [release 127] Fix jest SourceTreeItem tests (#8011). r=dwalsh
devtools/client/debugger/new/src/components/PrimaryPanes/tests/__snapshots__/SourcesTreeItem.spec.js.snap
--- a/devtools/client/debugger/new/src/components/PrimaryPanes/tests/__snapshots__/SourcesTreeItem.spec.js.snap
+++ b/devtools/client/debugger/new/src/components/PrimaryPanes/tests/__snapshots__/SourcesTreeItem.spec.js.snap
@@ -2334,26 +2334,26 @@ Object {
     onContextMenu={[Function]}
   >
     <span
       className="img no-arrow"
     />
     <Connect(SourceIcon)
       source={
         Object {
-          "contentType": "",
-          "error": undefined,
+          "actors": Array [],
+          "contentType": "text/javascript",
           "id": "server1.conn13.child1/39",
+          "introductionUrl": null,
           "isBlackBoxed": false,
-          "isExtension": false,
           "isPrettyPrinted": false,
           "isWasm": false,
           "loadedState": "unloaded",
-          "sourceMapURL": undefined,
-          "text": undefined,
+          "relativeUrl": "http://mdn.com/one.js",
+          "text": "",
           "url": "http://mdn.com/one.js",
         }
       }
     />
     <span
       className="label"
     >
        
@@ -2369,47 +2369,47 @@ Object {
     "onContextMenu": [Function],
     "props": Object {
       "clearProjectDirectoryRoot": [MockFunction],
       "debuggeeUrl": "http://mdn.com",
       "expanded": false,
       "focusItem": [MockFunction],
       "item": Object {
         "contents": Object {
-          "contentType": "",
-          "error": undefined,
+          "actors": Array [],
+          "contentType": "text/javascript",
           "id": "server1.conn13.child1/39",
+          "introductionUrl": null,
           "isBlackBoxed": false,
-          "isExtension": false,
           "isPrettyPrinted": false,
           "isWasm": false,
           "loadedState": "unloaded",
-          "sourceMapURL": undefined,
-          "text": undefined,
-          "url": undefined,
+          "relativeUrl": "url",
+          "text": "",
+          "url": "url",
         },
         "name": "external%20file",
         "path": "mdn.com/external%20file",
         "type": "source",
       },
       "projectRoot": "",
       "selectItem": [MockFunction],
       "setExpanded": [MockFunction],
       "setProjectDirectoryRoot": [MockFunction],
       "source": Object {
-        "contentType": "",
-        "error": undefined,
+        "actors": Array [],
+        "contentType": "text/javascript",
         "id": "server1.conn13.child1/39",
+        "introductionUrl": null,
         "isBlackBoxed": false,
-        "isExtension": false,
         "isPrettyPrinted": false,
         "isWasm": false,
         "loadedState": "unloaded",
-        "sourceMapURL": undefined,
-        "text": undefined,
+        "relativeUrl": "http://mdn.com/one.js",
+        "text": "",
         "url": "http://mdn.com/one.js",
       },
       "toggleBlackBox": [MockFunction],
     },
     "refs": Object {},
     "state": null,
     "updater": Updater {
       "_callbacks": Array [],
@@ -2418,49 +2418,49 @@ Object {
         "_element": <SourceTreeItem
           clearProjectDirectoryRoot={[MockFunction]}
           debuggeeUrl="http://mdn.com"
           expanded={false}
           focusItem={[MockFunction]}
           item={
             Object {
               "contents": Object {
-                "contentType": "",
-                "error": undefined,
+                "actors": Array [],
+                "contentType": "text/javascript",
                 "id": "server1.conn13.child1/39",
+                "introductionUrl": null,
                 "isBlackBoxed": false,
-                "isExtension": false,
                 "isPrettyPrinted": false,
                 "isWasm": false,
                 "loadedState": "unloaded",
-                "sourceMapURL": undefined,
-                "text": undefined,
-                "url": undefined,
+                "relativeUrl": "url",
+                "text": "",
+                "url": "url",
               },
               "name": "external%20file",
               "path": "mdn.com/external%20file",
               "type": "source",
             }
           }
           projectRoot=""
           selectItem={[MockFunction]}
           setExpanded={[MockFunction]}
           setProjectDirectoryRoot={[MockFunction]}
           source={
             Object {
-              "contentType": "",
-              "error": undefined,
+              "actors": Array [],
+              "contentType": "text/javascript",
               "id": "server1.conn13.child1/39",
+              "introductionUrl": null,
               "isBlackBoxed": false,
-              "isExtension": false,
               "isPrettyPrinted": false,
               "isWasm": false,
               "loadedState": "unloaded",
-              "sourceMapURL": undefined,
-              "text": undefined,
+              "relativeUrl": "http://mdn.com/one.js",
+              "text": "",
               "url": "http://mdn.com/one.js",
             }
           }
           toggleBlackBox={[MockFunction]}
         />,
         "_forcedUpdate": false,
         "_instance": [Circular],
         "_newState": null,
@@ -2470,26 +2470,26 @@ Object {
           onContextMenu={[Function]}
         >
           <span
             className="img no-arrow"
           />
           <Connect(SourceIcon)
             source={
               Object {
-                "contentType": "",
-                "error": undefined,
+                "actors": Array [],
+                "contentType": "text/javascript",
                 "id": "server1.conn13.child1/39",
+                "introductionUrl": null,
                 "isBlackBoxed": false,
-                "isExtension": false,
                 "isPrettyPrinted": false,
                 "isWasm": false,
                 "loadedState": "unloaded",
-                "sourceMapURL": undefined,
-                "text": undefined,
+                "relativeUrl": "http://mdn.com/one.js",
+                "text": "",
                 "url": "http://mdn.com/one.js",
               }
             }
           />
           <span
             className="label"
           >
              
@@ -2504,45 +2504,45 @@ Object {
   },
   "props": Object {
     "clearProjectDirectoryRoot": [MockFunction],
     "debuggeeUrl": "http://mdn.com",
     "expanded": false,
     "focusItem": [MockFunction],
     "item": Object {
       "contents": Object {
-        "contentType": "",
-        "error": undefined,
+        "actors": Array [],
+        "contentType": "text/javascript",
         "id": "server1.conn13.child1/39",
+        "introductionUrl": null,
         "isBlackBoxed": false,
-        "isExtension": false,
         "isPrettyPrinted": false,
         "isWasm": false,
         "loadedState": "unloaded",
-        "sourceMapURL": undefined,
-        "text": undefined,
-        "url": undefined,
+        "relativeUrl": "url",
+        "text": "",
+        "url": "url",
       },
       "name": "external%20file",
       "path": "mdn.com/external%20file",
       "type": "source",
     },
     "projectRoot": "",
     "selectItem": [MockFunction],
     "setExpanded": [MockFunction],
     "setProjectDirectoryRoot": [MockFunction],
     "source": Object {
-      "contentType": "",
-      "error": undefined,
+      "actors": Array [],
+      "contentType": "text/javascript",
       "id": "server1.conn13.child1/39",
+      "introductionUrl": null,
       "isBlackBoxed": false,
-      "isExtension": false,
       "isPrettyPrinted": false,
       "isWasm": false,
       "loadedState": "unloaded",
-      "sourceMapURL": undefined,
-      "text": undefined,
+      "relativeUrl": "http://mdn.com/one.js",
+      "text": "",
       "url": "http://mdn.com/one.js",
     },
     "toggleBlackBox": [MockFunction],
   },
 }
 `;