Bug 1312236 - Fix debugger.html tests after upgrade to React 15 draft
authorJarda Snajdr <jsnajdr@gmail.com>
Wed, 23 Nov 2016 23:19:42 +0100
changeset 444593 61be48ae48f981085df3de0e5a9b2283e0c2755a
parent 444592 95d692408295a9823e9e40a6042c5d60a5a06e27
child 444594 e12ac9d2661f95d1020f1b066eb269378ef4e94b
push id37301
push userbmo:jsnajdr@gmail.com
push dateMon, 28 Nov 2016 09:33:10 +0000
bugs1312236
milestone53.0a1
Bug 1312236 - Fix debugger.html tests after upgrade to React 15 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");
 });