зеркало из https://github.com/mozilla/pjs.git
Moved the FakeGUIDService from test_passwords.js to head.js.
This commit is contained in:
Родитель
6f8cfd6329
Коммит
3f66c5c26a
|
@ -260,3 +260,11 @@ function FakeFilesystemService(contents) {
|
||||||
return [fakeStream];
|
return [fakeStream];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
function FakeGUIDService() {
|
||||||
|
let latestGUID = 0;
|
||||||
|
|
||||||
|
Utils.makeGUID = function fake_makeGUID() {
|
||||||
|
return "fake-guid-" + latestGUID++;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -116,14 +116,6 @@ var ffs = new FakeFilesystemService({});
|
||||||
var fgs = new FakeGUIDService();
|
var fgs = new FakeGUIDService();
|
||||||
var fakeLoginManager = new FakeLoginManager(__fakeLogins);
|
var fakeLoginManager = new FakeLoginManager(__fakeLogins);
|
||||||
|
|
||||||
function FakeGUIDService() {
|
|
||||||
let latestGUID = 0;
|
|
||||||
|
|
||||||
Utils.makeGUID = function fake_makeGUID() {
|
|
||||||
return "fake-guid-" + latestGUID++;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
function FakeLoginManager(fakeLogins) {
|
function FakeLoginManager(fakeLogins) {
|
||||||
this.fakeLogins = fakeLogins;
|
this.fakeLogins = fakeLogins;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче