Bug 1373293: Follow-up: Sort permissions before comparing. r=me
authorKris Maglione <maglione.k@gmail.com>
Wed, 21 Jun 2017 21:06:48 -0700
changeset 414154 d568e7c89e9f69f79d8022fd2591c12fff7dc061
parent 414153 41d082a79f1f46c87edadfe6849a2ffd6160ea4a
child 414155 d7420c18c12e00ea65ad085a0c213cca486babf6
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1373293
milestone56.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 1373293: Follow-up: Sort permissions before comparing. r=me MozReview-Commit-ID: 3BZJ7heH4OV
toolkit/components/extensions/test/xpcshell/test_ext_unknown_permissions.js
--- a/toolkit/components/extensions/test/xpcshell/test_ext_unknown_permissions.js
+++ b/toolkit/components/extensions/test/xpcshell/test_ext_unknown_permissions.js
@@ -13,17 +13,17 @@ add_task(async function test_unknown_per
   });
 
   let {messages} = await promiseConsoleOutput(
     () => extension.startup());
 
   const {WebExtensionPolicy} = Cu.import("resource://gre/modules/Extension.jsm", {});
 
   let policy = WebExtensionPolicy.getByID(extension.id);
-  Assert.deepEqual(policy.permissions, ["activeTab", "http://*/*"]);
+  Assert.deepEqual(Array.from(policy.permissions).sort(), ["activeTab", "http://*/*"]);
 
   ok(messages.some(message => /Error processing permissions\.1: Value "fooUnknownPermission" must/.test(message)),
      'Got expected error for "fooUnknownPermission"');
 
   ok(messages.some(message => /Error processing permissions\.3: Value "chrome:\/\/favicon\/" must/.test(message)),
      'Got expected error for "chrome://favicon/"');
 
   await extension.unload();