mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
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:
parent
4b6c21caaf
commit
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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user