Skip to content

Commit

Permalink
Bug 1601075 [wpt PR 20595] - [Longtasks] Fix containerType and contai…
Browse files Browse the repository at this point in the history
…nerSrc in attribution, a=testonly

Automatic update from web-platform-tests
[Longtasks] Fix containerType and containerSrc in attribution

This CL brings the longtasks API up to date with the recent changes on
w3c/longtasks#78. It also adds WPT tests for
those changes. The changes are:

* containerType is "window", "iframe", "embed", etc. depending on the
type of the culprit browsing context container.
* containerSrc is now the 'data' attribute when the container is an
<object>.

Change-Id: I06f661968778e3bec433a1bfe758b4604df01557
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1949146
Reviewed-by: Steve Kobes <skobeschromium.org>
Commit-Queue: Nicolás Peña Moreno <npmchromium.org>
Cr-Commit-Position: refs/heads/master{#721258}

--

wpt-commits: e92918c7452f2ef99fe95545fdfb41a7787b9b94
wpt-pr: 20595

UltraBlame original commit: a13898cb3364862002fb9de0e58f039c4c0a5b3e
  • Loading branch information
marco-c committed Dec 10, 2019
1 parent a2b6b24 commit f3657aa
Show file tree
Hide file tree
Showing 10 changed files with 694 additions and 0 deletions.
592 changes: 592 additions & 0 deletions testing/web-platform/tests/longtask-timing/containerTypes.html

Large diffs are not rendered by default.

Expand Up @@ -302,6 +302,16 @@
(
attribution
.
containerType
'
window
'
)
;
assert_equals
(
attribution
.
containerId
'
'
Expand Down
Expand Up @@ -324,6 +324,16 @@
(
attribution
.
containerType
'
iframe
'
)
;
assert_equals
(
attribution
.
containerId
'
child
Expand Down
Expand Up @@ -355,6 +355,16 @@
(
attribution
.
containerType
'
iframe
'
)
;
assert_equals
(
attribution
.
containerId
'
child
Expand Down
Expand Up @@ -280,6 +280,16 @@
(
attribution
.
containerType
'
window
'
)
;
assert_equals
(
attribution
.
containerId
'
'
Expand Down
Expand Up @@ -181,6 +181,21 @@
data
[
'
containerType
'
]
'
window
'
)
;
assert_equals
(
e
.
data
[
'
containerId
'
]
Expand Down
10 changes: 10 additions & 0 deletions testing/web-platform/tests/longtask-timing/longtask-in-raf.html
Expand Up @@ -278,6 +278,16 @@
(
attribution
.
containerType
'
window
'
)
;
assert_equals
(
attribution
.
containerId
'
'
Expand Down
Expand Up @@ -180,6 +180,21 @@
data
[
'
containerType
'
]
'
window
'
)
;
assert_equals
(
e
.
data
[
'
containerId
'
]
Expand Down
Expand Up @@ -217,6 +217,21 @@
data
[
'
containerType
'
]
'
iframe
'
)
;
assert_equals
(
e
.
data
[
'
containerId
'
]
Expand Down
Expand Up @@ -217,6 +217,13 @@
.
name
'
containerType
'
:
attribution
.
containerType
'
containerId
'
:
Expand Down

0 comments on commit f3657aa

Please sign in to comment.