Skip to content

Commit

Permalink
[ElementTiming] Add Element's elementTiming attribute getter
Browse files Browse the repository at this point in the history
Relevant Intent to Ship:
https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/DXSoS7dMmok

Bug: 879270, 942033
Change-Id: I399489e766f4eafdd3087f159320dc3211bf1c01
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1715257
Reviewed-by: Yoav Weiss <yoavweiss@chromium.org>
Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681013}
  • Loading branch information
npm1 authored and chromium-wpt-export-bot committed Jul 25, 2019
1 parent 53f176d commit 74c79eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion element-timing/resources/element-timing-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ function checkElementInternal(entry, expectedUrl, expectedIdentifier, expectedID
assert_equals(entry.id, expectedID);
assert_greater_than_equal(entry.renderTime, beforeRender);
assert_greater_than_equal(performance.now(), entry.renderTime);
if (expectedElement !== null)
if (expectedElement !== null) {
assert_equals(entry.element, expectedElement);
assert_equals(entry.identifier, expectedElement.elementTiming);
assert_equals(entry.id, expectedElement.id);
}
}

// Checks that this is an ElementTiming entry with url |expectedUrl|. It also
Expand Down

0 comments on commit 74c79eb

Please sign in to comment.