зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1724718 - work around avatar URL issues in test_fxaccounts_button.html, r=tgiles
Differential Revision: https://phabricator.services.mozilla.com/D122165
This commit is contained in:
Родитель
608abb2330
Коммит
f579125462
|
@ -25,6 +25,8 @@ Test the fxaccounts-button component
|
|||
<script>
|
||||
/** Test the fxaccounts-button component **/
|
||||
|
||||
const TEST_AVATAR_URL = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==";
|
||||
|
||||
let gFxAccountsButton;
|
||||
add_task(async function setup() {
|
||||
let templateFrame = document.getElementById("templateFrame");
|
||||
|
@ -47,6 +49,7 @@ add_task(async function test_logged_in_without_login_syncing() {
|
|||
gFxAccountsButton.updateState({
|
||||
fxAccountsEnabled: true,
|
||||
loggedIn: true,
|
||||
avatarURL: TEST_AVATAR_URL,
|
||||
loginSyncingEnabled: false,
|
||||
});
|
||||
|
||||
|
@ -56,9 +59,8 @@ add_task(async function test_logged_in_without_login_syncing() {
|
|||
"logged-in-view view is visible");
|
||||
});
|
||||
|
||||
add_task(async function test_logged_in_without_login_syncing() {
|
||||
add_task(async function test_logged_in_with_login_syncing() {
|
||||
const TEST_EMAIL = "test@example.com";
|
||||
const TEST_AVATAR_URL = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==";
|
||||
|
||||
gFxAccountsButton.updateState({
|
||||
fxAccountsEnabled: true,
|
||||
|
|
Загрузка…
Ссылка в новой задаче