| Index: third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-grouped-invalidations.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-grouped-invalidations.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-grouped-invalidations.html
|
| index fa44b060025e4a5be0819c53f621979932a28312..da70bf28540f87120948da87bf905daeec3e89fd 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-grouped-invalidations.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-grouped-invalidations.html
|
| @@ -4,8 +4,10 @@
|
| <script src="../../../http/tests/inspector/inspector-test.js"></script>
|
| <script src="../../../http/tests/inspector/timeline-test.js"></script>
|
| <script>
|
| -function display(callback)
|
| +function display()
|
| {
|
| + var callback;
|
| + var promise = new Promise((fulfill) => callback = fulfill);
|
| requestAnimationFrame(function() {
|
| var testElements = document.body.getElementsByClassName("testElement");
|
| for (var i = 0; i < testElements.length; i++) {
|
| @@ -15,6 +17,7 @@ function display(callback)
|
| if (window.testRunner)
|
| testRunner.layoutAndPaintAsyncThen(callback);
|
| });
|
| + return promise;
|
| }
|
|
|
| function test()
|
| @@ -34,8 +37,8 @@ function test()
|
| WebInspector.TimelineUIUtils._generateCauses(event, target, null, contentHelper);
|
| var invalidationsTree = contentHelper.element.getElementsByClassName("invalidations-tree")[0];
|
| var invalidations = invalidationsTree.shadowRoot.textContent;
|
| - checkStringContains(invalidations, "Inline CSS style declaration was mutated for [ DIV class='testElement' ], [ DIV class='testElement' ], and 2 others. (anonymous function) @ timeline-grouped-invalidations.html:12");
|
| - checkStringContains(invalidations, "Inline CSS style declaration was mutated for [ DIV class='testElement' ], [ DIV class='testElement' ], and 2 others. (anonymous function) @ timeline-grouped-invalidations.html:13");
|
| + checkStringContains(invalidations, "Inline CSS style declaration was mutated for [ DIV class='testElement' ], [ DIV class='testElement' ], and 2 others. (anonymous function) @ timeline-grouped-invalidations.html:14");
|
| + checkStringContains(invalidations, "Inline CSS style declaration was mutated for [ DIV class='testElement' ], [ DIV class='testElement' ], and 2 others. (anonymous function) @ timeline-grouped-invalidations.html:15");
|
| InspectorTest.completeTest();
|
| });
|
|
|
|
|