Bug 1379516 - Change is() check to todo_is() for the case where orphaned element is attached to document. r?birtles draft
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Thu, 10 Aug 2017 14:48:14 +0900
changeset 643826 70c4630e7686b355a0751f9b819825eac8497fd7
parent 643825 2cf22576469a5544123c9e2590015a2d3bc3e6f7
child 643827 92520f496b384ccd4eed1b8abd7c5420a23860d0
push id73221
push userhikezoe@mozilla.com
push dateThu, 10 Aug 2017 05:51:05 +0000
reviewersbirtles
bugs1379516
milestone57.0a1
Bug 1379516 - Change is() check to todo_is() for the case where orphaned element is attached to document. r?birtles MozReview-Commit-ID: 8QOXmw9BHX4
dom/animation/test/chrome/test_restyles.html
--- a/dom/animation/test/chrome/test_restyles.html
+++ b/dom/animation/test/chrome/test_restyles.html
@@ -757,19 +757,19 @@ waitForAllPaints(function() {
     is(markers.length, 0,
        'Animation on orphaned element should not cause restyles');
 
     document.body.appendChild(div);
 
     markers = await observeStyling(1);
     // Bug 1388557: We should call RequestRestyle(Layer) when an element which
     // has running script animations is attached to document.
-    is(markers.length, 0,
-       'We observe no restyle in the first frame right after re-attaching ' +
-       'to the document');
+    todo_is(markers.length, 1,
+            'Bug 1388557 We should observe one restyle in the first frame ' +
+            'right after re-attaching to the document');
     markers = await observeStyling(5);
     is(markers.length, 5,
        'Animation on re-attached to the document begins to update style');
 
     await ensureElementRemoval(div);
   });
 
   add_task_if_omta_enabled(