Bug 1135515 - Fix relevant mutations tests to avoid intermittent issues. a=test-only

This commit is contained in:
James Graham
2015-05-11 16:37:39 +01:00
parent a17cb4024a
commit 2f3a240e68
2 changed files with 17 additions and 17 deletions

View File

@@ -1,49 +1,50 @@
[relevant-mutations.html] [relevant-mutations.html]
type: testharness type: testharness
expected: TIMEOUT
[src removed] [src removed]
expected: FAIL expected: TIMEOUT
[srcset removed] [srcset removed]
expected: FAIL expected: TIMEOUT
[sizes set] [sizes set]
expected: FAIL expected: TIMEOUT
[sizes changed] [sizes changed]
expected: FAIL expected: TIMEOUT
[sizes removed] [sizes removed]
expected: FAIL expected: TIMEOUT
[crossorigin absent to empty] [crossorigin absent to empty]
expected: FAIL expected: TIMEOUT
[crossorigin absent to anonymous] [crossorigin absent to anonymous]
expected: FAIL expected: TIMEOUT
[crossorigin absent to use-credentials] [crossorigin absent to use-credentials]
expected: FAIL expected: TIMEOUT
[crossorigin empty to absent] [crossorigin empty to absent]
expected: FAIL expected: TIMEOUT
[crossorigin empty to use-credentials] [crossorigin empty to use-credentials]
expected: FAIL expected: TIMEOUT
[crossorigin anonymous to absent] [crossorigin anonymous to absent]
expected: FAIL expected: TIMEOUT
[crossorigin anonymous to use-credentials] [crossorigin anonymous to use-credentials]
expected: FAIL expected: TIMEOUT
[crossorigin use-credentials to absent] [crossorigin use-credentials to absent]
expected: FAIL expected: TIMEOUT
[crossorigin use-credentials to empty] [crossorigin use-credentials to empty]
expected: FAIL expected: TIMEOUT
[crossorigin use-credentials to anonymous] [crossorigin use-credentials to anonymous]
expected: FAIL expected: TIMEOUT
[crossorigin state not changed: empty to anonymous] [crossorigin state not changed: empty to anonymous]
expected: FAIL expected: FAIL

View File

@@ -107,10 +107,9 @@ function t(desc, func, expect) {
var img = document.querySelector('[data-desc="' + desc + '"]'); var img = document.querySelector('[data-desc="' + desc + '"]');
img.onload = img.onerror = this.unreached_func('update the image data was run'); img.onload = img.onerror = this.unreached_func('update the image data was run');
if (expect == 'timeout') { if (expect == 'timeout') {
setTimeout(this.step_func_done(), 250); setTimeout(this.step_func_done(), 1000);
} else { } else {
img['on' + expect] = this.step_func_done(function() {}); img['on' + expect] = this.step_func_done(function() {});
setTimeout(this.unreached_func('update the image data was not run'), 250)
} }
func.call(this, img); func.call(this, img);
}, desc); }, desc);