Bug 1146136 - Fix another test that parenthesizes destructuring pattern assignment targets, that snuck in in the last week, as ES6 forbids such parenthesization. r=bustage, a=bustage
authorJeff Walden <jwalden@mit.edu>
Fri, 19 Jun 2015 18:30:44 -0700
changeset 280638 b4b1eb8f29c76d01233d6074473700a0ae303f5f
parent 280637 2f952a21d83ca492a4cd0c311a2e261f93c891d5
child 280639 23b7cd26fa9a83c997d69759148fbdc44338a57d
push id4932
push userjlund@mozilla.com
push dateMon, 10 Aug 2015 18:23:06 +0000
treeherdermozilla-beta@6dd5a4f5f745 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage, bustage
bugs1146136
milestone41.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 1146136 - Fix another test that parenthesizes destructuring pattern assignment targets, that snuck in in the last week, as ES6 forbids such parenthesization. r=bustage, a=bustage
toolkit/mozapps/extensions/test/browser/browser_experiments.js
--- a/toolkit/mozapps/extensions/test/browser/browser_experiments.js
+++ b/toolkit/mozapps/extensions/test/browser/browser_experiments.js
@@ -454,17 +454,17 @@ add_task(function testActivateRealExperi
   }
 
   el = item.ownerDocument.getAnonymousElementByAttribute(item, "anonid", "error-container");
   is_element_hidden(el, "error-container should be hidden.");
   el = item.ownerDocument.getAnonymousElementByAttribute(item, "anonid", "warning-container");
   is_element_hidden(el, "warning-container should be hidden.");
   el = item.ownerDocument.getAnonymousElementByAttribute(item, "anonid", "pending-container");
   is_element_hidden(el, "pending-container should be hidden.");
-  ({ version }) = yield get_tooltip_info(item);
+  ({ version } = yield get_tooltip_info(item));
   Assert.equal(version, undefined, "version should be hidden.");
   el = item.ownerDocument.getAnonymousElementByAttribute(item, "class", "disabled-postfix");
   is_element_hidden(el, "disabled-postfix should be hidden.");
   el = item.ownerDocument.getAnonymousElementByAttribute(item, "class", "update-postfix");
   is_element_hidden(el, "update-postfix should be hidden.");
   el = item.ownerDocument.getAnonymousElementByAttribute(item, "class", "experiment-bullet");
   is_element_visible(el, "experiment-bullet should be visible.");