зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1601278 - Enable LONG MODE JSONPreview by default r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D64701 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
4b6c21caaf
Коммит
a6f782307d
|
@ -60,7 +60,7 @@ class JSONPreview extends Component {
|
|||
// FIXME: A workaround for the issue in StringRep
|
||||
// Force StringRep to crop the text every time
|
||||
member: Object.assign({}, member, { open: false }),
|
||||
mode: MODE.TINY,
|
||||
mode: MODE.LONG,
|
||||
cropLimit: this.props.cropLimit,
|
||||
noGrip: true,
|
||||
})
|
||||
|
|
|
@ -131,7 +131,7 @@ add_task(async function() {
|
|||
);
|
||||
is(
|
||||
values[0].textContent,
|
||||
"{\u2026}",
|
||||
'Object { greeting: "Hello long string JSON!" }',
|
||||
"The first json property value was incorrect."
|
||||
);
|
||||
|
||||
|
@ -142,7 +142,7 @@ add_task(async function() {
|
|||
);
|
||||
is(
|
||||
values[1].textContent,
|
||||
"{\u2026}",
|
||||
'"Hello long string JSON!"',
|
||||
"The second json property value was incorrect."
|
||||
);
|
||||
}
|
||||
|
|
|
@ -40,7 +40,11 @@ add_task(async function() {
|
|||
);
|
||||
|
||||
is(labels[0].textContent, "obj", "The first json property name is correct.");
|
||||
is(values[0].textContent, "{…}", "The first json property value is correct.");
|
||||
is(
|
||||
values[0].textContent,
|
||||
'Object { type: "string" }',
|
||||
"The first json property value is correct."
|
||||
);
|
||||
|
||||
await teardown(monitor);
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче