summaryrefslogtreecommitdiffstats
path: root/toolkit/components/aboutmemory/tests
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/aboutmemory/tests')
-rw-r--r--toolkit/components/aboutmemory/tests/test_aboutmemory.xhtml10
-rw-r--r--toolkit/components/aboutmemory/tests/test_aboutmemory2.xhtml2
-rw-r--r--toolkit/components/aboutmemory/tests/test_aboutmemory3.xhtml2
-rw-r--r--toolkit/components/aboutmemory/tests/test_aboutmemory4.xhtml2
-rw-r--r--toolkit/components/aboutmemory/tests/test_aboutmemory7.xhtml2
-rw-r--r--toolkit/components/aboutmemory/tests/test_memoryReporters.xhtml10
-rw-r--r--toolkit/components/aboutmemory/tests/test_memoryReporters2.xhtml2
-rw-r--r--toolkit/components/aboutmemory/tests/xpcshell/test_gpuprocess.js9
8 files changed, 15 insertions, 24 deletions
diff --git a/toolkit/components/aboutmemory/tests/test_aboutmemory.xhtml b/toolkit/components/aboutmemory/tests/test_aboutmemory.xhtml
index 4617a019ad..a1a712dd0a 100644
--- a/toolkit/components/aboutmemory/tests/test_aboutmemory.xhtml
+++ b/toolkit/components/aboutmemory/tests/test_aboutmemory.xhtml
@@ -40,7 +40,7 @@
const PERCENTAGE = Ci.nsIMemoryReporter.UNITS_PERCENTAGE;
let fakeReporters = [
- { collectReports(aCbObj, aClosure, aAnonymize) {
+ { collectReports(aCbObj, aClosure) {
function f(aP, aK, aU, aA) {
aCbObj.callback("Main Process", aP, aK, aU, aA, "Desc.", aClosure);
}
@@ -77,7 +77,7 @@
f("compartments/system/foo", OTHER, COUNT, 1);
}
},
- { collectReports(aCbObj, aClosure, aAnonymize) {
+ { collectReports(aCbObj, aClosure) {
function f(aP, aK, aU, aA) {
aCbObj.callback("Main Process", aP, aK, aU, aA, "Desc.", aClosure);
}
@@ -92,7 +92,7 @@
f("explicit/f/g/h/j", HEAP, BYTES, 10 * MB);
}
},
- { collectReports(aCbObj, aClosure, aAnonymize) {
+ { collectReports(aCbObj, aClosure) {
function f(aP, aK, aU, aA) {
aCbObj.callback("Main Process", aP, aK, aU, aA, "Desc.", aClosure);
}
@@ -103,7 +103,7 @@
f("compartments/user/https:\\\\very-long-url.com\\very-long\\oh-so-long\\really-quite-long.html?a=2&b=3&c=4&d=5&e=abcdefghijklmnopqrstuvwxyz&f=123456789123456789123456789", OTHER, COUNT, 1);
}
},
- { collectReports(aCbObj, aClosure, aAnonymize) {
+ { collectReports(aCbObj, aClosure) {
function f(aP) {
aCbObj.callback("Main Process", aP, OTHER, COUNT, 1, "Desc.", aClosure);
}
@@ -121,7 +121,7 @@
// the largest). Processes without a |resident| memory reporter are saved
// for the end.
let fakeReporters2 = [
- { collectReports(aCbObj, aClosure, aAnonymize) {
+ { collectReports(aCbObj, aClosure) {
function f(aP1, aP2, aK, aU, aA) {
aCbObj.callback(aP1, aP2, aK, aU, aA, "Desc.", aClosure);
}
diff --git a/toolkit/components/aboutmemory/tests/test_aboutmemory2.xhtml b/toolkit/components/aboutmemory/tests/test_aboutmemory2.xhtml
index 28c8f7fa4f..f5c3885959 100644
--- a/toolkit/components/aboutmemory/tests/test_aboutmemory2.xhtml
+++ b/toolkit/components/aboutmemory/tests/test_aboutmemory2.xhtml
@@ -36,7 +36,7 @@
let jk2Path = "explicit/j/k2";
let fakeReporters = [
- { collectReports(aCbObj, aClosure, aAnonymize) {
+ { collectReports(aCbObj, aClosure) {
function f(aP, aK, aA) {
aCbObj.callback("Main Process ABC", aP, aK, BYTES, aA, "Desc.", aClosure);
}
diff --git a/toolkit/components/aboutmemory/tests/test_aboutmemory3.xhtml b/toolkit/components/aboutmemory/tests/test_aboutmemory3.xhtml
index 1391af38b7..7292cbf252 100644
--- a/toolkit/components/aboutmemory/tests/test_aboutmemory3.xhtml
+++ b/toolkit/components/aboutmemory/tests/test_aboutmemory3.xhtml
@@ -31,7 +31,7 @@
const BYTES = Ci.nsIMemoryReporter.UNITS_BYTES;
let fakeReporters = [
- { collectReports(aCbObj, aClosure, aAnonymize) {
+ { collectReports(aCbObj, aClosure) {
function f(aP, aK, aA, aD) {
aCbObj.callback("", aP, aK, BYTES, aA, aD, aClosure);
}
diff --git a/toolkit/components/aboutmemory/tests/test_aboutmemory4.xhtml b/toolkit/components/aboutmemory/tests/test_aboutmemory4.xhtml
index 9d9db694f2..1fcdb86406 100644
--- a/toolkit/components/aboutmemory/tests/test_aboutmemory4.xhtml
+++ b/toolkit/components/aboutmemory/tests/test_aboutmemory4.xhtml
@@ -35,7 +35,7 @@
frame.height = 300;
frame.src = "about:memory?file=" + makePathname(aFilename);
document.documentElement.appendChild(frame);
- frame.addEventListener("load", function onFrameLoad(e) {
+ frame.addEventListener("load", function onFrameLoad() {
frame.focus();
// Initialize the clipboard contents.
diff --git a/toolkit/components/aboutmemory/tests/test_aboutmemory7.xhtml b/toolkit/components/aboutmemory/tests/test_aboutmemory7.xhtml
index 28872cd516..a31eb6e6b4 100644
--- a/toolkit/components/aboutmemory/tests/test_aboutmemory7.xhtml
+++ b/toolkit/components/aboutmemory/tests/test_aboutmemory7.xhtml
@@ -30,7 +30,7 @@
const BYTES = Ci.nsIMemoryReporter.UNITS_BYTES;
let fakeReporters = [
- { collectReports(aCbObj, aClosure, aAnonymize) {
+ { collectReports(aCbObj, aClosure) {
function f(aP, aK, aA) {
aCbObj.callback("Main Process", aP, aK, BYTES, aA, "Desc.", aClosure);
}
diff --git a/toolkit/components/aboutmemory/tests/test_memoryReporters.xhtml b/toolkit/components/aboutmemory/tests/test_memoryReporters.xhtml
index c97981258e..bc715b6778 100644
--- a/toolkit/components/aboutmemory/tests/test_memoryReporters.xhtml
+++ b/toolkit/components/aboutmemory/tests/test_memoryReporters.xhtml
@@ -77,8 +77,7 @@
let mySandbox = Cu.Sandbox(document.nodePrincipal,
{ sandboxName: "this-is-a-sandbox-name" });
- function handleReportNormal(aProcess, aPath, aKind, aUnits, aAmount,
- aDescription)
+ function handleReportNormal(aProcess, aPath, aKind, aUnits, aAmount)
{
if (aProcess.startsWith(`Utility `)) {
// The Utility process that runs the ORB JavaScript validator starts on first
@@ -128,8 +127,7 @@
}
}
- function handleReportAnonymized(aProcess, aPath, aKind, aUnits, aAmount,
- aDescription)
+ function handleReportAnonymized(aProcess, aPath)
{
// Path might include an xmlns using http, which is safe to ignore.
let reducedPath = aPath.replace(XUL_NS, "");
@@ -331,7 +329,7 @@
}
},
// nsIMemoryReporter
- collectReports(callback, data, anonymize) {
+ collectReports(callback, data) {
for (let path of Object.keys(this.tests)) {
try {
let test = this.tests[path];
@@ -350,7 +348,7 @@
}
},
// nsIHandleReportCallback
- callback(process, path, kind, units, amount, data) {
+ callback(process, path, kind, units, amount) {
if (path in this.tests) {
this.seen++;
let test = this.tests[path];
diff --git a/toolkit/components/aboutmemory/tests/test_memoryReporters2.xhtml b/toolkit/components/aboutmemory/tests/test_memoryReporters2.xhtml
index b7251c4e62..8dc7567109 100644
--- a/toolkit/components/aboutmemory/tests/test_memoryReporters2.xhtml
+++ b/toolkit/components/aboutmemory/tests/test_memoryReporters2.xhtml
@@ -55,7 +55,7 @@
{
let residents = {};
- let handleReport = function(aProcess, aPath, aKind, aUnits, aAmount, aDesc) {
+ let handleReport = function(aProcess, aPath, aKind, aUnits, aAmount) {
if (aProcess.startsWith(`Utility `)) {
// The Utility process that runs the ORB JavaScript validator starts on first
// idle in the parent process. This makes it notoriously hard to know _if_ it
diff --git a/toolkit/components/aboutmemory/tests/xpcshell/test_gpuprocess.js b/toolkit/components/aboutmemory/tests/xpcshell/test_gpuprocess.js
index 4a77752b17..764f5a1302 100644
--- a/toolkit/components/aboutmemory/tests/xpcshell/test_gpuprocess.js
+++ b/toolkit/components/aboutmemory/tests/xpcshell/test_gpuprocess.js
@@ -17,14 +17,7 @@ function run_test() {
};
let foundGPUProcess = false;
- let onHandleReport = function (
- aProcess,
- aPath,
- aKind,
- aUnits,
- aAmount,
- aDescription
- ) {
+ let onHandleReport = function (aProcess) {
if (/GPU \(pid \d+\)/.test(aProcess)) {
foundGPUProcess = true;
}