Bug 652501 - Part 2: Make existing plugin crash reftests clean up after themselves. r=roc

This commit is contained in:
Cameron McCormack 2011-04-26 15:02:38 +12:00
parent 76f0cc3edd
commit 7fa9b8a992
5 changed files with 8 additions and 9 deletions

View File

@ -441,4 +441,3 @@ IPC process crash, have the test include "reftest-expect-process-crash" as
one of the root element's classes by the time the test has finished. This will
cause any minidump files that are generated while running the test to be removed
and they won't cause any error messages in the test run output.

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html class="reftest-wait">
<html class="reftest-expect-process-crash reftest-wait">
<head>
<title>Plugin Problem UI directionality test</title>
</head>
@ -9,7 +9,7 @@
var plugin = document.getElementById("crashme");
function checkForCrashUI() {
if (getComputedStyle(plugin, null).MozBinding != "none") {
document.documentElement.removeAttribute("class");
document.documentElement.classList.remove("reftest-wait");
clearInterval(interval);
}
}

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html class="reftest-wait">
<html class="reftest-expect-process-crash reftest-wait">
<head>
<title>Plugin Problem UI directionality test</title>
</head>
@ -9,7 +9,7 @@
var plugin = document.getElementById("crashme");
function checkForCrashUI() {
if (getComputedStyle(plugin, null).MozBinding != "none") {
document.documentElement.removeAttribute("class");
document.documentElement.classList.remove("reftest-wait");
clearInterval(interval);
}
}

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html class="reftest-wait">
<html class="reftest-expect-process-crash reftest-wait">
<head>
<title>Plugin Problem UI directionality test</title>
</head>
@ -13,7 +13,7 @@
var plugin = document.getElementById("crashme");
function checkForCrashUI() {
if (getComputedStyle(plugin, null).MozBinding != "none") {
document.documentElement.removeAttribute("class");
document.documentElement.classList.remove("reftest-wait");
clearInterval(interval);
}
}

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html class="reftest-wait">
<html class="reftest-expect-process-crash reftest-wait">
<head>
<title>Plugin Problem UI directionality test</title>
</head>
@ -13,7 +13,7 @@
var plugin = document.getElementById("crashme");
function checkForCrashUI() {
if (getComputedStyle(plugin, null).MozBinding != "none") {
document.documentElement.removeAttribute("class");
document.documentElement.classList.remove("reftest-wait");
clearInterval(interval);
}
}