Bug 1421213 - Fix tests broken due to simulateClickLink changes. r=nchevobbe
authorabhinav <abhinav.koppula@gmail.com>
Wed, 17 Jan 2018 20:53:30 +0530
changeset 453982 64c447e345774572eaf311bc2a29ae83a73d129a
parent 453981 76f2c6767866e40710cc8472cb0484e69e154529
child 453983 89cb08844b17eef5f75984b22417b5bf6aad802a
push id1648
push usermtabara@mozilla.com
push dateThu, 01 Mar 2018 12:45:47 +0000
treeherdermozilla-release@cbb9688c2eeb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnchevobbe
bugs1421213
milestone59.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 1421213 - Fix tests broken due to simulateClickLink changes. r=nchevobbe MozReview-Commit-ID: 6JYBSzgMzR
devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_hpkp_invalid-headers.js
devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_hsts_invalid-headers.js
--- a/devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_hpkp_invalid-headers.js
+++ b/devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_hpkp_invalid-headers.js
@@ -96,12 +96,12 @@ async function navigateAndCheckForWarnin
 
   const onMessage = waitForMessage(hud, text, ".message.warning");
   BrowserTestUtils.loadURI(gBrowser.selectedBrowser, url);
   const {node} = await onMessage;
   ok(node, name);
 
   let learnMoreNode = node.querySelector(".learn-more-link");
   ok(learnMoreNode, `There is a "Learn more" link`);
-  const navigatedLink = await simulateLinkClick(learnMoreNode);
-  is(navigatedLink, LEARN_MORE_URI,
+  const navigationResponse = await simulateLinkClick(learnMoreNode);
+  is(navigationResponse.link, LEARN_MORE_URI,
     "Click on the learn more link navigates the user to the expected url");
 }
--- a/devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_hsts_invalid-headers.js
+++ b/devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_hsts_invalid-headers.js
@@ -62,12 +62,12 @@ async function navigateAndCheckWarningMe
 
   const onMessage = waitForMessage(hud, text, ".message.warning");
   BrowserTestUtils.loadURI(gBrowser.selectedBrowser, url);
   const {node} = await onMessage;
   ok(node, name);
 
   let learnMoreNode = node.querySelector(".learn-more-link");
   ok(learnMoreNode, `There is a "Learn more" link`);
-  const navigatedLink = await simulateLinkClick(learnMoreNode);
-  is(navigatedLink, LEARN_MORE_URI,
+  const navigationResponse = await simulateLinkClick(learnMoreNode);
+  is(navigationResponse.link, LEARN_MORE_URI,
     "Click on the learn more link navigates the user to the expected url");
 }