Bug 1065185 - Do a better job of accessing privileged constants from voicemail marionette tests. r=bz
authorBobby Holley <bobbyholley@gmail.com>
Fri, 03 Oct 2014 10:05:51 +0200
changeset 208544 457b4fd51bb28b243b45913085eaa84e2f7e7aeb
parent 208543 674d025b67e946580a0f602a3be8ede799c0d5fb
child 208545 00ab79c7e6e0e77a22c591e36abdc55a44595251
push idunknown
push userunknown
push dateunknown
reviewersbz
bugs1065185
milestone35.0a1
Bug 1065185 - Do a better job of accessing privileged constants from voicemail marionette tests. r=bz
dom/voicemail/test/marionette/head.js
--- a/dom/voicemail/test/marionette/head.js
+++ b/dom/voicemail/test/marionette/head.js
@@ -1,17 +1,17 @@
 /* Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
 "use strict";
 
 const {Cc: Cc, Ci: Ci, Cr: Cr, Cu: Cu} = SpecialPowers;
 
-let RIL = {};
-Cu.import("resource://gre/modules/ril_consts.js", RIL);
+let RIL = SpecialPowers.wrap(SpecialPowers.createBlankObject());
+SpecialPowers.Cu.import("resource://gre/modules/ril_consts.js", RIL);
 
 // Emulate Promise.jsm semantics.
 Promise.defer = function() { return new Deferred(); }
 function Deferred()  {
   this.promise = new Promise(function(resolve, reject) {
     this.resolve = resolve;
     this.reject = reject;
   }.bind(this));