зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1286710 - Reps: Use correct ellipsis character "…" . r=Honza
MozReview-Commit-ID: 6mpNrWhX6vc --HG-- extra : transplant_source : %F6F%98hGo%F2%F2%F6%14%BC%8C%CC%24%DA%A3%CAt%945
This commit is contained in:
Родитель
c735a88756
Коммит
ce9ee8dc43
|
@ -68,7 +68,7 @@ define(function (require, exports, module) {
|
|||
key: "more",
|
||||
object: objectLink({
|
||||
object: this.props.object
|
||||
}, "more...")
|
||||
}, "more…")
|
||||
}));
|
||||
}
|
||||
|
||||
|
@ -188,7 +188,7 @@ define(function (require, exports, module) {
|
|||
let tooltip = "Circular reference";
|
||||
return (
|
||||
DOM.span({title: tooltip},
|
||||
"[...]")
|
||||
"[…]")
|
||||
);
|
||||
}
|
||||
}));
|
||||
|
|
|
@ -94,7 +94,7 @@ define(function (require, exports, module) {
|
|||
key: "more",
|
||||
object: objectLink({
|
||||
object: this.props.object
|
||||
}, "more...")
|
||||
}, "more…")
|
||||
}));
|
||||
}
|
||||
|
||||
|
@ -174,7 +174,7 @@ define(function (require, exports, module) {
|
|||
render: function () {
|
||||
return (
|
||||
span({title: "Circular reference"},
|
||||
"[...]"
|
||||
"[…]"
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
|
@ -74,7 +74,7 @@ define(function (require, exports, module) {
|
|||
|
||||
if (props.length <= max) {
|
||||
// There are not enough props yet (or at least, not enough props to
|
||||
// be able to know whether we should print "more..." or not).
|
||||
// be able to know whether we should print "more…" or not).
|
||||
// Let's display also empty members and functions.
|
||||
props = props.concat(this.getProps(object, max, (t, value) => {
|
||||
return !isInterestingProp(t, value);
|
||||
|
@ -83,7 +83,7 @@ define(function (require, exports, module) {
|
|||
|
||||
// getProps() can return max+1 properties (it can't return more)
|
||||
// to indicate that there is more props than allowed. Remove the last
|
||||
// one and append 'more...' postfix in such case.
|
||||
// one and append 'more…' postfix in such case.
|
||||
if (props.length > max) {
|
||||
props.pop();
|
||||
|
||||
|
@ -93,7 +93,7 @@ define(function (require, exports, module) {
|
|||
key: "more",
|
||||
object: objectLink({
|
||||
object: object
|
||||
}, "more...")
|
||||
}, "more…")
|
||||
}));
|
||||
} else if (props.length > 0) {
|
||||
// Remove the last comma.
|
||||
|
|
|
@ -55,7 +55,7 @@ define(function (require, exports, module) {
|
|||
key: "more",
|
||||
object: objectLink({
|
||||
object: this.props.object
|
||||
}, "more...")
|
||||
}, "more…")
|
||||
}));
|
||||
}
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ define(function (require, exports, module) {
|
|||
|
||||
if (props.length <= max) {
|
||||
// There are not enough props yet (or at least, not enough props to
|
||||
// be able to know whether we should print "more..." or not).
|
||||
// be able to know whether we should print "more…" or not).
|
||||
// Let's display also empty members and functions.
|
||||
props = props.concat(this.getProps(object, max, (t, value) => {
|
||||
return !isInterestingProp(t, value);
|
||||
|
@ -86,7 +86,7 @@ define(function (require, exports, module) {
|
|||
key: "more",
|
||||
object: objectLink({
|
||||
object: object
|
||||
}, "more...")
|
||||
}, "more…")
|
||||
}));
|
||||
} else if (props.length > 0) {
|
||||
// Remove the last comma.
|
||||
|
|
|
@ -95,7 +95,7 @@ window.onload = Task.async(function* () {
|
|||
|
||||
function testMoreThanMaxProps() {
|
||||
const stub = Array(302).fill("foo");
|
||||
const defaultOutput = `["foo", "foo", "foo", more...]`;
|
||||
const defaultOutput = `["foo", "foo", "foo", more…]`;
|
||||
|
||||
const modeTests = [
|
||||
{
|
||||
|
@ -112,7 +112,7 @@ window.onload = Task.async(function* () {
|
|||
},
|
||||
{
|
||||
mode: "long",
|
||||
expectedOutput: `[${Array(300).fill("\"foo\"").join(", ")}, more...]`,
|
||||
expectedOutput: `[${Array(300).fill("\"foo\"").join(", ")}, more…]`,
|
||||
}
|
||||
];
|
||||
|
||||
|
@ -122,7 +122,7 @@ window.onload = Task.async(function* () {
|
|||
function testRecursiveArray() {
|
||||
let stub = [1];
|
||||
stub.push(stub);
|
||||
const defaultOutput = `[1, [...]]`;
|
||||
const defaultOutput = `[1, […]]`;
|
||||
|
||||
const modeTests = [
|
||||
{
|
||||
|
@ -155,7 +155,7 @@ window.onload = Task.async(function* () {
|
|||
p4: "s4"
|
||||
}
|
||||
];
|
||||
const defaultOutput = `[Object{p1: "s1", p3: "s3", p4: "s4", more...}]`;
|
||||
const defaultOutput = `[Object{p1: "s1", p3: "s3", p4: "s4", more…}]`;
|
||||
|
||||
const modeTests = [
|
||||
{
|
||||
|
|
|
@ -96,10 +96,10 @@ window.onload = Task.async(function* () {
|
|||
}
|
||||
|
||||
function testMoreThanMaxProps() {
|
||||
// Test array = `["test string"...] //301 items`
|
||||
// Test array = `["test string"…] //301 items`
|
||||
const testName = "testMoreThanMaxProps";
|
||||
|
||||
const defaultOutput = `[${Array(3).fill("\"test string\"").join(", ")}, more...]`;
|
||||
const defaultOutput = `[${Array(3).fill("\"test string\"").join(", ")}, more…]`;
|
||||
|
||||
const modeTests = [
|
||||
{
|
||||
|
@ -116,7 +116,7 @@ window.onload = Task.async(function* () {
|
|||
},
|
||||
{
|
||||
mode: "long",
|
||||
expectedOutput: `[${Array(300).fill("\"test string\"").join(", ")}, more...]`,
|
||||
expectedOutput: `[${Array(300).fill("\"test string\"").join(", ")}, more…]`,
|
||||
}
|
||||
];
|
||||
|
||||
|
|
|
@ -100,10 +100,10 @@ window.onload = Task.async(function* () {
|
|||
}
|
||||
|
||||
function testMoreThanMaxProps() {
|
||||
// Test object = `{p0: "0", p1: "1", p2: "2", ..., p101: "101"}`
|
||||
// Test object = `{p0: "0", p1: "1", p2: "2", …, p101: "101"}`
|
||||
const testName = "testMoreThanMaxProps";
|
||||
|
||||
const defaultOutput = `Object {p0: "0", p1: "1", p2: "2", more...}`;
|
||||
const defaultOutput = `Object {p0: "0", p1: "1", p2: "2", more…}`;
|
||||
|
||||
// Generate string with 100 properties, which is the max limit
|
||||
// for 'long' mode.
|
||||
|
@ -112,7 +112,7 @@ window.onload = Task.async(function* () {
|
|||
props += "p" + i + ": \"" + i + "\", ";
|
||||
}
|
||||
|
||||
const longOutput = `Object {${props}more...}`;
|
||||
const longOutput = `Object {${props}more…}`;
|
||||
|
||||
const modeTests = [
|
||||
{
|
||||
|
@ -140,7 +140,7 @@ window.onload = Task.async(function* () {
|
|||
// Test object: `{a: undefined, b: undefined, c: "c", d: 1}`
|
||||
// @TODO This is not how we actually want the preview to be output.
|
||||
// See https://bugzilla.mozilla.org/show_bug.cgi?id=1276376
|
||||
const expectedOutput = `Object {a: undefined, b: undefined, c: "c", more...}`;
|
||||
const expectedOutput = `Object {a: undefined, b: undefined, c: "c", more…}`;
|
||||
}
|
||||
|
||||
function testNestedObject() {
|
||||
|
|
|
@ -101,7 +101,7 @@ window.onload = Task.async(function* () {
|
|||
for (let i = 0; i<100; i++) {
|
||||
stub[`p${i}`] = i
|
||||
}
|
||||
const defaultOutput = `Object{p0: 0, p1: 1, p2: 2, more...}`;
|
||||
const defaultOutput = `Object{p0: 0, p1: 1, p2: 2, more…}`;
|
||||
|
||||
const modeTests = [
|
||||
{
|
||||
|
@ -127,7 +127,7 @@ window.onload = Task.async(function* () {
|
|||
|
||||
function testUninterestingProps() {
|
||||
const stub = {a:undefined, b:undefined, c:"c", d:0};
|
||||
const defaultOutput = `Object{c: "c", d: 0, a: undefined, more...}`;
|
||||
const defaultOutput = `Object{c: "c", d: 0, a: undefined, more…}`;
|
||||
|
||||
const modeTests = [
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче