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:
Vuong Hoang 2020-02-28 11:15:41 +00:00
parent 4b6c21caaf
commit a6f782307d
3 changed files with 8 additions and 4 deletions

View File

@ -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,
})

View File

@ -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."
);
}

View File

@ -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);
});