diff options
author | Matt A. Tobin <email@mattatobin.com> | 2019-04-23 15:32:23 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2019-04-23 15:32:23 -0400 |
commit | abe80cc31d5a40ebed743085011fbcda0c1a9a10 (patch) | |
tree | fb3762f06b84745b182af281abb107b95a9fcf01 /mobile/android/tests/browser/robocop/testUnifiedTelemetryClientId.js | |
parent | 63295d0087eb58a6eb34cad324c4c53d1b220491 (diff) | |
download | UXP-abe80cc31d5a40ebed743085011fbcda0c1a9a10.tar UXP-abe80cc31d5a40ebed743085011fbcda0c1a9a10.tar.gz UXP-abe80cc31d5a40ebed743085011fbcda0c1a9a10.tar.lz UXP-abe80cc31d5a40ebed743085011fbcda0c1a9a10.tar.xz UXP-abe80cc31d5a40ebed743085011fbcda0c1a9a10.zip |
Issue #1053 - Drop support Android and remove Fennec - Part 1a: Remove mobile/android
Diffstat (limited to 'mobile/android/tests/browser/robocop/testUnifiedTelemetryClientId.js')
-rw-r--r-- | mobile/android/tests/browser/robocop/testUnifiedTelemetryClientId.js | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/mobile/android/tests/browser/robocop/testUnifiedTelemetryClientId.js b/mobile/android/tests/browser/robocop/testUnifiedTelemetryClientId.js deleted file mode 100644 index d574aaef1..000000000 --- a/mobile/android/tests/browser/robocop/testUnifiedTelemetryClientId.js +++ /dev/null @@ -1,50 +0,0 @@ -var { classes: Cc, interfaces: Ci, utils: Cu } = Components; - -Cu.import('resource://gre/modules/ClientID.jsm'); - -var java = new JavaBridge(this); -do_register_cleanup(() => { - java.disconnect(); -}); -do_test_pending(); - -var isClientIDSet; -var clientID; - -var isResetDone; - -function getAsyncClientId() { - isClientIDSet = false; - ClientID.getClientID().then(function (retClientID) { - // Ideally, we'd directly send the client ID back to Java but Java won't listen for - // js messages after we return from the containing function (bug 1253467). - // - // Note that my brief attempts to get synchronous Promise resolution (via Task.jsm) - // working failed - I have other things to focus on. - clientID = retClientID; - isClientIDSet = true; - }, function (fail) { - // Since Java doesn't listen to our messages (bug 1253467), I don't expect - // this throw to work correctly but we should timeout in Java. - do_throw('Could not retrieve client ID: ' + fail); - }); -} - -function pollGetAsyncClientId() { - java.asyncCall('blockingFromJsResponseString', isClientIDSet, clientID); -} - -function getAsyncReset() { - isResetDone = false; - ClientID._reset().then(function () { - isResetDone = true; - }); -} - -function pollGetAsyncReset() { - java.asyncCall('blockingFromJsResponseString', isResetDone, ''); -} - -function endTest() { - do_test_finished(); -} |