TBD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// i18n data that get's passed to jed | |
let DEFAULT_I18N_DATA = { | |
messages: { | |
en: { | |
'This is a test': 'This is a test', | |
}, | |
fr: { | |
'This is a test': 'C\'est un test', | |
}, | |
ja: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@startuml | |
title FirefoxAndroidExtensionRunner\n"run" Activity Diagram | |
partition "androidRunner.run" { | |
"adb.createClient" --> "this.adbDevicesDiscoveryAndSelect" | |
"this.adbDevicesDiscoveryAndSelect" --> "this.apkPackagesDiscoveryAndSelect" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// BE CAREFULL: commit any changes first and run the tests, don't trust the robots ;-) | |
const getSinonCalls = call => ({ | |
type: 'CallExpression', | |
callee: { | |
type: 'MemberExpression', | |
object: { | |
type: 'Identifier', | |
name: 'sinon' | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {Management} = Cu.import("resource://gre/modules/Extension.jsm", {}); | |
.... | |
class API extends ExtensionAPI { | |
getAPI(context) { | |
const {tabTracker} = Management.global; | |
return { | |
mynamespace: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* @flow */ | |
import path from 'path'; | |
import readline from 'readline'; | |
import tty from 'tty'; | |
import {fs} from 'mz'; | |
import mkdirp from 'mkdirp'; | |
import promisify from 'es6-promisify'; | |
import {createLogger} from '../util/logger'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function () { | |
if (...) { | |
return Promise.resolve(); | |
} | |
const isDonePromise = doSomethingAsync().then(() => { | |
}); | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Auto-generated WebExtensions Flow types definitions generated from WebExtensions JSON API schema. | |
declare type webext$alarms$Alarm = {| | |
name: string, | |
scheduledTime: number, | |
periodInMinutes?: number | |
|}; | |
declare function webext$alarms$create(alarmInfo: {| | |
when?: number, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1476999152622 addons.xpi ERROR Error: aAddon must include an id, version, and type (resource://gre/modules/addons/XPIProvider.jsm:4716:20) JS Stack trace: [email protected]:4716:20 < this.XPIProvider.installTemporaryAddon<@XPIProvider.jsm:3964:5 | |
1476999152634 addons.xpi ERROR Error: aAddon must include an id, version, and type (resource://gre/modules/addons/XPIProvider.jsm:4716:20) JS Stack trace: [email protected]:4716:20 < this.XPIProvider.installTemporaryAddon<@XPIProvider.jsm:3978:5 | |
1476999364314 addons.manager WARN Error in background update: [Exception... "aID must be a non-empty string" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: resource://gre/modules/AddonManager.jsm :: AddonManagerInternal.getAddonByID :: line 2395" data: no] Stack trace: AddonManagerInternal.getAddonByID()@resource://gre/modules/AddonManager.jsm:2395 < AddonManagerInternal.getAddonsByIDs/promises<()@resource:/ |