зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1336712 - dom: Drop test checks for OS X 10.5 and Windows XP. r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D6578 --HG-- extra : source : 682a1bfda27c8e82aea0d86f256d5dee3ff5c2a0 extra : histedit_source : 2e60b58780900e879177542c5e32a27c805e8f67
This commit is contained in:
Родитель
eaa59c7fc4
Коммит
867866d2d3
|
@ -32,22 +32,6 @@ function IsLinux() {
|
|||
!navigator.appVersion.includes("Android");
|
||||
}
|
||||
|
||||
function IsMacOSX10_5orOlder() {
|
||||
var is105orOlder = false;
|
||||
|
||||
if (navigator.platform.indexOf("Mac") == 0) {
|
||||
var version = Cc["@mozilla.org/system-info;1"]
|
||||
.getService(SpecialPowers.Ci.nsIPropertyBag2)
|
||||
.getProperty("version");
|
||||
// the next line is correct: Mac OS 10.6 corresponds to Darwin version 10 !
|
||||
// Mac OS 10.5 would be Darwin version 9. the |version| string we've got here
|
||||
// is the Darwin version.
|
||||
is105orOlder = (parseFloat(version) < 10.0);
|
||||
}
|
||||
return is105orOlder;
|
||||
}
|
||||
|
||||
|
||||
function IsAzureSkia() {
|
||||
var enabled = false;
|
||||
|
||||
|
@ -5767,7 +5751,7 @@ function test_2d_gradient_interpolate_overlap() {
|
|||
var canvas = document.getElementById('c215');
|
||||
var ctx = canvas.getContext('2d');
|
||||
|
||||
if (!IsD2DEnabled() && !IsMacOSX10_5orOlder()) {
|
||||
if (!IsD2DEnabled()) {
|
||||
// On D2D the different nature of how gradients
|
||||
// are drawn makes it so we cannot guarantee these stops are completely
|
||||
// hard.
|
||||
|
@ -5827,14 +5811,11 @@ for (var p = 0; p < ps.length; ++p)
|
|||
ctx.fillStyle = g;
|
||||
ctx.fillRect(0, 0, 100, 50);
|
||||
|
||||
if (!IsMacOSX10_5orOlder()) {
|
||||
// On OS X 10.5 quartz is confused by the overlapping stops: Bug #715235
|
||||
isPixel(ctx, 1,25, 0,255,0,255, 0);
|
||||
isPixel(ctx, 30,25, 0,255,0,255, 0);
|
||||
isPixel(ctx, 40,25, 0,255,0,255, 0);
|
||||
isPixel(ctx, 60,25, 0,255,0,255, 0);
|
||||
isPixel(ctx, 80,25, 0,255,0,255, 0);
|
||||
}
|
||||
isPixel(ctx, 1,25, 0,255,0,255, 0);
|
||||
isPixel(ctx, 30,25, 0,255,0,255, 0);
|
||||
isPixel(ctx, 40,25, 0,255,0,255, 0);
|
||||
isPixel(ctx, 60,25, 0,255,0,255, 0);
|
||||
isPixel(ctx, 80,25, 0,255,0,255, 0);
|
||||
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -41,8 +41,6 @@ function Test(test) {
|
|||
return res;
|
||||
}
|
||||
|
||||
const isWinXP = navigator.userAgent.includes("Windows NT 5.1");
|
||||
|
||||
var tests = [
|
||||
{
|
||||
keySystem: CLEARKEY_KEYSYSTEM,
|
||||
|
@ -56,12 +54,12 @@ var tests = [
|
|||
},
|
||||
{
|
||||
keySystem: "com.widevine.alpha",
|
||||
expectedStatus: (isWinXP ? 'cdm-not-supported' : 'cdm-disabled'),
|
||||
expectedStatus: 'cdm-disabled',
|
||||
prefs: [["media.eme.enabled", true], ["media.gmp-widevinecdm.enabled", false]]
|
||||
},
|
||||
{
|
||||
keySystem: "com.widevine.alpha",
|
||||
expectedStatus: (isWinXP ? 'cdm-not-supported' : 'cdm-not-installed'),
|
||||
expectedStatus: 'cdm-not-installed',
|
||||
prefs: [["media.eme.enabled", true], , ["media.gmp-widevinecdm.enabled", true]]
|
||||
},
|
||||
{
|
||||
|
|
|
@ -1140,21 +1140,6 @@ class VideoStreamHelper {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
function IsMacOSX10_6orOlder() {
|
||||
if (navigator.platform.indexOf("Mac") !== 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var version = Cc["@mozilla.org/system-info;1"]
|
||||
.getService(Ci.nsIPropertyBag2)
|
||||
.getProperty("version");
|
||||
// the next line is correct: Mac OS 10.6 corresponds to Darwin version 10.x !
|
||||
// Mac OS 10.7 is Darwin version 11.x. the |version| string we've got here
|
||||
// is the Darwin version.
|
||||
return (parseFloat(version) < 11.0);
|
||||
}
|
||||
|
||||
(function(){
|
||||
var el = document.createElement("link");
|
||||
el.rel = "stylesheet";
|
||||
|
|
|
@ -67,12 +67,6 @@
|
|||
* cycle for a screenshare MediaStream on a video HTMLMediaElement.
|
||||
*/
|
||||
runTest(async function () {
|
||||
const isWinXP = navigator.userAgent.includes("Windows NT 5.1");
|
||||
if (IsMacOSX10_6orOlder() || isWinXP) {
|
||||
ok(true, "Screensharing disabled for OSX10.6 and WinXP");
|
||||
return;
|
||||
}
|
||||
|
||||
await pushPrefs(
|
||||
["full-screen-api.enabled", true],
|
||||
["full-screen-api.unprefix.enabled", true],
|
||||
|
|
|
@ -17,11 +17,6 @@
|
|||
* Additionally, exercise applyConstraints code for tabshare viewport offset.
|
||||
*/
|
||||
runTest(function () {
|
||||
const isWinXP = navigator.userAgent.includes("Windows NT 5.1");
|
||||
if (IsMacOSX10_6orOlder() || isWinXP) {
|
||||
ok(true, "Screensharing disabled for OSX10.6 and WinXP");
|
||||
return;
|
||||
}
|
||||
var testVideo = createMediaElement('video', 'testVideo');
|
||||
|
||||
return Promise.resolve()
|
||||
|
|
|
@ -15,11 +15,6 @@
|
|||
* cycle for an screenshare LocalMediaStream on a video HTMLMediaElement.
|
||||
*/
|
||||
runTest(function () {
|
||||
const isWinXP = navigator.userAgent.includes("Windows NT 5.1");
|
||||
if (IsMacOSX10_6orOlder() || isWinXP) {
|
||||
ok(true, "Screensharing disabled for OSX10.6 and WinXP");
|
||||
return;
|
||||
}
|
||||
var testVideo = createMediaElement('video', 'testVideo');
|
||||
var constraints = {
|
||||
video: {
|
||||
|
|
|
@ -29,12 +29,6 @@ let getDevices = async constraints => {
|
|||
};
|
||||
|
||||
runTest(async () => {
|
||||
const isWinXP = navigator.userAgent.includes("Windows NT 5.1");
|
||||
if (IsMacOSX10_6orOlder() || isWinXP) {
|
||||
ok(true, "Screensharing disabled for OSX10.6 and WinXP");
|
||||
return;
|
||||
}
|
||||
|
||||
await pushPrefs(["media.navigator.permission.disabled", true],
|
||||
["media.navigator.permission.fake", true],
|
||||
["media.navigator.permission.force", true]);
|
||||
|
|
|
@ -13,12 +13,6 @@
|
|||
|
||||
var test;
|
||||
runNetworkTest(function (options) {
|
||||
const isWinXP = navigator.userAgent.includes("Windows NT 5.1");
|
||||
if (IsMacOSX10_6orOlder() || isWinXP) {
|
||||
ok(true, "Screensharing disabled for OSX10.6 and WinXP");
|
||||
SimpleTest.finish();
|
||||
return;
|
||||
}
|
||||
test = new PeerConnectionTest(options);
|
||||
var constraints = {
|
||||
video: {
|
||||
|
|
|
@ -13,12 +13,6 @@
|
|||
|
||||
var test;
|
||||
runNetworkTest(function (options) {
|
||||
const isWinXP = navigator.userAgent.includes("Windows NT 5.1");
|
||||
if (IsMacOSX10_6orOlder() || isWinXP) {
|
||||
ok(true, "Screensharing disabled for OSX10.6 and WinXP");
|
||||
SimpleTest.finish();
|
||||
return;
|
||||
}
|
||||
test = new PeerConnectionTest(options);
|
||||
var constraints = {
|
||||
video: {
|
||||
|
|
Загрузка…
Ссылка в новой задаче