Bug 1135515 - Fix relevant mutations tests to avoid intermittent issues. a=test-only
authorJames Graham <james@hoppipolla.co.uk>
Mon, 11 May 2015 16:37:39 +0100
changeset 260510 82e59df1da4e
parent 260509 06cc113b476f
child 260511 1a8cd9f5bdad
push id805
push userryanvm@gmail.com
push date2015-05-18 17:06 +0000
treeherdermozilla-release@4bfd19d00ed4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest-only
bugs1135515
milestone38.0.5
Bug 1135515 - Fix relevant mutations tests to avoid intermittent issues. a=test-only
testing/web-platform/meta/html/semantics/embedded-content/the-img-element/relevant-mutations.html.ini
testing/web-platform/tests/html/semantics/embedded-content/the-img-element/relevant-mutations.html
--- a/testing/web-platform/meta/html/semantics/embedded-content/the-img-element/relevant-mutations.html.ini
+++ b/testing/web-platform/meta/html/semantics/embedded-content/the-img-element/relevant-mutations.html.ini
@@ -1,54 +1,55 @@
 [relevant-mutations.html]
   type: testharness
+  expected: TIMEOUT
   [src removed]
-    expected: FAIL
+    expected: TIMEOUT
 
   [srcset removed]
-    expected: FAIL
+    expected: TIMEOUT
 
   [sizes set]
-    expected: FAIL
+    expected: TIMEOUT
 
   [sizes changed]
-    expected: FAIL
+    expected: TIMEOUT
 
   [sizes removed]
-    expected: FAIL
+    expected: TIMEOUT
 
   [crossorigin absent to empty]
-    expected: FAIL
+    expected: TIMEOUT
 
   [crossorigin absent to anonymous]
-    expected: FAIL
+    expected: TIMEOUT
 
   [crossorigin absent to use-credentials]
-    expected: FAIL
+    expected: TIMEOUT
 
   [crossorigin empty to absent]
-    expected: FAIL
+    expected: TIMEOUT
 
   [crossorigin empty to use-credentials]
-    expected: FAIL
+    expected: TIMEOUT
 
   [crossorigin anonymous to absent]
-    expected: FAIL
+    expected: TIMEOUT
 
   [crossorigin anonymous to use-credentials]
-    expected: FAIL
+    expected: TIMEOUT
 
   [crossorigin use-credentials to absent]
-    expected: FAIL
+    expected: TIMEOUT
 
   [crossorigin use-credentials to empty]
-    expected: FAIL
+    expected: TIMEOUT
 
   [crossorigin use-credentials to anonymous]
-    expected: FAIL
+    expected: TIMEOUT
 
   [crossorigin state not changed: empty to anonymous]
     expected: FAIL
 
   [crossorigin state not changed: anonymous to foobar]
     expected: FAIL
 
   [crossorigin state not changed: use-credentials to USE-CREDENTIALS]
--- a/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/relevant-mutations.html
+++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/relevant-mutations.html
@@ -102,20 +102,19 @@
 <script>
 setup({explicit_done:true});
 
 function t(desc, func, expect) {
   async_test(function() {
     var img = document.querySelector('[data-desc="' + desc + '"]');
     img.onload = img.onerror = this.unreached_func('update the image data was run');
     if (expect == 'timeout') {
-      setTimeout(this.step_func_done(), 250);
+      setTimeout(this.step_func_done(), 1000);
     } else {
       img['on' + expect] = this.step_func_done(function() {});
-      setTimeout(this.unreached_func('update the image data was not run'), 250)
     }
     func.call(this, img);
   }, desc);
 }
 
 onload = function() {
 
   t('src set', function(img) {