Bug 1312236 - Fix debugger.html tests after upgrade to React 15 r=jlongster
authorJarda Snajdr <jsnajdr@gmail.com>
Mon, 28 Nov 2016 14:38:00 +0100
changeset 324661 ea48aaafb70a4cb5b4513c2c1eb0dda09a56e9e6
parent 324660 e50389904bee75f75f391b5ea18246a7a5591272
child 324662 313bd77f09009341a35b45bc75866a57f02907b9
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersjlongster
bugs1312236
milestone53.0a1
Bug 1312236 - Fix debugger.html tests after upgrade to React 15 r=jlongster MozReview-Commit-ID: FCPvqVNytO3
devtools/client/debugger/new/test/mochitest/browser_dbg-sources.js
--- a/devtools/client/debugger/new/test/mochitest/browser_dbg-sources.js
+++ b/devtools/client/debugger/new/test/mochitest/browser_dbg-sources.js
@@ -38,21 +38,21 @@ add_task(function* () {
   // Make sure new sources appear in the list.
   ContentTask.spawn(gBrowser.selectedBrowser, null, function() {
     const script = content.document.createElement("script");
     script.src = "math.min.js";
     content.document.body.appendChild(script);
   });
 
   yield waitForSourceCount(dbg, 9);
-  is(findElement(dbg, "sourceNode", 7).querySelector("span").innerText,
+  is(findElement(dbg, "sourceNode", 7).textContent,
      "math.min.js",
      "The dynamic script exists");
 
   // Make sure named eval sources appear in the list.
   ContentTask.spawn(gBrowser.selectedBrowser, null, function() {
     content.eval("window.evaledFunc = function() {} //# sourceURL=evaled.js");
   });
   yield waitForSourceCount(dbg, 11);
-  is(findElement(dbg, "sourceNode", 2).querySelector("span").innerText,
+  is(findElement(dbg, "sourceNode", 2).textContent,
      "evaled.js",
      "The eval script exists");
 });