diff --git a/services/sync/tests/unit/head_first.js b/services/sync/tests/unit/head_first.js index ac1d1543c1d3..e928d8d0a98f 100644 --- a/services/sync/tests/unit/head_first.js +++ b/services/sync/tests/unit/head_first.js @@ -3,6 +3,7 @@ version(180); const Cc = Components.classes; const Ci = Components.interfaces; const Cr = Components.results; +const Cu = Components.utils; let ds = Cc["@mozilla.org/file/directory_service;1"] .getService(Ci.nsIProperties); diff --git a/services/sync/tests/unit/test_async.js b/services/sync/tests/unit/test_async.js index 36795e9948a4..ed742d25abeb 100644 --- a/services/sync/tests/unit/test_async.js +++ b/services/sync/tests/unit/test_async.js @@ -1,5 +1,3 @@ -const Cu = Components.utils; - Cu.import("resource://weave/util.js"); Cu.import("resource://weave/async.js"); diff --git a/services/sync/tests/unit/test_async_exceptions.js b/services/sync/tests/unit/test_async_exceptions.js index f1fe78eadb28..c9d071113615 100644 --- a/services/sync/tests/unit/test_async_exceptions.js +++ b/services/sync/tests/unit/test_async_exceptions.js @@ -1,5 +1,3 @@ -const Cu = Components.utils; - Cu.import("resource://weave/util.js"); Cu.import("resource://weave/async.js"); diff --git a/services/sync/tests/unit/test_async_missing_yield.js b/services/sync/tests/unit/test_async_missing_yield.js index 14347ae518b9..840e7ce782ab 100644 --- a/services/sync/tests/unit/test_async_missing_yield.js +++ b/services/sync/tests/unit/test_async_missing_yield.js @@ -1,5 +1,3 @@ -const Cu = Components.utils; - Cu.import("resource://weave/util.js"); Cu.import("resource://weave/async.js"); diff --git a/services/sync/tests/unit/test_sharing.js b/services/sync/tests/unit/test_sharing.js index b962404e9d37..e18f6de3be95 100644 --- a/services/sync/tests/unit/test_sharing.js +++ b/services/sync/tests/unit/test_sharing.js @@ -1,5 +1,3 @@ -const Cu = Components.utils; - Cu.import("resource://weave/sharing.js"); Cu.import("resource://weave/util.js"); diff --git a/services/sync/tests/unit/test_xmpp.js b/services/sync/tests/unit/test_xmpp.js index 60396b2e054c..9c76eed9308a 100644 --- a/services/sync/tests/unit/test_xmpp.js +++ b/services/sync/tests/unit/test_xmpp.js @@ -1,5 +1,3 @@ -var Cu = Components.utils; - Cu.import( "resource://weave/xmpp/xmppClient.js" ); function LOG(aMsg) {