Backed out 3 changesets (bug 1325464) for xpcshell failures a=backout

Backed out changeset 562ddc32cc21 (bug 1325464)
Backed out changeset cd10db6087dd (bug 1325464)
Backed out changeset 4079437c4648 (bug 1325464)
This commit is contained in:
Wes Kocher
2016-12-29 14:05:44 -08:00
parent 9783d5aac7
commit 2d7553dcfd
854 changed files with 8157 additions and 8141 deletions

View File

@@ -153,7 +153,7 @@ var listener = {
"gfxSanity:ContentLoaded",
],
scheduleTest(win) {
scheduleTest: function(win) {
this.win = win;
this.win.onload = this.onWindowLoaded.bind(this);
this.utils = this.win.QueryInterface(Ci.nsIInterfaceRequestor)
@@ -166,7 +166,7 @@ var listener = {
});
},
runSanityTest() {
runSanityTest: function() {
this.canvas = this.win.document.createElementNS("http://www.w3.org/1999/xhtml", "canvas");
this.canvas.setAttribute("width", PAGE_WIDTH);
this.canvas.setAttribute("height", PAGE_HEIGHT);
@@ -187,7 +187,7 @@ var listener = {
}
},
onWindowLoaded() {
onWindowLoaded: function() {
let browser = this.win.document.createElementNS(XUL_NS, "browser");
browser.setAttribute("type", "content");
@@ -208,7 +208,7 @@ var listener = {
this.mm.loadFrameScript(FRAME_SCRIPT_URL, false);
},
endTest() {
endTest: function() {
if (!this.win) {
return;
}
@@ -240,7 +240,7 @@ SanityTest.prototype = {
QueryInterface: XPCOMUtils.generateQI([Ci.nsIObserver,
Ci.nsISupportsWeakReference]),
shouldRunTest() {
shouldRunTest: function() {
// Only test gfx features if firefox has updated, or if the user has a new
// gpu or drivers.
var buildId = Services.appinfo.platformBuildID;
@@ -286,7 +286,7 @@ SanityTest.prototype = {
return true;
},
observe(subject, topic, data) {
observe: function(subject, topic, data) {
if (topic != "profile-after-change") return;
// profile-after-change fires only at startup, so we won't need

View File

@@ -3,7 +3,7 @@ var { classes: Cc, interfaces: Ci, utils: Cu } = Components;
const gfxFrameScript = {
domUtils: null,
init() {
init: function() {
let webNav = docShell.QueryInterface(Ci.nsIWebNavigation);
let webProgress = docShell.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIWebProgress);
@@ -18,7 +18,7 @@ const gfxFrameScript = {
},
handleEvent(aEvent) {
handleEvent: function(aEvent) {
switch (aEvent.type) {
case "MozAfterPaint":
sendAsyncMessage('gfxSanity:ContentLoaded');
@@ -27,7 +27,7 @@ const gfxFrameScript = {
}
},
isSanityTest(aUri) {
isSanityTest: function(aUri) {
if (!aUri) {
return false;
}
@@ -35,7 +35,7 @@ const gfxFrameScript = {
return aUri.endsWith("/sanitytest.html");
},
onStateChange(webProgress, req, flags, status) {
onStateChange: function(webProgress, req, flags, status) {
if (webProgress.isTopLevel &&
(flags & Ci.nsIWebProgressListener.STATE_STOP) &&
this.isSanityTest(req.name)) {