Bug 1317400 - Part 5: Fix remaining WebExtensions tests. r=zombie
authorTooru Fujisawa <arai_a@mac.com>
Sat, 04 Mar 2017 20:37:14 +0900
changeset 345870 88471e975cc350b28cc8ea651dbe7033db697ccd
parent 345869 8f67f1b9a60116970d7cbb689ec610710cdab9b2
child 345871 cce63d5f6ddeb27dd7a2e0bb98b2fc34d4d3f606
push id87688
push userarai_a@mac.com
push dateSat, 04 Mar 2017 11:38:38 +0000
treeherdermozilla-inbound@88471e975cc3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerszombie
bugs1317400
milestone54.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 1317400 - Part 5: Fix remaining WebExtensions tests. r=zombie
browser/components/extensions/test/browser/browser_ext_webNavigation_onCreatedNavigationTarget.js
--- a/browser/components/extensions/test/browser/browser_ext_webNavigation_onCreatedNavigationTarget.js
+++ b/browser/components/extensions/test/browser/browser_ext_webNavigation_onCreatedNavigationTarget.js
@@ -236,17 +236,17 @@ add_task(function* test_on_created_navig
   const expectedSourceTab = yield extension.awaitMessage("expectedSourceTab");
 
   info("Open a subframe link in a new tab from the context menu");
 
   yield runTestCase({
     extension,
     async openNavTarget() {
       await clickContextMenuItem({
-        pageElementSelector() {
+        pageElementSelector: function() {
           // This code runs as a framescript in the child process and it returns the
           // target link in the subframe.
           return this.content.frames[0] // eslint-disable-line mozilla/no-cpows-in-tests
             .document.querySelector("#test-create-new-tab-from-context-menu-subframe");
         },
         contextMenuItemLabel: "Open Link in New Tab",
       });
     },
@@ -258,17 +258,17 @@ add_task(function* test_on_created_navig
   });
 
   info("Open a subframe link in a new window from the context menu");
 
   yield runTestCase({
     extension,
     async openNavTarget() {
       await clickContextMenuItem({
-        pageElementSelector() {
+        pageElementSelector: function() {
           // This code runs as a framescript in the child process and it returns the
           // target link in the subframe.
           return this.content.frames[0] // eslint-disable-line mozilla/no-cpows-in-tests
             .document.querySelector("#test-create-new-window-from-context-menu-subframe");
         },
         contextMenuItemLabel: "Open Link in New Window",
       });
     },