Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1601075 [wpt PR 20595] - [Longtasks] Fix containerType and contai…
…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
Showing
10 changed files
with
694 additions
and
0 deletions.
There are no files selected for viewing
592 changes: 592 additions & 0 deletions
592
testing/web-platform/tests/longtask-timing/containerTypes.html
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -302,6 +302,16 @@ | |
( | ||
attribution | ||
. | ||
containerType | ||
' | ||
window | ||
' | ||
) | ||
; | ||
assert_equals | ||
( | ||
attribution | ||
. | ||
containerId | ||
' | ||
' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -324,6 +324,16 @@ | |
( | ||
attribution | ||
. | ||
containerType | ||
' | ||
iframe | ||
' | ||
) | ||
; | ||
assert_equals | ||
( | ||
attribution | ||
. | ||
containerId | ||
' | ||
child | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -355,6 +355,16 @@ | |
( | ||
attribution | ||
. | ||
containerType | ||
' | ||
iframe | ||
' | ||
) | ||
; | ||
assert_equals | ||
( | ||
attribution | ||
. | ||
containerId | ||
' | ||
child | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -280,6 +280,16 @@ | |
( | ||
attribution | ||
. | ||
containerType | ||
' | ||
window | ||
' | ||
) | ||
; | ||
assert_equals | ||
( | ||
attribution | ||
. | ||
containerId | ||
' | ||
' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -181,6 +181,21 @@ | |
data | ||
[ | ||
' | ||
containerType | ||
' | ||
] | ||
' | ||
window | ||
' | ||
) | ||
; | ||
assert_equals | ||
( | ||
e | ||
. | ||
data | ||
[ | ||
' | ||
containerId | ||
' | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -278,6 +278,16 @@ | |
( | ||
attribution | ||
. | ||
containerType | ||
' | ||
window | ||
' | ||
) | ||
; | ||
assert_equals | ||
( | ||
attribution | ||
. | ||
containerId | ||
' | ||
' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -180,6 +180,21 @@ | |
data | ||
[ | ||
' | ||
containerType | ||
' | ||
] | ||
' | ||
window | ||
' | ||
) | ||
; | ||
assert_equals | ||
( | ||
e | ||
. | ||
data | ||
[ | ||
' | ||
containerId | ||
' | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -217,6 +217,21 @@ | |
data | ||
[ | ||
' | ||
containerType | ||
' | ||
] | ||
' | ||
iframe | ||
' | ||
) | ||
; | ||
assert_equals | ||
( | ||
e | ||
. | ||
data | ||
[ | ||
' | ||
containerId | ||
' | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -217,6 +217,13 @@ | |
. | ||
name | ||
' | ||
containerType | ||
' | ||
: | ||
attribution | ||
. | ||
containerType | ||
' | ||
containerId | ||
' | ||
: | ||
|