This commit is contained in:
Phil Ringnalda 2014-03-23 08:41:31 -07:00
Родитель 655a096ea5 d3cfb61572
Коммит 42969b9b51
27 изменённых файлов: 307 добавлений и 43 удалений

Просмотреть файл

@ -418,6 +418,7 @@ pref("dom.global-constructor.disable.mozContact", false);
pref("dom.phonenumber.substringmatching.BR", 8);
pref("dom.phonenumber.substringmatching.CO", 10);
pref("dom.phonenumber.substringmatching.VE", 7);
pref("dom.phonenumber.substringmatching.CL", 8);
// WebAlarms
pref("dom.mozAlarms.enabled", true);

Просмотреть файл

@ -19,7 +19,7 @@
<copyfile dest="Makefile" src="core/root.mk"/>
</project>
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="e6702f8786633bbbe27ee5cbc00a31f7e2f60a8f"/>
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="06cfe08cd72f32404f304d34fb902b544bdfeb9e"/>
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="266bca6e60dad43e395f38b66edabe8bdc882334"/>
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
<project name="platform_hardware_ril" path="hardware/ril" remote="b2g" revision="d11f524d00cacf5ba0dfbf25e4aa2158b1c3a036"/>

Просмотреть файл

@ -17,7 +17,7 @@
</project>
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
<project name="gaia" path="gaia" remote="mozillaorg" revision="e6702f8786633bbbe27ee5cbc00a31f7e2f60a8f"/>
<project name="gaia" path="gaia" remote="mozillaorg" revision="06cfe08cd72f32404f304d34fb902b544bdfeb9e"/>
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="266bca6e60dad43e395f38b66edabe8bdc882334"/>
<project name="moztt" path="external/moztt" remote="b2g" revision="cb16958e41105d7c551d9941f522db97b8312538"/>
<project name="apitrace" path="external/apitrace" remote="apitrace" revision="485846b2a40d8ac7d6c1c5f8af6d15b0c10af19d"/>

Просмотреть файл

@ -15,7 +15,7 @@
<project name="platform_build" path="build" remote="b2g" revision="a9e08b91e9cd1f0930f16cfc49ec72f63575d5fe">
<copyfile dest="Makefile" src="core/root.mk"/>
</project>
<project name="gaia" path="gaia" remote="mozillaorg" revision="e6702f8786633bbbe27ee5cbc00a31f7e2f60a8f"/>
<project name="gaia" path="gaia" remote="mozillaorg" revision="06cfe08cd72f32404f304d34fb902b544bdfeb9e"/>
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="266bca6e60dad43e395f38b66edabe8bdc882334"/>
<project name="moztt" path="external/moztt" remote="b2g" revision="cb16958e41105d7c551d9941f522db97b8312538"/>

Просмотреть файл

@ -19,7 +19,7 @@
<copyfile dest="Makefile" src="core/root.mk"/>
</project>
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="e6702f8786633bbbe27ee5cbc00a31f7e2f60a8f"/>
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="06cfe08cd72f32404f304d34fb902b544bdfeb9e"/>
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="266bca6e60dad43e395f38b66edabe8bdc882334"/>
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
<project name="platform_hardware_ril" path="hardware/ril" remote="b2g" revision="d11f524d00cacf5ba0dfbf25e4aa2158b1c3a036"/>

Просмотреть файл

@ -4,6 +4,6 @@
"branch": "",
"revision": ""
},
"revision": "4926fae1778461d93ff10b0fe4f8430246373e03",
"revision": "4dff379346b266bd93f48291a64cfc90af5d7daa",
"repo_path": "/integration/gaia-central"
}

Просмотреть файл

@ -17,7 +17,7 @@
<copyfile dest="Makefile" src="core/root.mk"/>
</project>
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="e6702f8786633bbbe27ee5cbc00a31f7e2f60a8f"/>
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="06cfe08cd72f32404f304d34fb902b544bdfeb9e"/>
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="266bca6e60dad43e395f38b66edabe8bdc882334"/>
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
<project name="librecovery" path="librecovery" remote="b2g" revision="1f6a1fe07f81c5bc5e1d079c9b60f7f78ca2bf4f"/>

Просмотреть файл

@ -15,7 +15,7 @@
<copyfile dest="Makefile" src="core/root.mk"/>
</project>
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="e6702f8786633bbbe27ee5cbc00a31f7e2f60a8f"/>
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="06cfe08cd72f32404f304d34fb902b544bdfeb9e"/>
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="266bca6e60dad43e395f38b66edabe8bdc882334"/>
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
<project name="librecovery" path="librecovery" remote="b2g" revision="1f6a1fe07f81c5bc5e1d079c9b60f7f78ca2bf4f"/>

Просмотреть файл

@ -19,7 +19,7 @@
<copyfile dest="Makefile" src="core/root.mk"/>
</project>
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="e6702f8786633bbbe27ee5cbc00a31f7e2f60a8f"/>
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="06cfe08cd72f32404f304d34fb902b544bdfeb9e"/>
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="266bca6e60dad43e395f38b66edabe8bdc882334"/>
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
<project name="librecovery" path="librecovery" remote="b2g" revision="1f6a1fe07f81c5bc5e1d079c9b60f7f78ca2bf4f"/>

Просмотреть файл

@ -17,7 +17,7 @@
<copyfile dest="Makefile" src="core/root.mk"/>
</project>
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="e6702f8786633bbbe27ee5cbc00a31f7e2f60a8f"/>
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="06cfe08cd72f32404f304d34fb902b544bdfeb9e"/>
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="266bca6e60dad43e395f38b66edabe8bdc882334"/>
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
<project name="librecovery" path="librecovery" remote="b2g" revision="1f6a1fe07f81c5bc5e1d079c9b60f7f78ca2bf4f"/>

Просмотреть файл

@ -17,7 +17,7 @@
</project>
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
<project name="gaia" path="gaia" remote="mozillaorg" revision="e6702f8786633bbbe27ee5cbc00a31f7e2f60a8f"/>
<project name="gaia" path="gaia" remote="mozillaorg" revision="06cfe08cd72f32404f304d34fb902b544bdfeb9e"/>
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="266bca6e60dad43e395f38b66edabe8bdc882334"/>
<project name="moztt" path="external/moztt" remote="b2g" revision="cb16958e41105d7c551d9941f522db97b8312538"/>
<project name="apitrace" path="external/apitrace" remote="apitrace" revision="485846b2a40d8ac7d6c1c5f8af6d15b0c10af19d"/>

Просмотреть файл

@ -17,7 +17,7 @@
<copyfile dest="Makefile" src="core/root.mk"/>
</project>
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="e6702f8786633bbbe27ee5cbc00a31f7e2f60a8f"/>
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="06cfe08cd72f32404f304d34fb902b544bdfeb9e"/>
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="266bca6e60dad43e395f38b66edabe8bdc882334"/>
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
<project name="librecovery" path="librecovery" remote="b2g" revision="1f6a1fe07f81c5bc5e1d079c9b60f7f78ca2bf4f"/>

Просмотреть файл

@ -8,10 +8,6 @@ SOURCES += [
'nsFeedSniffer.cpp',
]
EXPORTS.mozilla += [
'FeedWriterEnabled.h',
]
EXTRA_COMPONENTS += [
'BrowserFeeds.manifest',
'FeedConverter.js',

Просмотреть файл

@ -53,6 +53,10 @@ if CONFIG['INTEL_ARCHITECTURE']:
SOURCES += ['nsTextFragmentSSE2.cpp']
SOURCES['nsTextFragmentSSE2.cpp'].flags += CONFIG['SSE2_FLAGS']
EXPORTS.mozilla += [
'FeedWriterEnabled.h',
]
EXPORTS.mozilla.dom += [
'Attr.h',
'Comment.h',

Просмотреть файл

@ -25,7 +25,7 @@ namespace mp4_demuxer {
#define OVERRIDE override
#define OVERRIDE MOZ_OVERRIDE
#define WARN_UNUSED_RESULT
#define DCHECK(condition) \

Просмотреть файл

@ -13,6 +13,7 @@ skip-if = (toolkit == 'gonk' && debug) #debug-only failure
[test_contacts_international.html]
[test_contacts_substringmatching.html]
[test_contacts_substringmatchingVE.html]
[test_contacts_substringmatchingCL.html]
[test_migration.html]
support-files =
test_migration_chrome.js

Просмотреть файл

@ -402,15 +402,17 @@ function next() {
}
}
SimpleTest.waitForExplicitFinish();
function start_tests() {
// Skip tests on Android < 4.0 due to test failures on tbpl (see bugs 897924 & 888891)
let androidVersion = SpecialPowers.Cc['@mozilla.org/system-info;1']
.getService(SpecialPowers.Ci.nsIPropertyBag2)
.getProperty('version');
if (!isAndroid || androidVersion >= 14) {
SimpleTest.waitForExplicitFinish();
addLoadEvent(next);
next();
} else {
ok(true, "Skip tests on Android < 4.0 (bugs 897924 & 888891");
SimpleTest.finish();
}
}

Просмотреть файл

@ -43,13 +43,13 @@ var properties2 = {
};
var number3 = {
international1: "0041557932012345",
international2: "+557932012345"
local: "7932012345",
international: "+557932012345"
};
var properties3 = {
name: ["Testname2"],
tel: [{value: number3.international2}]
tel: [{value: number3.international}]
};
var req;
@ -95,9 +95,9 @@ var steps = [
filterValue: number1.local};
req = mozContacts.find(options);
req.onsuccess = function () {
ok(req.result.length == 1, "Found exactly 1 contact.");
ise(req.result.length, 1, "Found exactly 1 contact.");
findResult1 = req.result[0];
ok(findResult1.id == sample_id1, "Same ID");
ise(findResult1.id, sample_id1, "Same ID");
next();
};
req.onerror = onFailure;
@ -109,7 +109,7 @@ var steps = [
filterValue: number1.international};
req = mozContacts.find(options);
req.onsuccess = function () {
ok(req.result.length == 0, "Found exactly 0 contacts.");
ise(req.result.length, 0, "Found exactly 0 contacts.");
next();
};
req.onerror = onFailure;
@ -122,7 +122,7 @@ var steps = [
filterValue: shortNumber};
req = mozContacts.find(options);
req.onsuccess = function() {
ok(req.result.length == 0, "The prefix short number should not match any contact.");
ise(req.result.length, 0, "The prefix short number should not match any contact.");
next();
};
req.onerror = onFailure;
@ -135,7 +135,7 @@ var steps = [
filterValue: shortNumber};
req = mozContacts.find(options);
req.onsuccess = function() {
ok(req.result.length == 0, "The suffix short number should not match any contact.");
ise(req.result.length, 0, "The suffix short number should not match any contact.");
next();
};
req.onerror = onFailure;
@ -147,7 +147,7 @@ var steps = [
filterValue: shortNumber};
req = mozContacts.find(options);
req.onsuccess = function() {
ok(req.result.length == 1, "Found the contact equally matching the shortNumber.");
ise(req.result.length, 1, "Found the contact equally matching the shortNumber.");
next();
};
req.onerror = onFailure;
@ -171,7 +171,7 @@ var steps = [
filterValue: number1.local};
req = mozContacts.find(options);
req.onsuccess = function () {
ok(req.result.length == 0, "Found exactly 0 contact.");
ise(req.result.length, 0, "Found exactly 0 contact.");
next();
};
req.onerror = onFailure;
@ -183,7 +183,7 @@ var steps = [
filterValue: number1.international};
req = mozContacts.find(options);
req.onsuccess = function () {
ok(req.result.length == 0, "Found exactly 0 contact.");
ise(req.result.length, 0, "Found exactly 0 contact.");
next();
};
req.onerror = onFailure;
@ -195,9 +195,9 @@ var steps = [
filterValue: number2.local};
req = mozContacts.find(options);
req.onsuccess = function () {
ok(req.result.length == 1, "Found exactly 1 contact.");
ise(req.result.length, 1, "Found exactly 1 contact.");
findResult1 = req.result[0];
ok(findResult1.id == sample_id1, "Same ID");
ise(findResult1.id, sample_id1, "Same ID");
next();
};
req.onerror = onFailure;
@ -209,7 +209,7 @@ var steps = [
filterValue: number2.international};
req = mozContacts.find(options);
req.onsuccess = function () {
ok(req.result.length == 0, "Found exactly 1 contact.");
ise(req.result.length, 0, "Found exactly 1 contact.");
next();
};
req.onerror = onFailure;
@ -224,7 +224,7 @@ var steps = [
req.onerror = onFailure;
},
function () {
ok(true, "Adding a new contact with country code");
ok(true, "Adding a contact with a Brazilian country code");
createResult1 = new mozContact(properties3);
req = navigator.mozContacts.save(createResult1);
req.onsuccess = function () {
@ -235,15 +235,15 @@ var steps = [
req.onerror = onFailure;
},
function () {
ok(true, "Searching for international number with prefix");
ok(true, "Searching for Brazilian number using local number");
var options = {filterBy: ["tel"],
filterOp: "match",
filterValue: number3.international1};
filterValue: number3.local};
req = mozContacts.find(options);
req.onsuccess = function () {
ok(req.result.length == 1, "Found exactly 1 contact.");
ise(req.result.length, 1, "Found exactly 1 contact.");
findResult1 = req.result[0];
ok(findResult1.id == sample_id1, "Same ID");
ise(findResult1.id, sample_id1, "Same ID");
next();
};
req.onerror = onFailure;
@ -263,7 +263,11 @@ var steps = [
}
];
start_tests();
SpecialPowers.pushPrefEnv({
set: [
["ril.lastKnownSimMcc", "000"]
]
}, start_tests);
</script>
</pre>
</body>

Просмотреть файл

@ -45,6 +45,15 @@ var prop4 = {
tel: [{ value: "(0414) 233-9888" }]
};
var brazilianNumber = {
international1: "0041557932012345",
international2: "+557932012345"
};
var prop5 = {
tel: [{value: brazilianNumber.international2}]
};
var req;
var steps = [
function () {
@ -293,6 +302,40 @@ var steps = [
}
req.onerror = onFailure;
},
function () {
ok(true, "Adding a new contact with a Brazilian country code");
createResult1 = new mozContact(prop5);
req = navigator.mozContacts.save(createResult1);
req.onsuccess = function () {
ok(createResult1.id, "The contact now has an ID.");
sample_id1 = createResult1.id;
next();
};
req.onerror = onFailure;
},
function () {
ok(true, "Searching for international number with prefix");
var options = {filterBy: ["tel"],
filterOp: "match",
filterValue: brazilianNumber.international1};
req = mozContacts.find(options);
req.onsuccess = function () {
ok(req.result.length == 1, "Found exactly 1 contact.");
findResult1 = req.result[0];
ok(findResult1.id == sample_id1, "Same ID");
next();
};
req.onerror = onFailure;
},
function () {
ok(true, "Deleting database");
req = mozContacts.clear()
req.onsuccess = function () {
ok(true, "Deleted the database");
next();
}
req.onerror = onFailure;
},
function () {
ok(true, "all done!\n");
SpecialPowers.clearUserPref("dom.phonenumber.substringmatching.BR");

Просмотреть файл

@ -0,0 +1,204 @@
<!DOCTYPE html>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=877302
-->
<head>
<title>Test for Bug 949537 substring matching for WebContacts</title>
<script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=949537">Mozilla Bug 949537</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script type="text/javascript;version=1.8" src="http://mochi.test:8888/tests/dom/contacts/tests/shared.js"></script>
<script class="testbody" type="text/javascript">
"use strict";
var landlineNumber = "+56 2 27654321";
var number = {
local: "87654321",
international: "+56 9 87654321"
};
var properties = {
name: ["Testname2"],
tel: [{value: number.international}]
};
var req;
var steps = [
function () {
ok(true, "Adding a contact with a Chilean number");
createResult1 = new mozContact(properties);
req = navigator.mozContacts.save(createResult1);
req.onsuccess = function () {
ok(createResult1.id, "The contact now has an ID.");
sample_id1 = createResult1.id;
next();
};
req.onerror = onFailure;
},
function () {
ok(true, "Searching for Chilean number with prefix");
req = mozContacts.find({
filterBy: ["tel"],
filterOp: "match",
filterValue: number.international
});
req.onsuccess = function () {
ise(req.result.length, 1, "Found exactly 1 contact.");
findResult1 = req.result[0];
ise(findResult1.id, sample_id1, "Same ID");
next();
};
req.onerror = onFailure;
},
function () {
ok(true, "Searching for Chilean number using local number");
req = mozContacts.find({
filterBy: ["tel"],
filterOp: "match",
filterValue: number.local
});
req.onsuccess = function () {
ise(req.result.length, 1, "Found 0 contacts.");
next();
};
req.onerror = onFailure;
},
clearDatabase,
function () {
ok(true, "Adding contact with mobile number");
createResult1 = new mozContact({tel: [{value: number.international}]});
req = navigator.mozContacts.save(createResult1);
req.onsuccess = function () {
ok(createResult1.id, "The contact now has an ID.");
sample_id1 = createResult1.id;
next();
};
req.onerror = onFailure;
},
function () {
ok(true, "Retrieving all contacts");
req = mozContacts.find({});
req.onsuccess = function () {
ise(req.result.length, 1, "One contact.");
findResult1 = req.result[0];
next();
};
req.onerror = onFailure;
},
function () {
ok(true, "Retrieving by last 8 digits");
req = mozContacts.find({
filterBy: ["tel"],
filterOp: "match",
filterValue: number.international.slice(-8)
});
req.onsuccess = function () {
ise(req.result.length, 1, "Found exactly 1 contact.");
findResult1 = req.result[0];
ise(findResult1.id, sample_id1, "Same ID");
ise(findResult1.tel[0].value, number.international, "Same Value");
next();
};
req.onerror = onFailure;
},
function () {
ok(true, "Retrieving by last 9 digits");
req = mozContacts.find({
filterBy: ["tel"],
filterOp: "match",
filterValue: number.international.slice(-9)
});
req.onsuccess = function () {
ise(req.result.length, 1, "Found exactly 1 contact.");
findResult1 = req.result[0];
ise(findResult1.id, sample_id1, "Same ID");
ise(findResult1.tel[0].value, number.international, "Same Value");
next();
};
req.onerror = onFailure;
},
function () {
ok(true, "Retrieving by last 6 digits");
req = mozContacts.find({
filterBy: ["tel"],
filterOp: "match",
filterValue: number.international.slice(-6)
});
req.onsuccess = function () {
ise(req.result.length, 0, "Found exactly zero contacts.");
next();
};
req.onerror = onFailure;
},
clearDatabase,
function () {
ok(true, "Adding contact with landline number");
createResult1 = new mozContact({tel: [{value: landlineNumber}]});
req = navigator.mozContacts.save(createResult1);
req.onsuccess = function () {
ok(createResult1.id, "The contact now has an ID.");
sample_id1 = createResult1.id;
next();
};
req.onerror = onFailure;
},
function () {
ok(true, "Retrieving all contacts");
req = mozContacts.find({});
req.onsuccess = function () {
ise(req.result.length, 1, "One contact.");
findResult1 = req.result[0];
next();
};
req.onerror = onFailure;
},
function () {
ok(true, "Retrieving by last 7 digits (local number) with landline calling prefix");
req = mozContacts.find({
filterBy: ["tel"],
filterOp: "match",
filterValue: "022" + landlineNumber.slice(-7)
});
req.onsuccess = function () {
ise(req.result.length, 1, "Found exactly 1 contact.");
findResult1 = req.result[0];
ise(findResult1.id, sample_id1, "Same ID");
ise(findResult1.tel[0].value, landlineNumber, "Same Value");
next();
};
req.onerror = onFailure;
},
clearDatabase,
function () {
ok(true, "all done!\n");
SimpleTest.finish();
}
];
SpecialPowers.pushPrefEnv({
set: [
["dom.phonenumber.substringmatching.CL", 8],
["ril.lastKnownSimMcc", "730"]
]
}, start_tests);
</script>
</pre>
</body>
</html>

Просмотреть файл

@ -617,7 +617,7 @@ if CONFIG['MOZ_B2G_BT']:
'BluetoothStatusChangedEvent.webidl',
]
if CONFIG['MOZ_BUILD_APP'] == 'browser':
if CONFIG['MOZ_BUILD_APP'] in ['browser', 'xulrunner']:
WEBIDL_FILES += [
'BrowserFeedWriter.webidl',
]

Просмотреть файл

@ -225,7 +225,7 @@ random-if(gtk2Widget) == objectBoundingBox-and-fePointLight-02.svg objectBoundin
skip-if(d2d) fuzzy-if(azureQuartz,1,99974) == opacity-and-gradient-02.svg opacity-and-gradient-02-ref.svg
== opacity-and-pattern-01.svg pass.svg
== opacity-and-transform-01.svg opacity-and-transform-01-ref.svg
fuzzy-if(Android&&AndroidVersion>=15,8,200) == outer-svg-border-and-padding-01.svg outer-svg-border-and-padding-01-ref.svg
fails-if(B2G) fuzzy-if(Android&&AndroidVersion>=15,8,200) == outer-svg-border-and-padding-01.svg outer-svg-border-and-padding-01-ref.svg # B2G scrollbar difference
== overflow-on-outer-svg-01.svg overflow-on-outer-svg-01-ref.svg
== overflow-on-outer-svg-02a.xhtml overflow-on-outer-svg-02-ref.xhtml
== overflow-on-outer-svg-02b.xhtml overflow-on-outer-svg-02-ref.xhtml

Просмотреть файл

@ -1,6 +1,3 @@
# Make overlay scrollbars never fade out
default-preferences pref(layout.testing.overlay-scrollbars.always-visible,true)
== 480053-1.html 480053-1-ref.html
== z-index-1.html z-index-1-ref.html
!= stacking-context-yes.html stacking-context-no.html

Просмотреть файл

@ -38,6 +38,10 @@ function setDefaultPrefs() {
branch.setBoolPref("security.fileuri.strict_origin_policy", false);
// Disable the thumbnailing service
branch.setBoolPref("browser.pagethumbnails.capturing_disabled", true);
// Disable the fade out (over time) of overlay scrollbars, since we
// can't guarantee taking both reftest snapshots at the same point
// during the fade.
branch.setBoolPref("layout.testing.overlay-scrollbars.always-visible", true);
}
function setPermissions() {

4
layout/tools/reftest/bootstrap.js поставляемый
Просмотреть файл

@ -38,6 +38,10 @@ function setDefaultPrefs() {
branch.setIntPref("urlclassifier.updateinterval", 172800);
// Disable high-quality downscaling, since it makes reftests more difficult.
branch.setBoolPref("image.high_quality_downscaling.enabled", false);
// Disable the fade out (over time) of overlay scrollbars, since we
// can't guarantee taking both reftest snapshots at the same point
// during the fade.
branch.setBoolPref("layout.testing.overlay-scrollbars.always-visible", true);
}
var windowListener = {

Просмотреть файл

@ -114,6 +114,10 @@ RefTestCmdLineHandler.prototype =
// in our 800px window we don't zoom out by default to try to fit the
// assumed 980px content.
branch.setIntPref("browser.viewport.desktopWidth", 800);
// Disable the fade out (over time) of overlay scrollbars, since we
// can't guarantee taking both reftest snapshots at the same point
// during the fade.
branch.setBoolPref("layout.testing.overlay-scrollbars.always-visible", true);
var wwatch = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
.getService(nsIWindowWatcher);