mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 862825. Stop trying to snapshot IPC crashtests or jsreftests. r=roc
This commit is contained in:
parent
d5b9a00b6b
commit
17f17caaaf
@ -42,6 +42,8 @@ var gDebug;
|
|||||||
var gCurrentTestStartTime;
|
var gCurrentTestStartTime;
|
||||||
var gClearingForAssertionCheck = false;
|
var gClearingForAssertionCheck = false;
|
||||||
|
|
||||||
|
const TYPE_LOAD = 'load'; // test without a reference (just test that it does
|
||||||
|
// not assert, crash, hang, or leak)
|
||||||
const TYPE_SCRIPT = 'script'; // test contains individual test results
|
const TYPE_SCRIPT = 'script'; // test contains individual test results
|
||||||
|
|
||||||
function markupDocumentViewer() {
|
function markupDocumentViewer() {
|
||||||
@ -638,6 +640,12 @@ const SYNC_DEFAULT = 0x0;
|
|||||||
const SYNC_ALLOW_DISABLE = 0x1;
|
const SYNC_ALLOW_DISABLE = 0x1;
|
||||||
function SynchronizeForSnapshot(flags)
|
function SynchronizeForSnapshot(flags)
|
||||||
{
|
{
|
||||||
|
if (gCurrentTestType == TYPE_SCRIPT ||
|
||||||
|
gCurrentTestType == TYPE_LOAD) {
|
||||||
|
// Script tests or load-only tests do not need any snapshotting
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (flags & SYNC_ALLOW_DISABLE) {
|
if (flags & SYNC_ALLOW_DISABLE) {
|
||||||
var docElt = content.document.documentElement;
|
var docElt = content.document.documentElement;
|
||||||
if (docElt && docElt.hasAttribute("reftest-no-sync-layers")) {
|
if (docElt && docElt.hasAttribute("reftest-no-sync-layers")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user