mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-14 19:27:30 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
23
toolkit/modules/tests/browser/head.js
Normal file
23
toolkit/modules/tests/browser/head.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
function removeDupes(list)
|
||||
{
|
||||
let j = 0;
|
||||
for (let i = 1; i < list.length; i++) {
|
||||
if (list[i] != list[j]) {
|
||||
j++;
|
||||
if (i != j) {
|
||||
list[j] = list[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
list.length = j + 1;
|
||||
}
|
||||
|
||||
function compareLists(list1, list2, kind)
|
||||
{
|
||||
list1.sort();
|
||||
removeDupes(list1);
|
||||
list2.sort();
|
||||
removeDupes(list2);
|
||||
is(String(list1), String(list2), `${kind} URLs correct`);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue