mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1196047 - Move async-storage.js to devtools/shared. r=bgrins
This commit is contained in:
parent
0e5d0bfb01
commit
57c290a6d4
@ -17,7 +17,7 @@ const L10N = new ViewHelpers.L10N(STRINGS_URI);
|
||||
const {cssTokenizer} = require("devtools/client/shared/css-parsing-utils");
|
||||
|
||||
loader.lazyGetter(this, "asyncStorage",
|
||||
() => require("devtools/shared/shared/async-storage"));
|
||||
() => require("devtools/shared/async-storage"));
|
||||
|
||||
const DEFAULT_FILTER_TYPE = "length";
|
||||
const UNIT_MAPPING = {
|
||||
|
@ -14,7 +14,7 @@ var {TargetFactory} = require("devtools/client/framework/target");
|
||||
var {Utils: WebConsoleUtils} = require("devtools/shared/webconsole/utils");
|
||||
var {Messages} = require("devtools/client/webconsole/console-output");
|
||||
var DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||
const asyncStorage = require("devtools/shared/shared/async-storage");
|
||||
const asyncStorage = require("devtools/shared/async-storage");
|
||||
|
||||
// Services.prefs.setBoolPref("devtools.debugger.log", true);
|
||||
|
||||
|
@ -25,7 +25,7 @@ loader.lazyGetter(this, "ConsoleOutput",
|
||||
loader.lazyGetter(this, "Messages",
|
||||
() => require("devtools/client/webconsole/console-output").Messages);
|
||||
loader.lazyGetter(this, "asyncStorage",
|
||||
() => require("devtools/shared/shared/async-storage"));
|
||||
() => require("devtools/shared/async-storage"));
|
||||
loader.lazyRequireGetter(this, "EnvironmentClient", "devtools/shared/client/main", true);
|
||||
loader.lazyRequireGetter(this, "ObjectClient", "devtools/shared/client/main", true);
|
||||
loader.lazyImporter(this, "VariablesView", "resource:///modules/devtools/client/shared/widgets/VariablesView.jsm");
|
||||
|
@ -9,7 +9,7 @@ loader.lazyRequireGetter(this, "ConnectionManager", "devtools/shared/client/conn
|
||||
loader.lazyRequireGetter(this, "AddonSimulatorProcess", "devtools/client/webide/modules/simulator-process", true);
|
||||
loader.lazyRequireGetter(this, "OldAddonSimulatorProcess", "devtools/client/webide/modules/simulator-process", true);
|
||||
loader.lazyRequireGetter(this, "CustomSimulatorProcess", "devtools/client/webide/modules/simulator-process", true);
|
||||
const asyncStorage = require("devtools/shared/shared/async-storage");
|
||||
const asyncStorage = require("devtools/shared/async-storage");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const promise = require("promise");
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
window.onload = function() {
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
const asyncStorage = require("devtools/shared/shared/async-storage");
|
||||
const asyncStorage = require("devtools/shared/async-storage");
|
||||
const EventEmitter = require("devtools/shared/event-emitter");
|
||||
const { GetAvailableAddons } = require("devtools/client/webide/modules/addons");
|
||||
const { GetDevices } = require("devtools/client/shared/devices");
|
||||
|
@ -29,10 +29,12 @@ DIRS += [
|
||||
'webconsole'
|
||||
]
|
||||
|
||||
BROWSER_CHROME_MANIFESTS += ['tests/browser/browser.ini']
|
||||
MOCHITEST_CHROME_MANIFESTS += ['tests/mochitest/chrome.ini']
|
||||
XPCSHELL_TESTS_MANIFESTS += ['tests/unit/xpcshell.ini']
|
||||
|
||||
DevToolsModules(
|
||||
'async-storage.js',
|
||||
'async-utils.js',
|
||||
'Console.jsm',
|
||||
'content-observer.js',
|
||||
|
@ -16,7 +16,7 @@ loader.lazyRequireGetter(this, "prompt",
|
||||
loader.lazyRequireGetter(this, "cert",
|
||||
"devtools/shared/security/cert");
|
||||
loader.lazyRequireGetter(this, "asyncStorage",
|
||||
"devtools/shared/shared/async-storage");
|
||||
"devtools/shared/async-storage");
|
||||
DevToolsUtils.defineLazyModuleGetter(this, "Task",
|
||||
"resource://gre/modules/Task.jsm");
|
||||
|
||||
|
@ -7,7 +7,6 @@
|
||||
BROWSER_CHROME_MANIFESTS += ['tests/browser/browser.ini']
|
||||
|
||||
DevToolsModules(
|
||||
'async-storage.js',
|
||||
'framerate.js',
|
||||
'memory.js',
|
||||
'profiler.js',
|
||||
|
@ -4,7 +4,6 @@ subsuite = devtools
|
||||
support-files =
|
||||
../../../../server/tests/browser/head.js
|
||||
|
||||
[browser_async_storage.js]
|
||||
[browser_worker-01.js]
|
||||
[browser_worker-02.js]
|
||||
[browser_worker-03.js]
|
||||
|
7
devtools/shared/tests/browser/browser.ini
Normal file
7
devtools/shared/tests/browser/browser.ini
Normal file
@ -0,0 +1,7 @@
|
||||
[DEFAULT]
|
||||
tags = devtools
|
||||
subsuite = devtools
|
||||
support-files =
|
||||
../../../server/tests/browser/head.js
|
||||
|
||||
[browser_async_storage.js]
|
@ -7,7 +7,7 @@
|
||||
// Test the basic functionality of async-storage.
|
||||
// Adapted from https://github.com/mozilla-b2g/gaia/blob/f09993563fb5fec4393eb71816ce76cb00463190/apps/sharedtest/test/unit/async_storage_test.js.
|
||||
|
||||
const asyncStorage = require("devtools/shared/shared/async-storage");
|
||||
const asyncStorage = require("devtools/shared/async-storage");
|
||||
add_task(function*() {
|
||||
is(typeof asyncStorage.length, "function", "API exists.");
|
||||
is(typeof asyncStorage.key, "function", "API exists.");
|
Loading…
Reference in New Issue
Block a user